cve.bz

CVE-2026-67326 gitpython project gitpython: Improper Input Validation

7.3 highExploit referenceEPSS 0.3%Fix available

High (7.3) in gitpython project gitpython. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.50.

On this page
GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

Severity

CVSS 4.0

7.3 high
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-08-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-67326 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-67326?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-67326?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-67326 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
gitpython-developers GitPythonbefore 3.1.50

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mv93-w799-cj2wPyPIgitpython<3.1.503.1.50
PYSEC-2026-3980PyPIgitpython<3.1.503.1.50

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-67326
Debian13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-67326
Debian14python-git3.1.50-1DEBIAN-CVE-2026-67326
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 4 morepython-gitno fix listedUBUNTU-CVE-2026-67326
Red Hathummingbird:1lld, lldb, llvm and 37 more0:22.1.8-4.1.hum1RHSA-2026:44416
Red Hathummingbird:1lld21, lldb21, llvm21 and 23 more0:21.1.8-8.hum1RHSA-2026:45940
Red Hathummingbird:1swift-lang, swift-lang-runtime0:6.3.3-0.1.1.hum1RHSA-2026:45785
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-GitPython3.1.34.1693646983.2a2ae77-150400.9.8.1SUSE-SU-2026:4072-1
openSUSELeap 16.0python-GitPython3.1.44-160000.4.1openSUSE-SU-2026:21874-1
openSUSETumbleweedpython-GitPython3.1.58-1.1openSUSE-SU-2026:11466-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Hardened Imagesllvm-main-22.1.8-4.1.hum1Fixed 2026-07-23RHSA-2026:44416
Red Hat Hardened Imagesswift-lang-main-6.3.3-0.1.1.hum1Fixed 2026-07-25RHSA-2026:45785
Red Hat Hardened Imagesllvm21-main-21.1.8-8.hum1Fixed 2026-07-26RHSA-2026:45940
Red Hat Hardened ImagesrustNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-67326.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON