Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/link

cve-program · severity unknownCVSS unknownCheck source for fixed versionsKEV status unknown

Historical advisory recorded 11 Nov 2026 04:25:37 UTC. Read the latest advisory.

cve-program · CVE-2026-97042

Published

Building a malicious package that uses "//go:cgo_import_dynamic" or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in "//go:cgo_import_dynamic" directives and skipped validation in cgo-generated files. In addition, on Windows, "cmd/cgo" and "cmd/link" did not validate imported DLL names extracted from PE object files before emitting "-l<name>" flags for the external linker, allowing a crafted DLL name containing ".." path traversal or special characters to reference arbitrary files on disk. The compiler now validates every character of the library name in "//go:cgo_import_dynamic" directives (including in cgo-generated files on Windows) and rejects ".." path traversal, and "cmd/cgo" and "cmd/link" reject PE imported DLL names containing path separators, "..", ":", or leading "-" or "@".

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2026-97042

Published

cmd/cgo

https://pkg.go.dev

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "Go toolchain",
                    "product": "cmd/cgo",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "cmd/cgo",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.26.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "1.27.0-0",
                            "lessThan": "1.27.4",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }

cmd/compile

https://pkg.go.dev

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "Go toolchain",
                    "product": "cmd/compile",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "cmd/compile",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.26.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "1.27.0-0",
                            "lessThan": "1.27.4",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }

cmd/link

https://pkg.go.dev

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "Go toolchain",
                    "product": "cmd/link",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "cmd/link",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.26.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "1.27.0-0",
                            "lessThan": "1.27.4",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 17 Nov 02:47 UTC · 274 of 275 readable · 250 fully read · 20 waiting for GitHub's hourly limit · documentation 469/469 current