RCE in Golang Go
CVE-2023-24540
Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.016, 75.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library Html/template — versions 0, 1.20.0-0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 10 other repositories (11notes/docker-paperless-ngx, 8-cm/kube-dump, ARPSyndicate/cve-scores, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/issue/59721 (Patch, Issue Tracking)
- go.dev/cl/491616 (Patch)
- groups.google.com/g/golang-announce/c/MEb0UyuSMsU (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2023-1752 (Vendor Advisory)
- security.netapp.com/advisory/ntap-20241115-0008/