PatchSiren cyber security CVE debrief
CVE-2026-67322 gitpython-developers CVE debrief
GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from(). The vulnerability allows an attacker who controls the clone URL to embed $NAME or ${NAME} tokens that are expanded to the values of the hosting process's environment variables. This issue affects GitPython users, developers, and administrators, who should be aware of this vulnerability and take necessary actions to prevent environment-variable exfiltration. The CVE record was published on 2026-08-01T13:17:02.493Z and has not been modified since then. The vulnerability has a CVSS score of 8.7 and is classified as HIGH severity.
- Vendor
- gitpython-developers
- Product
- GitPython
- CVSS
- HIGH 8.7
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-01
- Original CVE updated
- 2026-08-01
- Advisory published
- 2026-08-01
- Advisory updated
- 2026-08-01
Who should care
GitPython users, developers, and administrators should be aware of this vulnerability and take necessary actions to prevent environment-variable exfiltration. This includes updating GitPython to version 3.1.52 or later, restricting access to GitPython, and monitoring GitPython usage for suspicious activity. The vulnerability has a significant impact on the security of GitPython deployments, and affected organizations should prioritize patching and take steps to prevent exploitation. Additionally, security teams should review their vulnerability management processes to ensure they are prepared to respond to similar vulnerabilities in the future. Operators of GitPython deployments should also review their platform and vulnerability management processes to ensure they are prepared to respond to similar vulnerabilities in the future. This vulnerability highlights the importance of secure coding practices and secure configuration of GitPython deployments. Security teams should also consider implementing compensating controls, such as monitoring and asset inventory, to detect and prevent exploitation of this vulnerability. Furthermore, organizations should track exceptions, retest remediated assets, and close the item only after evidence is documented. This will help ensure that the vulnerability is properly remediated and that the risk of exploitation is minimized. Finally, organizations should review their incident response plans to ensure they are prepared to respond to potential exploitation of this vulnerability. By taking these steps, organizations can minimize the risk of exploitation and protect their GitPython deployments from potential attacks. The CVE record provides additional context and information about the vulnerability, which can be used to inform remediation efforts. Security teams should review the CVE record and use it to inform their remediation efforts. In addition, security teams should consider implementing source tracking to monitor for potential exploitation of this vulnerability. This can help organizations detect and respond to potential attacks in a timely and effective manner. Overall, the vulnerability in GitPython highlights the need to
Technical summary
The vulnerability is caused by the caller-supplied remote URL being 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. The resulting URL, now containing the secret, is transmitted over the network to an attacker-controlled host during the clone attempt, disclosing the secret. The affected product is GitPython before version 3.1.52.
Defensive priority
GitPython users should prioritize patching to prevent environment-variable exfiltration.
Recommended defensive actions
- Update GitPython to version 3.1.52 or later
- Restrict access to GitPython
- Monitor GitPython usage for suspicious activity
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
Evidence notes
The CVE description indicates that GitPython before 3.1.52 is vulnerable to environment-variable exfiltration in Repo.clone_from(). The vulnerability is caused by the caller-supplied remote URL being 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.
Official resources
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-08-01T13:17:02.493Z and has not been modified since then.