Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-24787

Summary
Assigner-Go
Assigner Org ID-1bb62c36-49e3-4200-9d77-64a1400537cc
Published At-08 May, 2024 | 15:31
Updated At-13 Feb, 2025 | 17:40
Rejected At-
Credits

Arbitrary code execution during build on Darwin in cmd/go

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:Go
Assigner Org ID:1bb62c36-49e3-4200-9d77-64a1400537cc
Published At:08 May, 2024 | 15:31
Updated At:13 Feb, 2025 | 17:40
Rejected At:
▼CVE Numbering Authority (CNA)
Arbitrary code execution during build on Darwin in cmd/go

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.

Affected Products
Vendor
Go toolchain
Product
cmd/go
Collection URL
https://pkg.go.dev
Package Name
cmd/go
Platforms
  • darwin
Default Status
unaffected
Versions
Affected
  • From 0 before 1.21.10 (semver)
  • From 1.22.0-0 before 1.22.3 (semver)
Problem Types
TypeCWE IDDescription
N/AN/ACWE 74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Type: N/A
CWE ID: N/A
Description: CWE 74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Juho Forsén (Mattermost)
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://go.dev/issue/67119
N/A
https://go.dev/cl/583815
N/A
https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
N/A
https://pkg.go.dev/vuln/GO-2024-2825
N/A
https://security.netapp.com/advisory/ntap-20240531-0006/
N/A
http://www.openwall.com/lists/oss-security/2024/05/08/3
N/A
Hyperlink: https://go.dev/issue/67119
Resource: N/A
Hyperlink: https://go.dev/cl/583815
Resource: N/A
Hyperlink: https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
Resource: N/A
Hyperlink: https://pkg.go.dev/vuln/GO-2024-2825
Resource: N/A
Hyperlink: https://security.netapp.com/advisory/ntap-20240531-0006/
Resource: N/A
Hyperlink: http://www.openwall.com/lists/oss-security/2024/05/08/3
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Vendor
Gogolang
Product
go
CPEs
  • cpe:2.3:a:golang:go:1.21.0:-:*:*:*:*:*:*
Default Status
affected
Versions
Affected
  • 1.21.0
  • 1.22
Metrics
VersionBase scoreBase severityVector
3.16.4MEDIUM
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Version: 3.1
Base score: 6.4
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://go.dev/issue/67119
x_transferred
https://go.dev/cl/583815
x_transferred
https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
x_transferred
https://pkg.go.dev/vuln/GO-2024-2825
x_transferred
https://security.netapp.com/advisory/ntap-20240531-0006/
x_transferred
http://www.openwall.com/lists/oss-security/2024/05/08/3
x_transferred
Hyperlink: https://go.dev/issue/67119
Resource:
x_transferred
Hyperlink: https://go.dev/cl/583815
Resource:
x_transferred
Hyperlink: https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
Resource:
x_transferred
Hyperlink: https://pkg.go.dev/vuln/GO-2024-2825
Resource:
x_transferred
Hyperlink: https://security.netapp.com/advisory/ntap-20240531-0006/
Resource:
x_transferred
Hyperlink: http://www.openwall.com/lists/oss-security/2024/05/08/3
Resource:
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security@golang.org
Published At:08 May, 2024 | 16:15
Updated At:15 Apr, 2026 | 00:35

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.16.4MEDIUM
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 6.4
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
CPE Matches

Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
http://www.openwall.com/lists/oss-security/2024/05/08/3security@golang.org
N/A
https://go.dev/cl/583815security@golang.org
N/A
https://go.dev/issue/67119security@golang.org
N/A
https://groups.google.com/g/golang-announce/c/wkkO4P9stm0security@golang.org
N/A
https://pkg.go.dev/vuln/GO-2024-2825security@golang.org
N/A
https://security.netapp.com/advisory/ntap-20240531-0006/security@golang.org
N/A
http://www.openwall.com/lists/oss-security/2024/05/08/3af854a3a-2127-422b-91ae-364da2661108
N/A
https://go.dev/cl/583815af854a3a-2127-422b-91ae-364da2661108
N/A
https://go.dev/issue/67119af854a3a-2127-422b-91ae-364da2661108
N/A
https://groups.google.com/g/golang-announce/c/wkkO4P9stm0af854a3a-2127-422b-91ae-364da2661108
N/A
https://pkg.go.dev/vuln/GO-2024-2825af854a3a-2127-422b-91ae-364da2661108
N/A
https://security.netapp.com/advisory/ntap-20240531-0006/af854a3a-2127-422b-91ae-364da2661108
N/A
Hyperlink: http://www.openwall.com/lists/oss-security/2024/05/08/3
Source: security@golang.org
Resource: N/A
Hyperlink: https://go.dev/cl/583815
Source: security@golang.org
Resource: N/A
Hyperlink: https://go.dev/issue/67119
Source: security@golang.org
Resource: N/A
Hyperlink: https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
Source: security@golang.org
Resource: N/A
Hyperlink: https://pkg.go.dev/vuln/GO-2024-2825
Source: security@golang.org
Resource: N/A
Hyperlink: https://security.netapp.com/advisory/ntap-20240531-0006/
Source: security@golang.org
Resource: N/A
Hyperlink: http://www.openwall.com/lists/oss-security/2024/05/08/3
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://go.dev/cl/583815
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://go.dev/issue/67119
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://pkg.go.dev/vuln/GO-2024-2825
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A
Hyperlink: https://security.netapp.com/advisory/ntap-20240531-0006/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

1Records found

CVE-2026-32282
Matching Score-8
Assigner-Go Project
ShareView Details
Matching Score-8
Assigner-Go Project
CVSS Score-6.4||MEDIUM
EPSS-0.01% / 0.81%
||
7 Day CHG~0.00%
Published-08 Apr, 2026 | 01:06
Updated-16 Apr, 2026 | 19:15
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
TOCTOU permits root escape on Linux via Root.Chmod in os in internal/syscall/unix

On Linux, if the target of Root.Chmod is replaced with a symlink while the chmod operation is in progress, Chmod can operate on the target of the symlink, even when the target lies outside the root. The Linux fchmodat syscall silently ignores the AT_SYMLINK_NOFOLLOW flag, which Root.Chmod uses to avoid symlink traversal. Root.Chmod checks its target before acting and returns an error if the target is a symlink lying outside the root, so the impact is limited to cases where the target is replaced with a symlink between the check and operation.

Action-Not Available
Vendor-Go standard libraryGo
Product-gointernal/syscall/unix
CWE ID-CWE-59
Improper Link Resolution Before File Access ('Link Following')
Details not found