U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2023-38545 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://seclists.org/fulldisclosure/2024/Jan/34 Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2024/Jan/37 Mailing List  Third Party Advisory 
http://seclists.org/fulldisclosure/2024/Jan/38 Mailing List  Third Party Advisory 
https://curl.se/docs/CVE-2023-38545.html Patch  Third Party Advisory 
https://forum.vmssoftware.com/viewtopic.php?f=8&t=8868
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/ Mailing List  Third Party Advisory 
https://security.netapp.com/advisory/ntap-20231027-0009/ Third Party Advisory 
https://security.netapp.com/advisory/ntap-20240201-0005/ Third Party Advisory 
https://support.apple.com/kb/HT214036 Third Party Advisory 
https://support.apple.com/kb/HT214057 Third Party Advisory 
https://support.apple.com/kb/HT214058 Third Party Advisory 
https://support.apple.com/kb/HT214063 Third Party Advisory 
https://www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/ Patch  Third Party Advisory 

Weakness Enumeration

CWE-ID CWE Name Source
CWE-787 Out-of-bounds Write cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

12 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2023-38545
NVD Published Date:
10/18/2023
NVD Last Modified:
07/09/2024
Source:
HackerOne