VDB

CVE-2023-38545

CVE-2023-38545 PUBLISHED CVSS 9.800000190734863 CRITICAL

Reported by hackerone · Published October 18, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libcurlconan.io8.4.0
curlAmazon Linux8.3.0-1.amzn2023.0.2, 8.3.0-1.amzn2.0.4
lib32-libcurl-gnutlsArch Linux8.4.0-1
curlAlpine8.4.0-r0
libcurl-compatArch Linux8.4.0-1
curlChainguard8.4.0-r0
lib32-libcurl-compatArch Linux8.4.0-1
curlWolfi8.4.0-r0
libcurl-minimalAmazon Linux8.3.0-1.amzn2023.0.2
libcurlAmazon Linux8.3.0-1.amzn2023.0.2, 8.3.0-1.amzn2.0.4
libcurl-develAmazon Linux8.3.0-1.amzn2023.0.2, 8.3.0-1.amzn2.0.4
curl-minimalAmazon Linux8.3.0-1.amzn2023.0.2

15 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
curlcurl8.4.0, 7.69.0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.5
SiemensRUGGEDCOM APE18080
amazon:2023curl0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.5
archlib32-libcurl-gnutls0
alpinecurl0
archlibcurl-compat0
chainguardcurl0
archlib32-libcurl-compat0
curlcurl7.69.0, 8.4.0
wolficurl0
amazon:2curl0
amazon:2023libcurl-minimal0
amazon:2023libcurl0
amazon:2023libcurl-devel0
amazon:2023curl-minimal0
archlibcurl-gnutls0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5
wolficurl-rustls0

…and 6 more

Timeline

  • Oct 11, 2023 PoC Published (2 in total, the first dated here)
  • Oct 18, 2023 EPSS Score (30 in total, the first dated here)
  • Oct 18, 2023 CVE Published
  • Mar 17, 2026 Security Advisory (39 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (32 in total, the first dated here)
  • Aug 6, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-38545
vulnetix vdb fixes CVE-2023-38545

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-38545/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›