{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-13745",
        "assignerOrgId": "f45cbf4e-4146-4068-b7e1-655ffc2c548c",
        "state": "PUBLISHED",
        "assignerShortName": "GoogleCloud",
        "dateReserved": "2026-06-29T15:39:28.269Z",
        "datePublished": "2026-09-10T08:33:09.309Z",
        "dateUpdated": "2026-09-10T08:33:09.309Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "f45cbf4e-4146-4068-b7e1-655ffc2c548c",
                "shortName": "GoogleCloud",
                "dateUpdated": "2026-09-10T08:33:09.309Z"
            },
            "title": "Arbitrary Code Execution in Gemini CLI via Symlinked Environment Variables",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-20",
                            "description": "CWE-20 Improper input validation",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-78",
                            "description": "CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-88",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-88 Command Injection"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "Google Cloud",
                    "product": "Gemini CLI",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "0.39.1",
                            "versionType": "custom"
                        }
                    ],
                    "defaultStatus": "unaffected"
                },
                {
                    "vendor": "Google Cloud",
                    "product": "run-gemini-cli GitHub Action",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "0.1.22",
                            "versionType": "custom"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A vulnerability in the Gemini CLI and associated GitHub Action allowed an unprivileged attacker to achieve an arbitrary code execution in Gemini CLI via untrusted local .env files overriding GEMINI_CLI_HOME.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "A vulnerability in the Gemini CLI and associated GitHub Action allowed an unprivileged attacker&nbsp;<span>to achieve an arbitrary code execution in Gemini CLI via untrusted local .env files overriding GEMINI_CLI_HOME.</span>"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/google-github-actions/run-gemini-cli/releases/tag/v0.1.22"
                },
                {
                    "url": "https://github.com/google-github-actions/run-gemini-cli/security/advisories/GHSA-wpqr-6v78-jr5g"
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "subConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "HIGH",
                        "subIntegrityImpact": "LOW",
                        "vulnAvailabilityImpact": "HIGH",
                        "subAvailabilityImpact": "LOW",
                        "exploitMaturity": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "valueDensity": "NOT_DEFINED",
                        "vulnerabilityResponseEffort": "NOT_DEFINED",
                        "providerUrgency": "AMBER",
                        "version": "4.0",
                        "baseSeverity": "CRITICAL",
                        "baseScore": 9.2,
                        "vectorString": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L/U:Amber"
                    }
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "*  Upgrade: Ensure you are using the latest version of gemini cli and follow the best practices guide https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md\n  *  Configure Trust: Determine if your CI workflow operates on trusted or untrusted data. If the data is fully trusted, set GEMINI_TRUST_WORKSPACE: 'true' in your workflow.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<div><ol><li><strong>Upgrade</strong>: Ensure you are using the latest version of gemini cli and follow the best practices guide https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md</li><li><strong>Configure Trust</strong>: Determine if your CI workflow operates on trusted or untrusted data. If the data is fully trusted, set&nbsp;<code>GEMINI_TRUST_WORKSPACE: 'true'</code>&nbsp;in your workflow.</li></ol></div>"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Benjamin Faller, Redguard AG",
                    "type": "reporter"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "x_generator": {
                "engine": "Vulnogram 1.0.2"
            }
        }
    }
}