DHI-nywe-kyhw-6u5d-ckjf

Source
https://scout.docker.com/v/DHI-nywe-kyhw-6u5d-ckjf
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-nywe-kyhw-6u5d-ckjf.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-nywe-kyhw-6u5d-ckjf
Upstream
  • CVE-2026-97043
Published
2026-11-18T19:52:05Z
Modified
2026-11-18T20:03:26Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution…
Details

Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgo_ldflag" directives. When "cmd/cgo" generates "cgo_gotypes.go", it quotes each "#cgo LDFLAGS" argument with strconv.Quote in a "//go:cgo_ldflag" directive, but "cmd/compile" and "cmd/go" parsed those directives by splitting on raw quote characters without handling backslash escapes or unquoting the string. This mismatch allowed disallowed linker flags or unvalidated linker search paths to be smuggled past the go command's flag checks and passed to the external linker. In addition, deduplicating LDFLAGS in the go command could panic with an out-of-bounds slice index when a prefix of the flag list matched near the end of the slice. "cmd/compile" and "cmd/go" now properly handle backslash-escaped quotes and unquote "//go:cgo*" pragma strings with strconv.Unquote, and the slice bounds check in processCgoOutputs has been fixed.

References

Affected packages

Docker Hardened Images:Alpine:3.24 / go

Package

Name
go
Purl
pkg:apk/dhi/go

Affected ranges

Affected versions

1.*
1.26.4-r0
1.26.5-r0
1.27.0-r0
1.27.1-r0
1.27.2-r0
1.27.3-r0
1.27.4-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-nywe-kyhw-6u5d-ckjf.json"