HighVulnerability
CVE-2026-57586: CodeRAG sync runs repository gradlew wrapper, enabling code execution
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-57586
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
CodeRAG versions prior to 1.3.1 execute repository-controlled code during the default agent-coderag sync flow. When build.gradle or build.gradle.kts is present, _sync_gradle runs a repository-supplied gradlew or gradlew.bat via asyncio.create_subprocess_exec, and validate_path checks only the directory, not the executable's content or integrity. Indexing an attacker-controlled Gradle repository therefore runs attacker code with the victim's operating-system privileges, enabling disclosure, modification, persistence, or denial of service.
Mitigation
Fixed in 1.3.1.
Topics
Related items
- MediumResearchers Uncover Prompt Adware Hidden in OpenAI Codex Jailbreak ToolkitSimilar attack · The Hacker News
- InfoTop agent skill security resources — November 2026Similar attack · Adversa AI Blog
- HighCVE-2026-118627: MLflow SHAP load_explainer untrusted deserialization enables code executionSimilar attack · NVD/CVE Database
- HighCVE-2026-118623: MLflow PickleEvaluationArtifact remote code execution via untrusted pickleSimilar attack · NVD/CVE Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSimilar attack · NVD/CVE Database