7.8

CVE-2026-44244: GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath

Analyzed
AliasesGHSA-v87r-6q3f-2j67PYSEC-2026-2163UBUNTU-CVE-2026-44244
Published 07-05-2026Last modified 09-05-2026

Vulnerability summary

CVE-2026-44244 is a high (CVSS 7.8) Improper Control of Generation of Code vulnerability in gitpython_project gitpython. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.7% 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 (CVE.org)
EPSS score
0.24%
0%100%
Low · +0.02 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 4

Timeline

  1. 07-05-2026
    PublishedVulnerability first disclosed.
  2. 09-05-2026
    Last modifiedVulnerability information updated.

Description

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.49, GitConfigParser.set_value() passes values to Python's configparser without validating for newlines. GitPython's own _write() converts embedded newlines into indented continuation lines (e.g. \n becomes \n\t), but Git still accepts an indented [core] stanza as a section header — so the injected core.hooksPath becomes effective configuration. Any Git operation that invokes hooks (commit, merge, checkout) will then execute scripts from the attacker-controlled path. This issue has been patched in version 3.1.49.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

15%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.22% 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, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard5 products
  • awx< 24.6.1-r35
  • datahub-ingestion-fips< 1.5.0.1-r2
  • mlflow< 3.16.0-r0
  • mlflow-fips< 3.12.0-r0
  • opal< 0.9.5-r1
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.49
Ubuntu1 product
  • python-git< 0.3.2~RC1-3ubuntu0.1~esm3 | < 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | < 2.1.8-1ubuntu0.1~esm4 | < 3.0.7-1ubuntu0.1~esm4 | < 3.1.24-1ubuntu0.1~esm3 | < 3.1.37-3ubuntu0.1~esm2 | All versions (No fix recorded) | < 3.1.46-1ubuntu0.1~esm1
Wolfi1 product
  • mlflow< 3.16.0-r0

7 vendors · 11 products

References

9 links