npm · PyPI
CVE-2026-114496
codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
- Severity
- Medium 5.5
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 0.9.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 1 Dec 2026
- Weakness
- Argument injection (CWE-88)
- Attack
- Needs local access · Needs a user account · No user action needed
- Attacker can
- Change data
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Also known as
- GHSA-2vj2-hwgx-6f23
- Sources
- OSV.dev and GitHub
Description
Before 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 was placed in the revision position of a git diff invocation, so a value shaped like a git option was honoured by git. An option such as --output= made git write its diff to a caller-chosen file.
A caller of detect_changes can create or overwrite a file with Git diff output at a caller-chosen path, subject to the server process's permissions. This is the demonstrated integrity impact; arbitrary code execution was not demonstrated.
Workarounds
Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which was verified to contain this fix.
Affected software
| Software | Affected versions |
|---|---|
codebase-memory-mcpPyPI · osv:PyPI:codebase-memory-mcp |
|
codebase-memory-mcpnpm · osv:npm:codebase-memory-mcp |
|
About codebase-memory-mcp
- Weekly downloads (PyPI)
- 1,862PyPI Stats, 1 Dec 2026
Vulnerabilities in codebase-memory-mcp
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-114499codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexerMedium 5.5 1 Dec 2026
- CVE-2026-114497codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processesMedium 5.5 1 Dec 2026
- CVE-2026-114495codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacityHigh 7.8 1 Dec 2026
- CVE-2026-114494codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 itemsHigh 7.8 1 Dec 2026
About codebase-memory-mcp
- Weekly downloads (npm)
- 10,962npm, 1 Dec 2026
Vulnerabilities in codebase-memory-mcp
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-114499codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexerMedium 5.5 1 Dec 2026
- CVE-2026-114497codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processesMedium 5.5 1 Dec 2026
- CVE-2026-114495codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacityHigh 7.8 1 Dec 2026
- CVE-2026-114494codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 itemsHigh 7.8 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-114496
- GitHub Advisory Database https://github.com/advisories/GHSA-2vj2-hwgx-6f23