CVE-2023-24531: Output of "go env" does not sanitize values in cmd/go
Noroxi assessment
Priority: Monitor (action score 39/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.84% (FIRST EPSS); higher than 58.1% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: Go toolchain cmd/go 1.21.0-0; azl3 golang 1.21.0-1 on Azure Linux 3.0 1.21.0-1; azl3 golang 1.23.8-1 on Azure Linux 3.0 CBL-Mariner Releases.
Low priority for now. Upgrade to Go toolchain cmd/go 1.21.0-0; azl3 golang 1.21.0-1 on Azure Linux 3.0 1.21.0-1; azl3 golang 1.23.8-1 on Azure Linux 3.0 CBL-Mariner Releases or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
Command go env is documented as outputting a shell script containing the Go environment. However, go env doesn't sanitize values, so executing its output as a shell script can cause various bad bahaviors, including executing arbitrary commands or inserting new environment variables. This issue is relatively minor because, in general, if an attacker can set arbitrary environment variables on a system, they have better attack vectors than making "go env" print them out.
- Published
- Jul 2, 2024
- Updated
- Jun 17, 2026
- EPSS
- 0.8% · 58th percentile
- CWE
- CWE-138
Report tools
Action score
39
Monitor
Low priority for now.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CISA SSVC decision
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| gotoolchain | cmd/go | cpe:2.3:a:gotoolchain:cmd/go |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Go). Independent of NVD's CPE analysis and usually ahead of it.
Go toolchain cmd/go
- before 1.21.0-0affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | golang-1.19 | from 0 | — |
| Go | toolchain | before 1.21.0-0 | 1.21.0-0 |
Same product
go toolchain: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-45340GOAUTH credential leak in cmd/go35Monitor
- CVE-2026-56865Fix transparency log tile verification bypass in golang.org/x/mod/sumdb/tlog33Monitor
- CVE-2026-94447Checksum database bypass for golang.org/toolchain in cmd/go31Monitor
Published before and after this one in the same product
- ← EarlierCVE-2024-24787May 8, 2024 · Arbitrary code execution during build on Darwin in cmd/go25Monitor
- Later →CVE-2025-22867Feb 6, 2025 · Arbitrary code execution during build on darwin in cmd/go30Monitor
- Later →CVE-2026-56864Aug 13, 2026 · Ignore unrelated, unauthenticated hashes in Lookup in golang.org/x/mod/sumdb30Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go toolchain cmd/go | 1.21.0-0 | Vendor (CNA) |
| azl3 golang 1.21.0-1 on Azure Linux 3.0 | 1.21.0-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 golang 1.23.8-1 on Azure Linux 3.0 | CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 golang 1.27.0-1 on Azure Linux 3.0 | — | Microsoft (MSRC) |
| cbl2 golang 1.21.0-1 on CBL Mariner 2.0 | 1.21.0-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 golang 1.22.7-3 on CBL Mariner 2.0 | CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 msft-golang 1.21.0-1 on CBL Mariner 2.0 | 1.21.0-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 msft-golang 1.24.1-2 on CBL Mariner 2.0 | CBL-Mariner Releases | Microsoft (MSRC) |
| Go:toolchain | 1.21.0-0 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-138 · Improper Neutralization of Special ElementsCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (5 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.