{
  "id": "CVE-2026-42563",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42563",
  "published_at": "2026-06-10T21:47:14.927Z",
  "title": "Dulwich Vulnerable to Command Injection via Merge Driver Path",
  "vendor": "jelmer",
  "product": "dulwich",
  "cvss": {
    "score": 7.7,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "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": "Dulwich is a pure-Python implementation of the Git file formats and protocols. Starting in version 0.24.0 and prior to version 1.2.5, Dulwich's `ProcessMergeDriver` substitutes the file path (from the git tree, controllable by an attacker via a malicious branch) into the merge driver command via the `%P` placeholder and executes it with `subprocess.run(..., shell=True)`. An attacker who can cause a victim to merge an untrusted branch can achieve arbitrary command execution by crafting malicious file paths. Version 1.2.5 fixes the issue.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 7.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "jelmer",
        "product": "dulwich",
        "ranges": [
          "\u003e= 0.24.0, \u003c 1.2.5"
        ],
        "fixed_in": [
          "1.2.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade dulwich to 1.2.5 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/jelmer/dulwich/security/advisories/GHSA-9277-mp7x-85jf"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/jelmer/dulwich/commit/e3331b3b3a122fc313460182f928f59723580b7b"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/jelmer/dulwich/releases/tag/dulwich-1.2.5"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
