Ggshield: tuf has platform-dependent delegation path matching
Affects ggshieldSource GCVE Database
CVSS 4.0 Medium : upgrade to 1.51.0_1 when convenient.
Data as of 18 Sep 2026, 01:40 UTC
- Patch
- Available – fixed in 1.51.0_1
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NWhat to do
Upgrade ggshield to 1.51.0_1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewggshieldpkg:brew/ggshieldOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that replaces the use of fnmatch.fnmatch with fnmatch.fnmatchcase in the python-tuf code used by ggshield. Users should upgrade to a fixed version beyond 1.51.0_1 where this change is applied. No additional mitigation is required if the patch is applied.
Description
A platform-dependent path pattern matching issue exists in python-tuf's delegation implementation used by ggshield. On Windows, path matching is case-insensitive due to the use of fnmatch.fnmatch, which applies os.path.normcase that lowercases input on Windows but not on POSIX systems. This causes authorization decisions to differ by OS, violating the TUF specification. An attacker controlling a delegation role with a path pattern differing only by case can exploit this on Windows clients to override legitimate delegations. The vulnerability affects ggshield versions >=1.50.3 and <1.51.0_1 and has a medium severity rating with a CVSS score of 4. A fix is available by replacing fnmatch.fnmatch with fnmatch.fnmatchcase to ensure consistent case-sensitive matching across platforms.