Skip to content

On Darwin, building a Go module which contains CGO can...

Moderate severity Unreviewed Published May 8, 2024 to the GitHub Advisory Database • Updated Jul 3, 2024

Package

No package listedSuggest a package

Affected versions

Unknown

Patched versions

Unknown

Description

On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the -lto_library flag in a "#cgo LDFLAGS" directive.

References

Published by the National Vulnerability Database May 8, 2024
Published to the GitHub Advisory Database May 8, 2024
Last updated Jul 3, 2024

Severity

Moderate
6.4
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
High
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Weaknesses

No CWEs

CVE ID

CVE-2024-24787

GHSA ID

GHSA-5fq7-4mxc-535h

Source code

No known source code

Dependabot alerts are not supported on this advisory because it does not have a package from a supported ecosystem with an affected and fixed version.

Learn more about GitHub language support

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.