<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-28T13:33:22.361471+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-67326</id>
    <title>CVE-2026-67326 — GitPython before 3.1.50 Newline Injection via config_writer section</title>
    <updated>2026-09-28T13:33:22.363631+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> gitpython-developers GitPython</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-67326"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-mv93-w799-cj2w</id>
    <title>GHSA-mv93-w799-cj2w — GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.…</title>
    <updated>2026-09-28T13:33:22.363715+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: GitPython</p>
<p>Summary</p>
<p>The patch for CVE-2026-42215 (GitPython 3.1.49) validates newlines only in the value parameter of set_value(). The section and option parameters are passed to configparser without any newline validation. An attacker who controls the section argument can inject \n to write arbitrary section headers into .git/config, including a forged [core] section with hooksPath pointing to an attacker-controlled directory, leading to RCE when any git hook is triggered.</p>
<p>Details</p>
<p>File: git/config.py — GitPython 3.1.49 (latest patched version)</p>
<p>```python
  def set_value(self, section: str, option: str, value) -&gt; "GitConfigParser":
      value_str = self._value_to_string_safe(value)   # only value is validated
      if not self.has_section(section):
          self.add_section(section)                    # section not validated
      super().set(section, option, value_str)          # option not validated
      return self
```</p>
<p>_write() formats section headers as "[%s]\n" % name. When section = "user]\n[core", this writes [user]\n[core]\n — two valid section headers — into .git/config.</p>
<p>PoC</p>
<p>```python
  import git, os, subprocess</p>
<p>repo = git.Repo.init("/tmp/bypass_test")</p>
<p>os.makedirs("/tmp/evil_hooks", exist_ok=True)
  with open("/tmp/evil_hooks/pre-commit", "w") as f:
      f.write("#!/bin/sh\nid &gt; /tmp/rce_proof.txt\n")
  os.chmod("/tmp/evil_hooks/pre-commit", 0o755)</p>
<p># Inject newline into section parameter (not value — already patched)
  with repo.config_writer() as cw:…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-mv93-w799-cj2w"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2026-3980</id>
    <title>PYSEC-2026-3980</title>
    <updated>2026-09-28T13:33:22.363794+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: gitpython</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2026-3980"/>
  </entry>
</feed>
