data/reports: add GO-2024-2825.yaml
Aliases: CVE-2024-24787
Updates golang/vulndb#2825
Change-Id: I44a4caeaa0a3746ab41210c7e41a587f18f576c1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/583780
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/data/cve/v5/GO-2024-2825.json b/data/cve/v5/GO-2024-2825.json
new file mode 100644
index 0000000..8a057a5
--- /dev/null
+++ b/data/cve/v5/GO-2024-2825.json
@@ -0,0 +1,77 @@
+{
+ "dataType": "CVE_RECORD",
+ "dataVersion": "5.0",
+ "cveMetadata": {
+ "cveId": "CVE-2024-24787"
+ },
+ "containers": {
+ "cna": {
+ "providerMetadata": {
+ "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc"
+ },
+ "title": "Arbitrary code execution during build on Darwin in cmd/go",
+ "descriptions": [
+ {
+ "lang": "en",
+ "value": "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": [
+ {
+ "vendor": "Go toolchain",
+ "product": "cmd/go",
+ "collectionURL": "https://pkg.go.dev",
+ "packageName": "cmd/go",
+ "versions": [
+ {
+ "version": "0",
+ "lessThan": "1.21.10",
+ "status": "affected",
+ "versionType": "semver"
+ },
+ {
+ "version": "1.22.0-0",
+ "lessThan": "1.22.3",
+ "status": "affected",
+ "versionType": "semver"
+ }
+ ],
+ "platforms": [
+ "darwin"
+ ],
+ "defaultStatus": "unaffected"
+ }
+ ],
+ "problemTypes": [
+ {
+ "descriptions": [
+ {
+ "lang": "en",
+ "description": "CWE 74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"
+ }
+ ]
+ }
+ ],
+ "references": [
+ {
+ "url": "https://go.dev/issue/67119"
+ },
+ {
+ "url": "https://go.dev/cl/583815"
+ },
+ {
+ "url": "https://groups.google.com/g/golang-announce/c/wkkO4P9stm0"
+ },
+ {
+ "url": "https://pkg.go.dev/vuln/GO-2024-2825"
+ }
+ ],
+ "credits": [
+ {
+ "lang": "en",
+ "value": "Juho Forsén (Mattermost)"
+ }
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/data/osv/GO-2024-2825.json b/data/osv/GO-2024-2825.json
new file mode 100644
index 0000000..770f4a2
--- /dev/null
+++ b/data/osv/GO-2024-2825.json
@@ -0,0 +1,70 @@
+{
+ "schema_version": "1.3.1",
+ "id": "GO-2024-2825",
+ "modified": "0001-01-01T00:00:00Z",
+ "published": "0001-01-01T00:00:00Z",
+ "aliases": [
+ "CVE-2024-24787"
+ ],
+ "summary": "Arbitrary code execution during build on Darwin in cmd/go",
+ "details": "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": [
+ {
+ "package": {
+ "name": "toolchain",
+ "ecosystem": "Go"
+ },
+ "ranges": [
+ {
+ "type": "SEMVER",
+ "events": [
+ {
+ "introduced": "0"
+ },
+ {
+ "fixed": "1.21.10"
+ },
+ {
+ "introduced": "1.22.0-0"
+ },
+ {
+ "fixed": "1.22.3"
+ }
+ ]
+ }
+ ],
+ "ecosystem_specific": {
+ "imports": [
+ {
+ "path": "cmd/go",
+ "goos": [
+ "darwin"
+ ]
+ }
+ ]
+ }
+ }
+ ],
+ "references": [
+ {
+ "type": "REPORT",
+ "url": "https://go.dev/issue/67119"
+ },
+ {
+ "type": "FIX",
+ "url": "https://go.dev/cl/583815"
+ },
+ {
+ "type": "WEB",
+ "url": "https://groups.google.com/g/golang-announce/c/wkkO4P9stm0"
+ }
+ ],
+ "credits": [
+ {
+ "name": "Juho Forsén (Mattermost)"
+ }
+ ],
+ "database_specific": {
+ "url": "https://pkg.go.dev/vuln/GO-2024-2825"
+ }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2024-2825.yaml b/data/reports/GO-2024-2825.yaml
new file mode 100644
index 0000000..8df7d60
--- /dev/null
+++ b/data/reports/GO-2024-2825.yaml
@@ -0,0 +1,29 @@
+id: GO-2024-2825
+modules:
+ - module: cmd
+ versions:
+ - fixed: 1.21.10
+ - introduced: 1.22.0-0
+ fixed: 1.22.3
+ vulnerable_at: 1.22.2
+ packages:
+ - package: cmd/go
+ goos:
+ - darwin
+summary: Arbitrary code execution during build on Darwin in cmd/go
+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.
+credits:
+ - Juho Forsén (Mattermost)
+references:
+ - report: https://go.dev/issue/67119
+ - fix: https://go.dev/cl/583815
+ - web: https://groups.google.com/g/golang-announce/c/wkkO4P9stm0
+cve_metadata:
+ id: CVE-2024-24787
+ cwe: 'CWE 74: Improper Neutralization of Special Elements in Output Used by a Downstream Component (''Injection'')'
+source:
+ id: go-security-team
+ created: 2024-05-07T16:50:09.179876-04:00