Red Hat VEX
RHVEX-CVE-2024-34158
go/build/constraint: golang: Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion
Details
A flaw was found in the go/build/constraint package of the Golang standard library. Calling Parse on a "// +build" build tag line with deeply nested expressions can cause a panic due to stack exhaustion.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | go-toolset | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang-bin | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang-docs | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang-misc | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang-race | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang-src | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | golang-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | podman | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | podman-docker | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | podman-remote | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | podman-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | osbuild-composer | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-core | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-dnf-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | osbuild-composer-worker | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | grafana | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | grafana-selinux | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | opentelemetry-collector | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2024-34158
- https://bugzilla.redhat.com/show_bug.cgi?id=2310529
- https://www.cve.org/CVERecord?id=CVE-2024-34158
- https://nvd.nist.gov/vuln/detail/CVE-2024-34158
- https://go.dev/cl/611240
- https://go.dev/issue/69141
- https://groups.google.com/g/golang-dev/c/S9POB9NCTdk
- https://pkg.go.dev/vuln/GO-2024-3107