Loading advisory.
Loading advisory.
Arbitrary code execution via go.mod toolchain directive in cmd/go
The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module.
Published 2023-09-07 16:11 UTC · Modified 2026-02-04 02:32 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| toolchain | Go | >= 1.21.0-0, < 1.21.1 | 1.21.1 | No single command for Go. Update to 1.21.1 in your build file. |
The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the module proxy, as well as modules downloaded directly using VCS software.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.018 on 2026-11-24 to 0.018 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.018 | first score | v2026.06.15 |
| 2026-11-26 | 0.018 | 0.018 | v2026.06.15 |