目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-57586— Gradle Wrapper 依赖发现阶段远程代码执行漏洞

一分钟漏洞结论

影响对象
naranor agent-coderag
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

CodeRAG 是一款面向 AI 编程智能体的轻量级语义代码搜索与蒸馏工具。在 1.3.1 之前, 中默认的 agent-coderag 同步流程会为已索引的路径调用 ,而 将存在 或 视为足以触发 。 会优先选择由仓库控制的 或 文件,并以仓库根目录作为工作目录,直接将其传递给 执行;而 中的 仅约束目录位置,但不校验可执行文件的内容或完整性。因此,当受害者索引了一个由攻击者控制的 Gradle 仓库时,就会以受害者操作系统的权限执行攻击者提供的代码,从而可能导致用户环境中的信息泄露、数据修改、持久化驻留或服务拒

CVSS 8.6 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-57586 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
CodeRAG: Gradle Wrapper Execution During Dependency Discovery Enables Arbitrary Code Execution
来源: CVE Program / CVE List V5
Vulnerability 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 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.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
naranor agent-coderag < 1.3.1 -

二、漏洞 CVE-2026-57586 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-57586 的情报信息

登录查看更多情报信息。

CVE-2026-57586 补丁与修复 (1)

CVE-2026-57586 厂商安全公告 (1)

CVE-2026-57586 厂商页面 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-57586

暂无评论


发表评论