GitPython before 3.1.52 Environment Variable Exfiltration via clone_from
Noroxi assessment
Priority: Monitor (action score 34/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.32% (FIRST EPSS).
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: gitpython-developers GitPython 3.1.52.
Low priority for now. Upgrade to gitpython-developers GitPython 3.1.52 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from(). The caller-supplied remote URL is passed through Git.polish_url(), which on non-Cygwin platforms calls os.path.expandvars() on the URL before invoking git clone. An attacker who controls the clone URL can embed $NAME or ${NAME} tokens that are expanded to the values of the hosting process's environment variables (e.g., AWS_SECRET_ACCESS_KEY or GITHUB_TOKEN). The resulting URL, now containing the secret, is transmitted over the network to an attacker-controlled host during the clone attempt, disclosing the secret.
- Published
- Aug 1, 2026
- Updated
- Oct 23, 2026
- EPSS
- 0.3% · 24th percentile
- CWE
- CWE-200
Report tools
Action score
34
Monitor
Low priority for now.
- CVSS
- 34 / 40 · 8.7 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.3%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · VulnCheck
- 8.7
- NVD has not scored this yet; the score shown is the CNA’s.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| gitpython project | gitpython | cpe:2.3:a:gitpython_project:gitpython |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- gitpython project gitpythonbefore 3.1.52
Versions reported by the vendor
Affected version ranges reported by the assigning authority (VulnCheck). Independent of NVD's CPE analysis and usually ahead of it.
gitpython-developers GitPython
- 3.1.52not affected
- before 3.1.52affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | python-git | from 0 | — |
| Debian:14 | python-git | before 3.1.61-1 | 3.1.61-1 |
| openSUSE:Leap 16.0 | python-GitPython | before 3.1.44-160000.4.1 | 3.1.44-160000.4.1 |
| openSUSE:Tumbleweed | python-GitPython | before 3.1.58-1.1 | 3.1.58-1.1 |
| PyPI | gitpython | before 3.1.52 | 3.1.52 |
| Red Hat:ansible_automation_platform_developer:2.5::el8 | automation-controller-cli | before 0:4.6.32-1.el8ap | 0:4.6.32-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.5::el8 | python3.12-django | before 0:5.2.17-1.el8ap | 0:5.2.17-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.5::el8 | python3.12-sqlparse | before 0:0.6.0-1.el8ap | 0:0.6.0-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.5::el8 | receptor | before 0:1.6.8-1.el8ap | 0:1.6.8-1.el8ap |
| Red Hat:ansible_automation_platform_developer:2.5::el9 | automation-controller-cli | before 0:4.6.32-1.el9ap | 0:4.6.32-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.5::el9 | python3.12-django | before 0:5.2.17-1.el9ap | 0:5.2.17-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.6::el10 | python-django | before 0:5.2.17-1.el10ap | 0:5.2.17-1.el10ap |
| Red Hat:ansible_automation_platform_developer:2.6::el10 | python-sqlparse | before 0:0.6.0-1.el10ap | 0:0.6.0-1.el10ap |
| Red Hat:ansible_automation_platform_developer:2.6::el10 | python3-django | before 0:5.2.17-1.el10ap | 0:5.2.17-1.el10ap |
| Red Hat:ansible_automation_platform_developer:2.6::el10 | python3-sqlparse | before 0:0.6.0-1.el10ap | 0:0.6.0-1.el10ap |
| Red Hat:ansible_automation_platform_developer:2.6::el9 | automation-controller | before 0:4.7.17-1.el9ap | 0:4.7.17-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.6::el9 | automation-controller-cli | before 0:4.7.17-1.el9ap | 0:4.7.17-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.6::el9 | automation-controller-cli | before 0:4.7.16-1.el9ap | 0:4.7.16-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.6::el9 | python3.12-sqlparse | before 0:0.6.0-1.el9ap | 0:0.6.0-1.el9ap |
| Red Hat:ansible_automation_platform_developer:2.6::el9 | receptor | before 0:1.6.8-1.el9ap | 0:1.6.8-1.el9ap |
| Red Hat:ansible_automation_platform:2.5::el8 | automation-controller-venv-tower | before 0:4.6.33-1.el8ap | 0:4.6.33-1.el8ap |
| Red Hat:ansible_automation_platform:2.5::el8 | automation-controller-venv-tower | before 0:4.6.32-1.el8ap | 0:4.6.32-1.el8ap |
| Red Hat:ansible_automation_platform:2.5::el8 | automation-gateway-proxy-server | before 0:2.5.10-8.el8ap | 0:2.5.10-8.el8ap |
| Red Hat:ansible_automation_platform:2.5::el8 | automation-gateway-server | before 0:2.5.20260923-1.el8ap | 0:2.5.20260923-1.el8ap |
+90
Same product
gitpython project: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-24439Remote Code Execution (RCE)41Plan
- CVE-2026-42284GitPython: Unsafe option check validates multi_options before shlex.split transforms it39Monitor
- CVE-2023-40267GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from.39Monitor
Published before and after this one in the same product
- ← EarlierCVE-2026-44243May 7, 2026 · GitPython: Path traversal in GitPython reference APIs allows arbitrary file write and delete outside the repository31Monitor
- ← EarlierCVE-2026-44244May 7, 2026 · GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath31Monitor
- Later →CVE-2026-67323Aug 1, 2026 · GitPython before 3.1.51 Command Injection via unguarded Git options34Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| gitpython-developers GitPython | 3.1.52 | Vendor (CNA) |
| debian:python-git | 3.1.61-1 · Debian:14 | Package registry (OSV) |
| opensuse:python-GitPython | 3.1.58-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| PyPI:gitpython | 3.1.52 | Package registry (OSV) |
| red hat:automation-controller-cli | 0:4.6.32-1.el8ap · Red Hat:ansible_automation_platform_developer:2.5::el8 | Package registry (OSV) |
| red hat:automation-controller-venv-tower | 0:4.6.32-1.el8ap · Red Hat:ansible_automation_platform:2.5::el8 | Package registry (OSV) |
| red hat:automation-gateway-server | 0:2.5.20260824-1.el8ap · Red Hat:ansible_automation_platform:2.5::el8 | Package registry (OSV) |
| red hat:clang | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang-analyzer | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang-devel | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang-libs | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang-resource-filesystem | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang-tools-extra | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang-tools-extra-devel | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:clang21 | 0:21.1.8-8.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:compiler-rt | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:git-clang-format | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:libcxx | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:libcxx-devel | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:libcxx-static | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:llvm | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:llvm-doc | 0:22.1.8-4.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:llvm21 | 0:21.1.8-8.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:llvm21-doc | 0:21.1.8-8.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.12-django | 0:5.2.17-1.el8ap · Red Hat:ansible_automation_platform_developer:2.5::el8 | Package registry (OSV) |
| red hat:python3.12-gitpython | 0:3.1.59-1.el8ap · Red Hat:ansible_automation_platform:2.5::el8 | Package registry (OSV) |
| red hat:swift-lang | 0:6.3.3-0.1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| suse:python-GitPython | 3.1.34.1693646983.2a2ae77-150400.9.8.1 · SUSE:Linux Enterprise Module for Python 3 15 SP7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- KrisKennawayDDreporter
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2026-7362212 days apartGitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()34Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- X
Weakness class (CWE)
CWE-200 · Exposure of Sensitive Information to an Unauthorized ActorCVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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
nvd-secondary
Root cause
The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.
The bug in code
The whole CWE-200 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
{
"permissions": ["tabs", "<all_urls>"],
"background": { "service_worker": "analytics.js" }
}Fixed
{
"permissions": ["activeTab"],
"host_permissions": ["https://yildiz.example/*"]
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- ExcavationCAPEC-116likelihood: High · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
- FootprintingCAPEC-169likelihood: High · Very Low
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- FingerprintingCAPEC-224likelihood: High · Very Low
- ICMP Echo Request PingCAPEC-285likelihood: Medium · Low
- TCP SYN ScanCAPEC-287Low
- Enumerate Mail Exchange (MX) RecordsCAPEC-290Low
ATT&CK techniques
- System Service DiscoveryT1007
- System Network Configuration DiscoveryT1016
- Remote System DiscoveryT1018
- System Owner/User DiscoveryT1033
- Masquerading: Match Legitimate Name or LocationT1036.005
- Network Service ScanningT1046
- System Network Connections DiscoveryT1049
- Process DiscoveryT1057
- Permission Groups DiscoveryT1069
- System Information DiscoveryT1082
- File and Directory DiscoveryT1083
- Account DiscoveryT1087
- Multi-Factor Authentication InterceptionT1111
- Peripheral Device DiscoveryT1120
- System Time DiscoveryT1124
- Access Token Manipulation:Token Impersonation/TheftT1134.001
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.