{
  "id": "CVE-2026-44244",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-44244",
  "published_at": "2026-05-07T18:22:39.704Z",
  "title": "GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath",
  "vendor": "gitpython-developers",
  "product": "GitPython",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cpes": [
    "cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "gitpython-developers",
        "product": "GitPython",
        "ranges": [
          "\u003c 3.1.49"
        ],
        "fixed_in": [
          "3.1.49"
        ]
      }
    ],
    "upgrade": [
      "Upgrade GitPython to 3.1.49 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
