{
  "id": "CVE-2026-42215",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42215",
  "published_at": "2026-05-07T18:17:03.194Z",
  "title": "GitPython: Command injection via Git options bypass",
  "vendor": "gitpython-developers",
  "product": "GitPython",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/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. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "gitpython-developers",
        "product": "GitPython",
        "ranges": [
          "\u003e= 3.1.30, \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-rpm5-65cw-6hj4"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
