7.8

CVE-2026-67326: GitPython before 3.1.50 Newline Injection via config_writer section

Analyzed
AliasesGHSA-mv93-w799-cj2wPYSEC-2026-3980UBUNTU-CVE-2026-67326
Published 01-08-2026Last modified 14-08-2026

Vulnerability summary

CVE-2026-67326 is a high (CVSS 7.8) Improper Input Validation vulnerability in gitpython_project gitpython. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 17% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.25%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 6 · Related 3

Timeline

  1. 01-08-2026
    PublishedVulnerability first disclosed.
  2. 14-08-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.25%

Chance of exploitation in the next 30 days

Percentile

17%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.25% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Gitpython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • python-gitAll versions (No fix recorded) | < 3.1.30-1+deb12u3 | < 3.1.44-1+deb13u1 | < 3.1.50-1
Gitpython_project1 product
Gitpython-developers1 product
PyPI1 product
  • gitpython< 3.1.50
Ubuntu1 product
  • python-gitAll versions (No fix recorded)

5 vendors · 5 products

References

7 links