{"id":"CVE-2026-123806","aliases":["GHSA-qp9x-wp8f-qgjj","UBUNTU-CVE-2026-123806"],"summary":"python-tuf: Platform-dependent delegation path matching","published_at":"2026-05-28T22:46:13Z","modified_at":"2026-11-18T11:14:49Z","products":[],"rating":{"severity":"medium","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0013299999991431832,"percentile":0.029279999434947968,"date":"2026-11-19T00:00:00Z"},"priority":3.5,"details":"python-tuf is a Python reference implementation of The Update Framework (TUF). Prior to 7.0.0, DelegatedRole._is_target_in_pathpattern in tuf/api/_payload.py uses fnmatch.fnmatch, which applies os.path.normcase before matching and makes delegation path authorization case-insensitive on Windows. When a TUF repository has path-based delegations that differ only by case and an attacker-controlled role is visited before the legitimate role, ngclient can accept an attacker-provided target from the wrong delegation for a requested path. Linux and macOS clients are not affected because their path normalization does not change case. This issue is fixed in 7.0.0.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"theupdateframework/python-tuf","versions":["< 7.0.0"],"provider":"cvelistv5","source":"CVE-2026-123806","relation":"self"},{"ecosystem":"PyPI","package":"tuf","purl":"pkg:pypi/tuf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.0"}]}],"versions":["0.10.0","0.10.1","0.10.2","0.11.0","0.11.1","0.11.2.dev1","0.11.2.dev2","0.11.2.dev3","0.11.dev0","0.12.0","0.12.1","0.12.2","0.12.dev0","0.12.dev1","0.12.dev2","0.13.0","0.14.0","0.15.0","0.16.0","0.17.0","0.18.0","0.18.1","0.19.0","0.20.0","0.7.5","0.9.8","0.9.9","1.0.0","1.1.0","2.0.0","2.1.0","3.0.0","3.1.0","3.1.1","4.0.0","5.0.0","5.1.0","6.0.0"],"fixed":["7.0.0"],"provider":"osv","source":"GHSA-qp9x-wp8f-qgjj","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"python-tuf","purl":"pkg:deb/ubuntu/python-tuf?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1.0-2","6.0.0-2"],"provider":"osv","source":"UBUNTU-CVE-2026-123806","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"python-tuf","purl":"pkg:deb/ubuntu/python-tuf?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.0-2","7.0.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-123806","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-model-registry-job-async-upload-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-123806"},{"vendor":"Red Hat","product":"Red Hat Trusted Artifact Signer","cpe":"cpe:/a:redhat:trusted_artifact_signer:1","status":"not_affected","packages":["rhtas/model-transparency-rhel9","rhtas/rh-sigstore-a2a-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-123806"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-123806","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-123806","license":"CC-BY-4.0","published_at":"2026-11-09T20:18:45.481Z","modified_at":"2026-11-13T13:09:54.7Z","summary":"python-tuf: Platform-dependent delegation path matching","details":"python-tuf is a Python reference implementation of The Update Framework (TUF). Prior to 7.0.0, DelegatedRole._is_target_in_pathpattern in tuf/api/_payload.py uses fnmatch.fnmatch, which applies os.path.normcase before matching and makes delegation path authorization case-insensitive on Windows. When a TUF repository has path-based delegations that differ only by case and an attacker-controlled role is visited before the legitimate role, ngclient can accept an attacker-provided target from the wrong delegation for a requested path. Linux and macOS clients are not affected because their path normalization does not change case. This issue is fixed in 7.0.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2026-123806"}],"affected":[{"ecosystem":"CVE","package":"theupdateframework/python-tuf","versions":["< 7.0.0"],"provider":"cvelistv5","source":"CVE-2026-123806","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-qp9x-wp8f-qgjj"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/commit/8ed4414946041030b264871ac41b929cf15774a5"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/releases/tag/v7.0.0"}]},{"provider":"osv","source_id":"GHSA-qp9x-wp8f-qgjj","relation":"self","url":"https://osv.dev/vulnerability/GHSA-qp9x-wp8f-qgjj","license":"CC-BY-4.0","published_at":"2026-05-28T22:46:13Z","modified_at":"2026-11-09T20:30:04.187065Z","summary":"tuf has platform-dependent delegation path matching","details":"`DelegatedRole._is_target_in_pathpattern` uses `fnmatch.fnmatch` to decide whether a given target path is authorized by a delegation's glob pattern.\n\nPython's `fnmatch.fnmatch` calls `os.path.normcase()` on both arguments before matching. On POSIX hosts `normcase` is the identity function; on Windows hosts `os.path` resolves to `ntpath`, whose `normcase` lowercases its input and replaces `/` with `\\`.\n\nAs a result, python-tuf's delegation *path pattern* matching is case-sensitive on Linux/macOS but case-INSENSITIVE on Windows. This makes the authorization decision for a target dependent on the host operating system of the client running the updater.\n\nThe result on Windows is a TUF specification violation in the python-tuf `ngclient` implementation.\n\n## Vulnerable code\n\n`tuf/api/_payload.py` (HEAD `7ecb67d`):\n\n```python\n1183  @staticmethod\n1184  def _is_target_in_pathpattern(targetpath: str, pathpattern: str) -> bool:\n1185      \"\"\"Determine whether ``targetpath`` matches the ``pathpattern``.\"\"\"\n1186      # We need to make sure that targetpath and pathpattern are pointing to\n1187      # the same directory as fnmatch doesn't threat \"/\" as a special symbol.\n1188      target_parts = targetpath.split(\"/\")\n1189      pattern_parts = pathpattern.split(\"/\")\n1190      if len(target_parts) != len(pattern_parts):\n1191          return False\n1192\n1193      # Every part in the pathpattern could include a glob pattern, that's why\n1194      # each of the target and pathpattern parts should match.\n1195      for target, pattern in zip(target_parts, pattern_parts, strict=True):\n1196          if not fnmatch.fnmatch(target, pattern):\n1197              return False\n1198      return True\n```\n\n`fnmatch.fnmatch` source (Python 3.12, unchanged in current mainline):\n\n```python\ndef fnmatch(name, pat):\n    ...\n    name = os.path.normcase(name)\n    pat = os.path.normcase(pat)\n    return fnmatchcase(name, pat)\n```\n\n## Fix\n\nReplace `fnmatch.fnmatch` with `fnmatch.fnmatchcase`, which is explicitly documented as \"not applying case normalization\", so it behaves identically across platforms.\n\n## Attack\n\n1. A TUF repository with two path-based delegations whose patterns differ only in case — for example, `Foo/*` and `foo/*`.\n2. The \"attacker\" delegation is listed BEFORE the \"legit\" delegation in the delegation order.\n3. The client searches for `foo/something`: on Windows, it will find the \"attacker\" provided target \"Foo/something\".\n\n\n## Exploitability caveats \n\n* The attack needs a repository configuration with case-colliding delegation path patterns. The attacker must control one of the delegated roles.\n* Delegation ordering matters: the attacker-controlled role must be visited BEFORE the legit role in the pre-order walk.\n* The client must run on Windows. No effect on Linux/macOS.\n\n## Credit\n\nReporter: Koda Reef @kodareef5 \nAdvisory edits: Jussi Kukkonen @jku","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"GHSA-qp9x-wp8f-qgjj"}],"affected":[{"ecosystem":"PyPI","package":"tuf","purl":"pkg:pypi/tuf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.0"}]}],"versions":["0.10.0","0.10.1","0.10.2","0.11.0","0.11.1","0.11.2.dev1","0.11.2.dev2","0.11.2.dev3","0.11.dev0","0.12.0","0.12.1","0.12.2","0.12.dev0","0.12.dev1","0.12.dev2","0.13.0","0.14.0","0.15.0","0.16.0","0.17.0","0.18.0","0.18.1","0.19.0","0.20.0","0.7.5","0.9.8","0.9.9","1.0.0","1.1.0","2.0.0","2.1.0","3.0.0","3.1.0","3.1.1","4.0.0","5.0.0","5.1.0","6.0.0"],"fixed":["7.0.0"],"provider":"osv","source":"GHSA-qp9x-wp8f-qgjj","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-qp9x-wp8f-qgjj"},{"type":"PACKAGE","url":"https://github.com/theupdateframework/python-tuf"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/releases/tag/v7.0.0"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-123806","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-123806","license":"CC-BY-SA-4.0","published_at":"2026-11-09T22:18:00Z","modified_at":"2026-11-18T11:14:49Z","details":"python-tuf is a Python reference implementation of The Update Framework (TUF). Prior to 7.0.0, DelegatedRole._is_target_in_pathpattern in tuf/api/_payload.py uses fnmatch.fnmatch, which applies os.path.normcase before matching and makes delegation path authorization case-insensitive on Windows. When a TUF repository has path-based delegations that differ only by case and an attacker-controlled role is visited before the legitimate role, ngclient can accept an attacker-provided target from the wrong delegation for a requested path. Linux and macOS clients are not affected because their path normalization does not change case. This issue is fixed in 7.0.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"UBUNTU-CVE-2026-123806"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-123806"}],"affected":[{"ecosystem":"Ubuntu:26.04:LTS","package":"python-tuf","purl":"pkg:deb/ubuntu/python-tuf?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1.0-2","6.0.0-2"],"provider":"osv","source":"UBUNTU-CVE-2026-123806","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"python-tuf","purl":"pkg:deb/ubuntu/python-tuf?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.0-2","7.0.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-123806","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-123806"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-123806"},{"type":"REPORT","url":"github.com/theupdateframework/python-tuf"},{"type":"REPORT","url":"github.com/theupdateframework/python-tuf/releases/tag/v7.0.0"},{"type":"REPORT","url":"github.com/theupdateframework/python-tuf/security/advisories/ghsa-qp9x-wp8f-qgjj"}]},{"provider":"redhat-vex","source_id":"CVE-2026-123806","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-123806","license":"CC-BY-4.0","published_at":"2026-11-09T20:18:45.481Z","modified_at":"2026-11-10T21:57:49Z","summary":"tuf: python-tuf: Unauthorized update delivery via case-insensitive path matching on Windows","details":"A flaw was found in python-tuf. On Windows systems, delegation path pattern matching is performed case-insensitively due to platform-specific path normalization. In repositories with delegation patterns that differ only by letter case, an attacker controlling a delegated role can provide target files intended for a different role. Consequently, affected clients on Windows may accept unauthorized or malicious software updates.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2026-123806"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-123806"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-model-registry-job-async-upload-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-123806"},{"vendor":"Red Hat","product":"Red Hat Trusted Artifact Signer","cpe":"cpe:/a:redhat:trusted_artifact_signer:1","status":"not_affected","packages":["rhtas/model-transparency-rhel9","rhtas/rh-sigstore-a2a-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-123806"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-123806.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-123806"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2570304"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-123806"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123806"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/commit/8ed4414946041030b264871ac41b929cf15774a5"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/releases/tag/v7.0.0"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-qp9x-wp8f-qgjj"}]}],"references":[{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-qp9x-wp8f-qgjj"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/commit/8ed4414946041030b264871ac41b929cf15774a5"},{"type":"WEB","url":"https://github.com/theupdateframework/python-tuf/releases/tag/v7.0.0"},{"type":"PACKAGE","url":"https://github.com/theupdateframework/python-tuf"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-123806"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-123806"},{"type":"REPORT","url":"github.com/theupdateframework/python-tuf"},{"type":"REPORT","url":"github.com/theupdateframework/python-tuf/releases/tag/v7.0.0"},{"type":"REPORT","url":"github.com/theupdateframework/python-tuf/security/advisories/ghsa-qp9x-wp8f-qgjj"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-123806.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-123806"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2570304"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123806"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-123806","url":"https://www.cve.org/CVERecord?id=CVE-2026-123806","license":"CC-BY-4.0","modified_at":"2026-11-13T13:09:54.7Z","relation":"self"},{"provider":"osv","source_id":"GHSA-qp9x-wp8f-qgjj","url":"https://osv.dev/vulnerability/GHSA-qp9x-wp8f-qgjj","license":"CC-BY-4.0","modified_at":"2026-11-09T20:30:04.187065Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-123806","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-123806","license":"CC-BY-SA-4.0","modified_at":"2026-11-18T11:14:49Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-123806","url":"https://access.redhat.com/security/cve/CVE-2026-123806","license":"CC-BY-4.0","modified_at":"2026-11-10T21:57:49Z","relation":"self"}]}
