CVE-2023-38545 is a heap buffer overflow in libcurl's SOCKS5 proxy handshake: with remote hostname resolution and a slow handshake, curl can copy a hostname longer than 255 bytes into its download buffer. It affects libcurl 7.69.0 to 8.3.0, was fixed in curl 8.4.0 on 11 October 2023, and NVD scores it 9.8.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
78.3%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2023-38545 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| curl / libcurl (SOCKS5 proxy handshake) | cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:* | 7.69.0 up to and including 8.3.0 (fixed in 8.4.0, 11 October 2023) |
| Siemens RUGGEDCOM APE1808 (Fortigate NGFW) | — | Fortigate NGFW before V7.4.3 (fixed in V7.4.3, per SSA-832273) |
| Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (GNU/Linux subsystem) | — | V3.1.5 and later listed as affected, no fix available (per SSA-082556) |
What does this mean for affected devices?
CVE-2023-38545 is a heap-based buffer overflow (CWE-787 in NVD, CWE-122 from curl). The curl advisory explains that when curl passes a hostname to a SOCKS5 proxy for resolution, a name longer than 255 bytes should switch it to local resolution, but "due to a bug, the local variable that means 'let the host resolve the name' could get the wrong value during a slow SOCKS5 handshake", and the long hostname is copied into the download buffer instead of the resolved address. curl rates it High. NVD's Primary score is 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, while the CISA-ADP score is 8.8 with user interaction required (NVD).
The trigger conditions are what decide device exposure. SOCKS5 with remote hostname resolution must be in use, through CURLPROXY_SOCKS5_HOSTNAME, a socks5h:// proxy URL or a proxy environment variable such as ALL_PROXY set to that scheme. The overflow is only possible when the application leaves CURLOPT_BUFFERSIZE unset or sets it below 65541 bytes; libcurl's default buffer is 16 kB, while the curl tool uses 100 kB unless --limit-rate lowers it. curl adds that typical server latency is likely slow enough to trigger the bug, and a malicious HTTPS server can redirect to a crafted long hostname. A firmware daemon that routes uploads through a SOCKS5 proxy with default libcurl settings is the case to look for.
Siemens ProductCERT lists industrial products that ship the library. SSA-832273 covers the Fortigate NGFW on RUGGEDCOM APE1808 devices, fixed by updating Fortigate NGFW to V7.4.3. SSA-082556 lists the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP with no fix available, scores the CVE 8.8 there, and recommends limiting access to the subsystem's interactive shell to trusted personnel.
Backports keep old version numbers: the Debian tracker marks bookworm's 7.88.1-10+deb12u4 and bullseye's 7.74.0-1.3+deb11u10 as fixed (DSA-5523-1), and buster as not affected because the vulnerable code arrived in 7.69.0. This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV); FIRST EPSS gives it 0.783, the 99.6th percentile, in its 2026-11-15 dataset (FIRST EPSS).
The fix is curl 8.4.0, which returns an error instead of switching to local resolution, or the patch for the version in use; avoiding socks5h:// and CURLPROXY_SOCKS5_HOSTNAME also removes the path. Our libcurl vulnerabilities in embedded firmware guide shows how to find every libcurl copy in an image and check which protocols and proxy options it was built with, and the memory corruption fix guide covers verifying a bounds fix in the shipped binary.
Evidence
- Hostname over 255 bytes copied to heap download buffer during slow SOCKS5 handshake with remote resolution; triggers CURLPROXY_SOCKS5_HOSTNAME, socks5h://, proxy env vars; overflow only if CURLOPT_BUFFERSIZE unset or below 65541; default 16kB, curl tool 102400; severity High; CWE-122; affected 7.69.0 to 8.3.0; fixed 8.4.0. — curl security advisory
- NVD Primary CVSS 3.1 9.8; CISA-ADP 8.8 (UI:R); CWE-787; CPE libcurl 7.69.0 to before 8.4.0. — NVD
- RUGGEDCOM APE1808 Fortigate NGFW affected, fix update to V7.4.3. — Siemens SSA-832273
- S7-1500 CPU 1518(F)-4 PN/DP MFP GNU/Linux subsystem V3.1.5 and later affected, no fix available, CVSS 8.8; limit shell access to trusted personnel. — Siemens SSA-082556
- Debian bookworm 7.88.1-10+deb12u4 and bullseye 7.74.0-1.3+deb11u10 fixed (DSA-5523-1); buster not affected. — Debian Security Tracker
- Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.78317 (99.6th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Is every device with libcurl 7.69.0 to 8.3.0 exploitable through CVE-2023-38545?
No. The overflow needs SOCKS5 with remote hostname resolution (socks5h:// or CURLPROXY_SOCKS5_HOSTNAME) and a download buffer below 65541 bytes. A build that never uses a SOCKS5 proxy carries the code but does not reach it (per the curl advisory).
Why do NVD and curl rate CVE-2023-38545 differently?
NVD's Primary CVSS 3.1 score is 9.8 and the CISA-ADP score is 8.8, while curl rates it High; curl's rating reflects the proxy and buffer conditions needed for an overflow (per NVD and the curl advisory).
Which industrial products are affected by CVE-2023-38545?
Siemens SSA-832273 lists the Fortigate NGFW on RUGGEDCOM APE1808, fixed in V7.4.3, and SSA-082556 lists the GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP with no fix available (per Siemens ProductCERT).
Is CVE-2023-38545 in the CISA KEV catalog?
No, it is not listed as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.783, the 99.6th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?