Loading advisory.
Loading advisory.
Arbitrary code execution during build via line directives in cmd/go
Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build".
Published 2023-10-05 20:35 UTC · Modified 2026-02-04 02:19 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|
| toolchain | Go | < 1.20.9 >= 1.21.0-0, < 1.21.2 | 1.20.9, 1.21.2 | No single command for Go. Update to 1.20.9, 1.21.2 in your build file. |
|---|
Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.019 on 2026-11-24 to 0.019 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.019 | first score | v2026.06.15 |
| 2026-11-26 | 0.019 | 0.019 | v2026.06.15 |