Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

CVSS 7.8 · High EPSS 0.02% · P7
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-44244

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: NVD (National Vulnerability Database)
Vulnerability Title
GitPython 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GitPython是gitpython-developers开源的一个用于与 Git 存储库交互的 Python 库。 GitPython 3.1.49之前版本存在代码注入漏洞,该漏洞源于GitConfigParser.set_value()将值传递给Python的configparser时未验证换行符,可能导致攻击者注入core.hooksPath配置,任何调用钩子的Git操作将执行攻击者控制路径下的脚本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
gitpython-developersGitPython < 3.1.49 -

II. Public POCs for CVE-2026-44244

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium
Qwen3.6-35B-A3B · 7899 chars
Paid plan includes:
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-44244

登录查看更多情报信息。
Vendor · 1Advisory · 1

Same Patch Batch · gitpython-developers · 2026-05-07 · 4 CVEs total

CVE-2026-422158.8 HIGHGitPython: Command injection via Git options bypass
CVE-2026-422848.1 HIGHGitPython: Unsafe option check validates multi_options before shlex.split transforms it
CVE-2026-44243GitPython: Path traversal in GitPython reference APIs allows arbitrary file write and dele

IV. Related Vulnerabilities

V. Comments for CVE-2026-44244

No comments yet


Leave a comment