BIT-golang-2026-97036

See a problem?
Import Source
https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2026-97036.json
JSON Data
https://api.osv.dev/v1/vulns/BIT-golang-2026-97036
Aliases
Published
2026-11-27T05:44:07Z
Modified
2026-11-27T06:55:56Z
Summary
Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go
Details

On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library " in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.

Database specific
{
    "cpes":  [
        "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"
    ],
    "severity":  "High"
}
References

Affected packages

Bitnami / golang

Package

Name
golang
Purl
pkg:bitnami/golang

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

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.26.11
Introduced
1.27.0-0
Fixed
1.27.4

Database specific

source
"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2026-97036.json"