Command injection via unsafe kwargs normalization
Published May 7, 2026 · Updated May 7, 2026
Command injection in GitPython 3.1.30 through 3.1.46 allows remote authenticated users to execute arbitrary commands via unsafe Git kwargs. The affected APIs validate raw keyword names before transform_kwarg converts underscores to hyphens, so upload_pack and receive_pack evade the unsafe-option blocklist and reach Git as command-executing flags. Exploitation requires an application to pass attacker-controlled kwargs into clone, fetch, pull, or push operations, and commands run with that application's privileges.
Summary
What happened
Command injection in GitPython 3.1.30 through 3.1.46 allows remote authenticated users to execute arbitrary commands via unsafe Git kwargs. The affected APIs validate raw keyword names before transform_kwarg converts underscores to hyphens, so upload_pack and receive_pack evade the unsafe-option blocklist and reach Git as command-executing flags. Exploitation requires an application to pass attacker-controlled kwargs into clone, fetch, pull, or push operations, and commands run with that application's privileges.
The record
- CVE
- CVE-2026-42215
- Published
- May 7, 2026
- Updated
- May 7, 2026
- Vendor
- GitPython Developers
- Product
- GitPython
- Classifications
- CWE-78, T1059
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- May 7, 2026CVE publishedPublication date reported by the CVE source.
- May 7, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 3.1.30, < 3.1.47
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-rpm5-65cw-6hj4 proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo