@google/gemini-cli-core is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
52
Medium Risk
Affected versions of this package contain a command injection vulnerability in the hooks system where unsanitized expansion of the $GEMINI_PROJECT_DIR and $CLAUDE_PROJECT_DIR variables occurred immediately before shell execution, allowing an attacker who controls a malicious directory path name to inject arbitrary commands by crafting environment variables or pathnames containing shell metacharacters, leading to arbitrary code execution with the privileges of the application.
You are affected if you are using a version that falls within the vulnerable range.
@google/gemini-cli-core is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in versions 0.15.0 - 0.22.5.
Upgrade the @google/gemini-cli-core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant