CVE-2023-38545: curl Out-of-bounds Write
Vulnerability summary
CVE-2023-38545 is a critical (CVSS 9.8) Out-of-bounds Write vulnerability in curl. EPSS estimates a 78.69% chance of exploitation in the next 30 days, higher than 99.5% of scored vulnerabilities. 3 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 11 · Related 8Timeline
- 18-10-2023PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 1 version- CVE.orgCNA8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
78.69%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
+0.21 pp
From 78.48% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundCve 2023 38545
Maturity: poc
Cve 2023 38545 Poc
Maturity: poc
Cve 2023 38545
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Microsoft8 products
- windows_10_1809< 10.0.17763.5122
- windows_10_21h2< 10.0.19044.3693
- windows_10_22h2< 10.0.19045.3693
- windows_11_21h2< 10.0.22000.2600
- windows_11_22h2< 10.0.22621.2715
Chainguard3 products
- curl< 8.4.0-r0
- curl-rustls< 8.4.0-r0
- libcurl4All versions (No fix recorded)
Netapp3 products
Wolfi3 products
- curl< 8.4.0-r0
- curl-rustls< 8.4.0-r0
- libcurl4All versions (No fix recorded)
Alpine1 product
- curl< 8.4.0-r0
Curl1 product
- curl≥ 8.4.0, < 8.4.0
Debian1 product
- curl< 7.88.1-10+deb12u4 | < 8.3.0-3
Fedoraproject1 product
- fedoraEOL37
Haxx1 product
- libcurl≥ 7.69.0, < 8.4.0
Opensuse1 product
- cmake&distro=openSUSE Tumbleweed< 3.27.8-1.1
Redhat1 product
- puppet-agent< 0:7.27.0-1.el6sat | < 0:7.27.0-1.el7sat | < 0:7.27.0-1.el8sat | < 0:7.27.0-1.el9sat
Ubuntu1 product
- curl< 7.81.0-1ubuntu1.14 | < 8.2.1-1ubuntu3.1
12 vendors · 25 products
References
36 links- www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/ARTICLEPatchThird Party Advisory