CVE-2026-42215

Source
https://cve.org/CVERecord?id=CVE-2026-42215
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42215.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-42215
Aliases
Downstream
ALPINE (1)
CGA (16)
CLSA (1)
DEBIAN (1)
ECHO (1)
MGASA (1)
MINI (2)
OESA (3)
openSUSE (2)
RHSA (6)
ROOT (1)
SUSE (2)
UBUNTU (1)
Related
Published
2026-05-07T18:17:03Z
Modified
2026-10-22T10:34:45Z
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 upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.

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

Affected packages

Git / github.com/gitpython-developers/gitpython

Affected ranges

Type
GIT
Repo
https://github.com/gitpython-developers/gitpython
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "3.1.30"
                },
                {
                    "fixed": "3.1.47"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "original_tag": "3.1.47",
            "range": [
                {
                    "fixed": "4199cb89755f705801a4cb241723325b46201f51"
                }
            ],
            "source": "REFERENCES_TAG"
        },
        {
            "cpe": "cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*",
            "range": [
                {
                    "introduced": "3.1.30"
                },
                {
                    "fixed": "3.1.47"
                }
            ],
            "source": "CPE_RANGE"
        }
    ]
}

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/osv-test-cve-osv-conversion/osv-output/CVE-2026-42215.json"