top of page
perceptive_background_267k.jpg

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers…

Published:

1 August 2026 at 00:00:00

Alert date:

1 August 2026 at 16:10:40

Source:

nvd.nist.gov

Click to open the original link from this advisory

Supply Chain & Dependencies, Web Technologies, Zero-Day Vulnerabilities

GitPython versions before 3.1.50 contain a critical vulnerability in the config_writer() function that fails to validate newline characters in the section parameter. This allows attackers to inject arbitrary section headers into the .git/config file. By injecting newlines, an attacker can forge a [core] section with a hooksPath pointing to an attacker-controlled directory. When git hooks are subsequently triggered, this leads to remote code execution. The vulnerability is straightforward to exploit and affects any application using the GitPython library below version 3.1.50. Users are advised to upgrade to GitPython 3.1.50 or later to remediate the issue. The vulnerability has been assigned CVE-2026-67326 and is documented in both the NVD and GitHub Security Advisories.

Technical details

Mitigation steps:

Affected products:

GitPython before 3.1.50

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page