Logo
vulnerabilityCVE-2023-38545
Name
CVE-2023-38545
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-
Advisories

Analysis#


Affected Component
Analysis
curl
Patched

Vulnerability Ratings#


9.8
CVSSv31
8.8
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
8.20.0
Not Affected
buildroot
master
8.21.0
Not Affected
openwrt
master
8.19.0-r2
Not Affected
openwrt
master
8.20.0-r1
Not Affected
openwrt
openwrt-25.12
8.19.0-r2
Not Affected
openwrt
openwrt-25.12
8.14.1-r1
Not Affected
yocto
master
8.20.0
Not Affected
yocto
scarthgap
8.7.1
Not Affected

Resolved with patches#


curl (yocto:kirkstone)

#
Title
Author
Resolve
1
socks: return error if hostname too long for remote resolve
Jay Satiro <raysatiro@yahoo.com>
CVE-2023-38545