CVE-2023-38545 in Curl and 18 more products
This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked to pass along the host name to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that host name can be is 255 bytes. If the host name is detected to be longer, curl switches to local name resolving and instead passes on the resolved address only. Due to this bug, the local variable that means "let the host resolve the name" could get the wrong value during a slow SOCKS5 handshake, and contrary to the intention, copy the too long host name to the target buffer instead of copying just the resolved address there. The target buffer being a heap based buffer, and the host name coming from the URL that curl has been told to operate with.
Affects 19 products from 7 vendors. Description from NVD and MITRE.
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 |
|---|---|---|
| Curl | Curl | ≥ 8.4.0, < 8.4.0 |
| Fedoraproject | Fedora | 37 |
| Haxx | Libcurl | ≥ 7.69.0, < 8.4.0 |
| Microsoft | Windows 11 21H2 | < 10.0.22000.2600 |
| Microsoft | Windows 11 22H2 | < 10.0.22621.2715 |
| Microsoft | Windows 11 23H2 | < 10.0.22631.2715 |
| Microsoft | Windows Server 2019 | < 10.0.17763.5122 |
| Microsoft | Windows Server 2022 | < 10.0.20348.2113 |
| Microsoft | Windows Server 2022 (Server Core installation) | < 10.0.20348.2113 |
| Microsoft | Windows 10 1809 | < 10.0.17763.5122 |
| Microsoft | Windows Server 2019 (Server Core installation) | < 10.0.17763.5122 |
| Microsoft | Windows 10 21H2 | < 10.0.19044.3693 |
| Microsoft | Windows 10 22H2 | < 10.0.19045.3693 |
| Netapp | Oncommand Workflow Automation | No version listed by the source |
| Netapp | Active Iq Unified Manager | No version listed by the source |
| Netapp | Oncommand Insight | No version listed by the source |
| Rockwell Automation | — | — |
| Siemens | RUGGEDCOM APE1808 (device and firmware) | All versions |
| Siemens | SIMATIC Rtls Locating Manager | < 3.0.1.1 |
| Phoenixcontact | Activation Wizard | ≤ 1.6 |
| Phoenixcontact | Axc F 1152 Firmware | < 2024.0.6 |
| Phoenixcontact | Axc F 2152 Firmware | < 2024.0.6 |
| Phoenixcontact | Axc F 3152 Firmware | < 2024.0.6 |
| Phoenixcontact | Bpc 9102S Firmware | < 2024.0.6 |
| Phoenixcontact | E-Mobility Charging Suite | ≤ 1.7.0 |
| Phoenixcontact | Epc 1502 Firmware | < 2024.0.3 |
| Phoenixcontact | Epc 1522 Firmware | < 2024.0.3 |
| Phoenixcontact | Fl Network Manager | ≤ 7.0 |
| Phoenixcontact | Iol-Conf | ≤ 1.7.0 |
| Phoenixcontact | Plcnext Engineer | ≤ 2023.9 |
| Phoenixcontact | Rfc 4072R Firmware | < 2024.0.6 |
| Phoenixcontact | Rfc 4072S Firmware | < 2024.0.6 |
| Rockwell Automation | Factorytalk Activation Manager | < 4.00_Utilizes_Wibu-Systems_CodeMeter_7.60c |
| Siemens | S7-1500 Cpu Firmware | ≥ 3.1.5 |
| Siemens | Sentron Powermanager | < 8.0_QU2 |
| Siemens | Simatic Cpu 1518F-4 Firmware | ≥ 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | ≥ 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518-4 Pn Firmware | ≥ 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518F-4 Firmware | ≥ 3.1.5 |
| Siemens | Simatic S7-1500 Cpu 1518F-4 Pn/Dp Mfp Firmware | ≥ 3.1.5 |
| Siemens | Sinec-Nms | < 2.0 SP1 |
| Siemens | Sinec Nms | < 2.0 SP1 |
| Siemens | Siplus S7-1500 Cpu 1518-4 Pn/Dp Mfp Firmware | ≥ 3.1.5 |
Fix and vendor advisory
- SINEC NMS: Update to V2.0 SP1 or later version
Source: ICSA-24-046-15
- RUGGEDCOM APE1808: Update Fortigate NGFW to V7.4.3. Contact customer support to receive patch and update information.
Source: ICSA-24-074-05
- SIMATIC RTLS Locating Manager (6GT2780-0DA00), SIMATIC RTLS Locating Manager (6GT2780-0DA10), SIMATIC RTLS Locating Manager (6GT2780-0DA20) and 4 more: Update to V3.0.1.1 or later version The update is available from Siemens Online Software Delivery (OSD).
Source: ICSA-24-137-07
- Desigo CC family V8: Update to V8.0 QU2 or later version
- Desigo CC family V6, Desigo CC family V7, SENTRON Powermanager V6 and 1 more: Apply patch as documented in section 'Additional Information'
Source: ICSA-26-043-04
- Update to the latest 2024.0.6 LTS Firmware Release. PHOENIX CONTACT recommends to always use an up-to-date version of the PLCnext Engineer.
Source: VDE-2024-073
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2023-38545 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-055160-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-10-18 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict input validation for host names in the SOCKS5 proxy configuration to ensure they do not exceed 255 bytes. Additionally, monitor network traffic for unusual patterns that may indicate exploitation attempts.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.