{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-57586","id":"CVE-2026-57586","title":"CodeRAG: Gradle Wrapper Execution During Dependency Discovery Enables Arbitrary Code Execution","description":"CodeRAG is a lightweight semantic code search and distillation utility for AI coding agents. Prior to 1.3.1, the default agent-coderag sync flow in code_rag/entry/cli.py calls sync_dependencies for an indexed path, and code_rag/core/manager.py treats build.gradle or build.gradle.kts as sufficient to invoke _sync_gradle. _sync_gradle prefers a repository-controlled gradlew or gradlew.bat file and p","descriptionLong":"CodeRAG is a lightweight semantic code search and distillation utility for AI coding agents. Prior to 1.3.1, the default agent-coderag sync flow in code_rag/entry/cli.py calls sync_dependencies for an indexed path, and code_rag/core/manager.py treats build.gradle or build.gradle.kts as sufficient to invoke _sync_gradle. _sync_gradle prefers a repository-controlled gradlew or gradlew.bat file and passes it directly to asyncio.create_subprocess_exec with the repository root as the working directory; validate_path in code_rag/core/utils.py constrains the directory location but does not validate the executable's content or integrity. A victim who indexes an attacker-controlled Gradle repository therefore executes attacker-supplied code with the victim's operating-system privileges, allowing disclosure, modification, persistence, or denial of service in the user environment. This issue is fixed in 1.3.1.","published":"2026-09-15T14:25:56.152Z","updated":"2026-10-28T02:30:36.783504048Z","reserved":"2026-06-24T18:49:56.209Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["naranor agent-coderag"],"affectedProducts":[{"vendor":"naranor","product":"agent-coderag","defaultStatus":null,"versions":[{"version":"< 1.3.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"agent-coderag","purl":"pkg:pypi/agent-coderag","ranges":["<1.3.1"],"fixed":["1.3.1"],"advisory":"GHSA-wg5p-8h9p-3mr7"}],"cwes":["CWE-78"],"aliases":["GHSA-wg5p-8h9p-3mr7"],"references":[{"url":"https://github.com/naranor/agent-coderag/security/advisories/GHSA-wg5p-8h9p-3mr7","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/naranor/agent-coderag/commit/1d917513cd95209bab9cbb5fe00df84989805e7d","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/naranor/agent-coderag/releases/tag/v1.3.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57586.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57586","tags":["advisory"]},{"url":"https://github.com/naranor/agent-coderag","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00214,"epssPercentile":0.11804,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-57586","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57586","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-57586","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wg5p-8h9p-3mr7","ok":true,"note":"GHSA-wg5p-8h9p-3mr7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-57586","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}