CVE-2026-42215

Source
https://cve.org/CVERecord?id=CVE-2026-42215
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42215.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42215
Aliases
Downstream
Related
Published
2026-05-07T18:17:03.194Z
Modified
2026-07-08T08:13:13.705460878Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
GitPython: Command injection via Git options bypass
Details

GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs uploadpack and receivepack bypass that check. If an application passes attacker-controlled kwargs into Repo.clonefrom(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allowunsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42215.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-78"
    ]
}
References

Affected packages

Git / github.com/gitpython-developers/gitpython

Affected ranges

Type
GIT
Repo
https://github.com/gitpython-developers/gitpython
Events
Database specific
{
    "cpe": "cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*",
    "extracted_events": [
        {
            "introduced": "3.1.30"
        },
        {
            "fixed": "3.1.47"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

3.*
3.1.30
3.1.31
3.1.32
3.1.33
3.1.34
3.1.35
3.1.38
3.1.40
3.1.41
3.1.42
3.1.43
3.1.44

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42215.json"