A vulnerability in the Gemini CLI prior to version 0.39.1 allows attackers to achieve arbitrary code execution by tricking a victim into starting the CLI within an untrusted directory. The vulnerability is triggered via untrusted .env files overriding GEMINI_CLI_HOME to load malicious configuration files and bypass folder trust prompts.
{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.39.1"
}
],
"source": "DESCRIPTION"
},
{
"original_tag": "v0.39.1",
"range": [
{
"fixed": "4d73f3413949ae5c638804c5eac27a9bcd0567ca"
}
],
"source": "REFERENCES_TAG"
}
]
}