CVE-2023-38545

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.

Category

9.8
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 17.63% Top 10%
Third-Party Advisory seclists.org Third-Party Advisory seclists.org Third-Party Advisory seclists.org Third-Party Advisory curl.se Third-Party Advisory fedoraproject.org Third-Party Advisory netapp.com Third-Party Advisory netapp.com Third-Party Advisory apple.com Third-Party Advisory apple.com Third-Party Advisory apple.com Third-Party Advisory apple.com Third-Party Advisory secpod.com
Affected: curl curl
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-38545?
CVE-2023-38545 has been scored as a critical severity vulnerability.
How to fix CVE-2023-38545?
To fix CVE-2023-38545, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-38545 being actively exploited in the wild?
It is possible that CVE-2023-38545 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~18% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-38545?
CVE-2023-38545 affects curl curl.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.