6.4
MEDIUM
CVE-2024-24787
Go Module CGO Link Injection Vulnerability in Darwin
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.

INFO

Published Date :

May 8, 2024, 4:15 p.m.

Last Modified :

July 3, 2024, 1:48 a.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

0.5
Public PoC/Exploit Available at Github

CVE-2024-24787 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-24787 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Golang go
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CVE-2024-24787 Proof of Concept

Objective-C Go

Updated: 4 months, 2 weeks ago
5 stars 0 fork 0 watcher
Born at : May 10, 2024, 7:45 a.m. This repo has been linked 1 different CVEs too.

Toolkit for k8s administrators/developers.

Dockerfile Shell

Updated: 2 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : July 10, 2022, 10:30 p.m. This repo has been linked 33 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 2 months, 2 weeks ago
6375 stars 1107 fork 1107 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 904 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-24787 vulnerability anywhere in the article.

  • New Jetpack Site
Vulnerabilità risolte in GOlang

05/10/2024 PROTO: N240509 CERT-Yoroi informa che sono state rese note due vulnerabilità, di cui una con gravità critica, sul linguaggio di programmazione GO, noto linguaggio di programmazione ampiamen ... Read more

Published Date: May 10, 2024 (6 months, 1 week ago)

The following table lists the changes that have been made to the CVE-2024-24787 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 03, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
  • CVE Modified by [email protected]

    Jun. 10, 2024

    Action Type Old Value New Value
    Added Reference Go Project https://security.netapp.com/advisory/ntap-20240531-0006/ [No types assigned]
    Added Reference Go Project http://www.openwall.com/lists/oss-security/2024/05/08/3 [No types assigned]
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    May. 08, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Go Project https://go.dev/issue/67119 [No types assigned]
    Added Reference Go Project https://go.dev/cl/583815 [No types assigned]
    Added Reference Go Project https://groups.google.com/g/golang-announce/c/wkkO4P9stm0 [No types assigned]
    Added Reference Go Project https://pkg.go.dev/vuln/GO-2024-2825 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-24787 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-24787 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability