本文へ移動
English version →
中 5.5

codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project

CVE-2026-114496 SecPulse初出

影響パッケージ

パッケージ影響を受ける版 → 修正版
DeusDatacodebase-memory-mcp —
npmcodebase-memory-mcp
0.9.0 未満→ 0.9.0
PyPIcodebase-memory-mcp
0.9.0 未満→ 0.9.0
pipcodebase-memory-mcp
0.9.0 未満→ 0.9.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

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.

Impact

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.

Patches

Fixed in stable 0.9.0. Option-like values are rejected before Git is invoked. In the verified v0.12.1 release, both since and its base_branch alias pass through the leading-dash check, and the regression verifies rejection.

Workarounds

Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which was verified to contain this fix.

Credit

Reported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the report and re-verification.

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく