Skip to content
HighVulnerability

CVE-2026-57586: CodeRAG sync runs repository gradlew wrapper, enabling code execution

Identifier
CVE-2026-57586
Published
Record updated
View JSON
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.