Bug 2579832 - CVE-2026-97036 golang: cmd/go: arbitrary code execution via crafted cgo linker flags [fedora-all]
Summary: CVE-2026-97036 golang: cmd/go: arbitrary code execution via crafted cgo linke...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: golang
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Alejandro Sáez Morollón
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["e185c21b-051f-4666-a937-a...
Depends On:
Blocks: CVE-2026-97036
TreeView+ depends on / blocked
 
Reported: 2026-11-21 08:22 UTC by Avinash Hanwate
Modified: 2026-11-21 08:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2026-11-21 08:22:47 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 <path>" 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.


Note You need to log in before you can comment on or make changes to this bug.