HOL-VULN-2026-0023HOL vulnerability recordCVSS 4.0 5.5 · MediumPublic

Git option injection through base_branch in detect_changes in DeusData/codebase-memory-mcp

In codebase-memory-mcp below 0.9.0, the base_branch argument of the detect_changes tool was checked for shell metacharacters but not for a leading dash. The value sat in the revision position of a git diff invocation, so git honoured a value shaped like one of its own options. An option such as --output=<path> made git write its diff to a file path the caller chose. A caller of detect_changes could therefore create or overwrite a file holding Git diff output at a path they picked, within the server process's permissions. The advisory states this file write as the demonstrated impact; arbitrary code execution was not demonstrated. The fix in 0.9.0 rejects option-like values before Git is invoked. The advisory lists codebase-memory-mcp below 0.9.0 as affected on npm and pip, and 0.9.0 as patched. CVE-2026-114496 is assigned.

Affected artifact
DeusData/codebase-memory-mcp — detect_changes tool (base_branch argument)mcp server
Affected versions
codebase-memory-mcp ≥ 0 to < 0.9.0; codebase-memory-mcp ≥ 0 to < 0.9.0
Fixed in
0.9.0
Last verified
2026-12-05

Severity

CVSS 4.0 score 5.5 (Medium), scored by HOL.

CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

What this means

GHSA-2vj2-hwgx-6f23 / CVE-2026-114496: in codebase-memory-mcp, the detect_changes base_branch value was not checked for a leading dash, so a git option such as --output=<path> made git write its diff to a caller-chosen file. Fixed in 0.9.0; upgrade from below 0.9.0.

What to do

Upgrade codebase-memory-mcp to 0.9.0 or later; the advisory recommends v0.12.1, which it verified contains this fix. Callers on affected versions should not pass untrusted values as base_branch to detect_changes.

Evidence

Precondition. A caller able to invoke the detect_changes tool with a base_branch value it controls, on codebase-memory-mcp below 0.9.0.

Source proof. Per the advisory, passing a base_branch value shaped like a git option, such as --output=<path>, to detect_changes makes the git diff invocation write its output to that path. HOL did not run the server; this rests on the advisory.

Version determination. Determined by range — The advisory states codebase-memory-mcp below 0.9.0 is affected on npm and pip, patched in 0.9.0.

Disclosure

Disclosure state: independent public · Publisher: DeusData/codebase-memory-mcp

Naming decision: named. Vendor named as drafted. Finding already public with fix published; naming call sits with this job under Nov 24-25 2026 rules.

Vendor response: fixed — Fix published in 0.9.0.

  1. 2026-11-17 · vendor action

    Maintainers published advisory GHSA-2vj2-hwgx-6f23 with the fix in 0.9.0.

  2. 2026-12-05 · guard update

    Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 0.9.0, CVE-2026-114496 assigned.

  3. 2026-12-05 · guard update

    Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 0.9.0, CVE-2026-114496 assigned.

  4. 2026-12-05 · disclosure

    Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 0.9.0, CVE-2026-114496 assigned.

Affected artifact references

Cite this record

[HOL-VULN-2026-0023] Git option injection through base_branch in detect_changes in DeusData/codebase-memory-mcp — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0023

Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0023

Found an error in this record, or want to appeal it? Report an issue or appeal.

Appeal or correct this record

Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.

Appeal or correct HOL-VULN-2026-0023