Bug 2508510 (CVE-2026-18376) - CVE-2026-18376 koji: Koji SCM URL-Encoding Parser Differential (normpath bypass)
Summary: CVE-2026-18376 koji: Koji SCM URL-Encoding Parser Differential (normpath bypass)
Keywords:
Status: NEW
Alias: CVE-2026-18376
Deadline: 2026-08-01
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-29 18:33 UTC by OSIDB Bzimport
Modified: 2026-08-04 21:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-29 18:33:04 UTC
Koji's SCM URL parser normalizes repository paths using urllib.parse.urlparse and os.path.normpath before evaluating them against the configured SCM policy. Because normpath decodes percent-encoded sequences at policy-check time but the underlying Git HTTP transport decodes them again during fetch, an attacker can craft a URL containing %2e%2e path traversal sequences (e.g., /rpms/%2e%2e/forks/<attacker>/rpms/<pkg>.git) that satisfies the /rpms/* policy pattern but resolves to an attacker-controlled fork repository. This allows any authenticated Koji user, without packager privileges, to submit builds sourced from attacker-controlled code. The fix normalizes and URL-decodes SCM paths before policy evaluation. The original normpath logic was introduced to address CVE-2017-1002153; this vulnerability represents a bypass of that fix.


Note You need to log in before you can comment on or make changes to this bug.