CVE-2026-114496: codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
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=<path> made git write its diff to a caller-chosen file.
References
- github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951
- github.com/DeusData/codebase-memory-mcp/pull/941
- github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
- github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23
- github.com/advisories/GHSA-2vj2-hwgx-6f23
- nvd.nist.gov/vuln/detail/CVE-2026-114496
Code Behaviors & Features
Detect and mitigate CVE-2026-114496 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →