Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-29405— Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go

Quick assessment

Affected
Go toolchain cmd/go
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Google Go是美国谷歌(Google)公司的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 Google Go 1.19.10 之前版本、 1.20.0-0到1.20.5版本存在安全漏洞,该漏洞源于使用 cgo 时,go 命令可能会在构建时执行任意代码。

AI Predicted 8.1 Difficulty: Moderate EPSS 1.71% · P77

Possible ATT&CK Techniques 1 AI

T1127.001 · MSBuild
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-29405

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go
Source: CVE Program / CVE List V5
Vulnerability Description
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Google Go 注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Google Go是美国谷歌(Google)公司的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 Google Go 1.19.10 之前版本、 1.20.0-0到1.20.5版本存在安全漏洞,该漏洞源于使用 cgo 时,go 命令可能会在构建时执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Go toolchain cmd/go 0 ~ 1.19.10 -
Go toolchain cmd/cgo 0 ~ 1.19.10 -

II. Public POCs for CVE-2023-29405

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-29405

请登录查看更多情报信息。

Vendor Advisories for CVE-2023-29405 (1)

Mailing List Discussions for CVE-2023-29405 (2)

Other References for CVE-2023-29405 (4)

Same Patch Batch · Go toolchain · 2023-06-08 · 3 CVEs total

CVE-2023-29404 Improper handling of non-optional LDFLAGS in go command with cgo in cmd/go
CVE-2023-29402 Code injection via go command with cgo in cmd/go

IV. Related Vulnerabilities

V. Comments for CVE-2023-29405

No comments yet


Leave a comment