ADVISORIES

Vulnerability

CVE-2026-67326

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.

16 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • DEBIAN-CVE-2026-67326

    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…

    CVE-2026-67326 Debian Updated 31 October 2026
  • DLA-4872-1

    python-git - security update

    CVE-2026-100689CVE-2026-110855CVE-2026-110856CVE-2026-110857 Debian Updated 20 November 2026
  • DSA-6594-1

    python-git - security update

    CVE-2026-42215CVE-2026-42284CVE-2026-44243CVE-2026-44244 Debian Updated 20 November 2026
  • GHSA-mv93-w799-cj2w

    GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath

    High CVE-2026-67326 PyPI Updated 17 September 2026
  • OESA-2026-3249

    python-GitPython security update

    Critical CVE-2026-67322CVE-2026-67323CVE-2026-67324CVE-2026-67325 openEuler Updated 7 August 2026
  • OESA-2026-3250

    python-GitPython security update

    Critical CVE-2026-67322CVE-2026-67323CVE-2026-67324CVE-2026-67325 openEuler Updated 7 August 2026
  • OESA-2026-3251

    python-GitPython security update

    Critical CVE-2026-67322CVE-2026-67323CVE-2026-67324CVE-2026-67325 openEuler Updated 7 August 2026
  • PYSEC-2026-3980

    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…

    CVE-2026-67326 PyPI Updated 17 September 2026
  • RHSA-2026:44416

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-67322CVE-2026-67323CVE-2026-67325CVE-2026-67326 Red Hat Updated 13 November 2026
  • RHSA-2026:45785

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

    CVE-2026-43823CVE-2026-67322CVE-2026-67323CVE-2026-67325 Red Hat Updated 13 November 2026
  • RHSA-2026:45940

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-67322CVE-2026-67323CVE-2026-67325CVE-2026-67326 Red Hat Updated 13 November 2026
  • SUSE-SU-2026:4072-1

    Security update for python-GitPython

    CVE-2026-42215CVE-2026-42284CVE-2026-44243CVE-2026-44244 SUSE Updated 13 September 2026
  • SUSEVEX-CVE-2026-67326

    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…

    Important CVE-2026-67326 SUSEopenSUSE Updated 24 September 2026
  • UBUNTU-CVE-2026-67326

    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…

    CVE-2026-67326 Ubuntu Updated 18 September 2026
  • openSUSE-SU-2026:11466-1

    python313-GitPython-3.1.58-1.1 on GA media

    CVE-2026-67322CVE-2026-67325CVE-2026-67326CVE-2026-69097 openSUSE Updated 7 August 2026
  • openSUSE-SU-2026:21874-1

    Security update for python-GitPython

    CVE-2026-67322CVE-2026-67323CVE-2026-67325CVE-2026-67326 openSUSE Updated 25 September 2026

References