GHSA-r9mr-m37c-5fr3: GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command execution
GitPython’s check_unsafe_options guard (the control introduced by CVE-2026-42215 / GHSA-2f96 and hardened since) can be bypassed for every guarded method (clone/clone_from, fetch/pull/push, ls_remote, iter_commits, blame, archive) by smuggling an option token inside the VALUE of a single-character kwarg. In the default allow_unsafe_options=False configuration this yields arbitrary command execution via --upload-pack.
References
- github.com/advisories/GHSA-r9mr-m37c-5fr3
- github.com/gitpython-developers/GitPython/commit/e8d0fbf774d1f6baa3b481adfe48bd262e43b453
- github.com/gitpython-developers/GitPython/pull/2180
- github.com/gitpython-developers/GitPython/releases/tag/3.1.54
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-r9mr-m37c-5fr3
Code Behaviors & Features
Detect and mitigate GHSA-r9mr-m37c-5fr3 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →