CVE-2023-29403
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-29403 is a security vulnerability discovered in the Go runtime that affects Unix platforms when binaries are run with setuid/setgid bits. The vulnerability was discovered by Vincent Dehors from Synacktiv and was publicly disclosed in June 2023. It affects Go versions prior to 1.19.10 and versions from 1.20.0 up to (excluding) 1.20.5 (Go Advisory, NVD).

Technical details

The vulnerability stems from the Go runtime's failure to handle setuid/setgid bits differently on Unix platforms. When a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Additionally, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The successful exploitation of this vulnerability could lead to unauthorized disclosure of sensitive information, unauthorized modification of data, or Denial of Service (DoS). The vulnerability is particularly concerning as it could allow attackers to read or write content with elevated privileges, potentially compromising system security (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.19.10 and 1.20.5. Users are advised to upgrade to these or later versions to mitigate the vulnerability. The fix was released as part of the security updates announced in the Go 1.20.5 and 1.19.10 releases (Golang Announce).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management