9.8

CVE-2023-38545: curl Out-of-bounds Write

CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2023-38545RHSA-2024:2011UBUNTU-CVE-2023-38545
Published 18-10-2023Last modified 14-10-2026

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
78.69%
0%100%
Critical · +0.21 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits3github

Advisory lineage

Upstream 0 · Downstream 11 · Related 8

Timeline

  1. 18-10-2023
    PublishedVulnerability first disclosed.
  2. 14-10-2026
    Last 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

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

18-09-202618-10-2026
EPSS score
78.69%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

3 found
  • githubUnverified

    Cve 2023 38545

    Maturity: poc

  • githubUnverified

    Cve 2023 38545 Poc

    Maturity: poc

  • githubUnverified

    Cve 2023 38545

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Microsoft8 products
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
Haxx1 product
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
Show all 36 references