CVE-2023-24531
Output of "go env" does not sanitize values in cmd/go
Description
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.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityAffected Products
Exploitability
References
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2023-24531 and every CVE in our database. Create a free account — no credit card required.
Create Free Account