Bug 2517356 - CVE-2026-44244 GitPython: GitPython: Arbitrary code execution via injected newlines in Git configuration [fedora-44]
Summary: CVE-2026-44244 GitPython: GitPython: Arbitrary code execution via injected ne...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: GitPython
Version: 44
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Lubomír Sedlář
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["9327528c-58d0-419b-9b9a-3...
Depends On:
Blocks: CVE-2026-44244
TreeView+ depends on / blocked
 
Reported: 2026-08-17 11:01 UTC by Yadnyawalk Tale
Modified: 2026-08-17 12:16 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-17 12:16:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Yadnyawalk Tale 2026-08-17 11:01:47 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Ben Beasley 2026-08-17 12:16:07 UTC
Previously fixed in https://bodhi.fedoraproject.org/updates/FEDORA-2026-8e8273f18f.

This issue didn’t need to be filed because a simple version-number check could have confirmed that the fix had been shipped.


Note You need to log in before you can comment on or make changes to this bug.