提交 #838569: antlr ANTLR4 4.13.2 Command Injection信息

标题antlr ANTLR4 4.13.2 Command Injection
描述When ANTLR4 generates Go code (-Dlanguage=Go), the GoTarget class executes gofmt using ProcessBuilder("gofmt", ...) without specifying an absolute path. The binary is resolved via the PATH environment variable. An attacker who can prepend a directory to PATH (via compromised build scripts, CI environment injection, or .envrc files) can place a malicious executable named gofmt that will be executed with the privileges of the build process. This was confirmed to achieve code execution with a crafted PATH.
来源⚠️ https://github.com/wooyun123/wooyun/issues/6
用户
 jiazhou (UID 89028)
提交2026-05-27 10時52分 (5 月前)
管理2026-06-27 20時28分 (1 month later)
状态已接受
VulDB条目374496 [antlr ANTLR4 直到 4.13.2 gofmt GoTarget.java GoTarget 权限提升]
积分20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!