CVE-2023-24540 in Golang Go
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Golang | Go | < 1.19.9 ≥ 1.20.0, < 1.20.4 |
| Phoenixcontact | E-Mobility Charging Suite | ≤ 1.7.0 |
| Phoenixcontact | Fl Network Manager | ≤ 7.0 |
| Phoenixcontact | Iol-Conf | ≤ 1.7.0 |
| Phoenixcontact | Plcnext Engineer | ≤ 2023.9 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-24540 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-059233-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-05-11 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-15 Command Delimiters via CWE-77
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
Show all 8
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2023-24540 involves a vulnerability in JavaScript where not all valid whitespace characters are treated as whitespace, leading to potential improper sanitization of templates containing certain whitespace characters.
Attackers can exploit this vulnerability by injecting malicious code into templates that utilize JavaScript whitespace characters outside the standard set. This can lead to code execution or other malicious activities.
Questions
What is CVE-2023-24540?
CVE-2023-24540 involves a vulnerability in JavaScript where not all valid whitespace characters are treated as whitespace, leading to potential improper sanitization of templates containing certain whitespace characters.
What is the CVSS score for CVE-2023-24540?
CVE-2023-24540 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.9%.
Is CVE-2023-24540 actively exploited?
No confirmed active exploitation of CVE-2023-24540 as of 2026-09-25.
How do I remediate CVE-2023-24540?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2023-24540?
CVE-2023-24540 affects Golang Go.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Golang","product":"Go","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.