{
  "id": "CVE-2026-42284",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42284",
  "published_at": "2026-05-07T18:19:20.129Z",
  "title": "GitPython: Unsafe option check validates multi_options before shlex.split transforms it",
  "vendor": "gitpython-developers",
  "product": "GitPython",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/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.47, _clone() validates multi_options as the original list, then executes shlex.split(\" \".join(multi_options)). A string like \"--branch main --config core.hooksPath=/x\" passes validation (starts with --branch), but after split becomes [\"--branch\", \"main\", \"--config\", \"core.hooksPath=/x\"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.",
  "cwe": "CWE-88",
  "cpes": [
    "cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "gitpython-developers",
        "product": "GitPython",
        "ranges": [
          "\u003c 3.1.47"
        ],
        "fixed_in": [
          "3.1.47"
        ]
      }
    ],
    "upgrade": [
      "Upgrade GitPython to 3.1.47 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.tenable.com/cve/CVE-2026-32686",
      "source": "cvelist",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
