GHSA-cw2r-r7mw-j3hc

Suggest an improvement
Source
https://github.com/advisories/GHSA-cw2r-r7mw-j3hc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-cw2r-r7mw-j3hc/GHSA-cw2r-r7mw-j3hc.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-cw2r-r7mw-j3hc
Downstream
Withdrawn
2026-09-08T15:08:25Z
Published
2026-08-01T15:30:28Z
Modified
2026-09-08T15:15:05Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
Duplicate Advisory: GitPython unsafe clone option gate bypass through joined short options
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-v396-v7q4-x2qj. This link is maintained to preserve external references.

Original Description

GitPython 3.1.50 fails to recognize joined short-option forms such as -u (the short form of --upload-pack=) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo.clone_from(..., multi_options=..., allow_unsafe_options=False), an attacker can supply -u to bypass the gate that blocks --upload-pack/-u, causing Git to execute the specified helper command during clone. Fixed in 3.1.51.

Database specific
{
    "cwe_ids": [
        "CWE-78"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-09-08T15:08:25Z",
    "nvd_published_at": "2026-08-01T13:17:02Z",
    "severity": "CRITICAL"
}
References

Affected packages

PyPI / gitpython

Package

Affected ranges

Affected versions

3.*
3.1.50

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/08/GHSA-cw2r-r7mw-j3hc/GHSA-cw2r-r7mw-j3hc.json"