cbcvebase.
CVE-2023-38545
published 2023-10-18

CVE-2023-38545: 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…

critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
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.

Affected

50 ranges· showing 25
VendorProductVersion rangeFixed in
applemacos_monterey
applemacos_sonoma
applemacos_ventura
curlcurl>= 8.4.0 < 8.4.08.4.0
debiancurl< curl 7.88.1-10+deb12u4 (bookworm)curl 7.88.1-10+deb12u4 (bookworm)
fedoraprojectfedora
googlechrome_chrome
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 8.4.0-r08.4.0-r0
haxxcurl>= 0 < 7.74.0-1.3+deb11u107.74.0-1.3+deb11u10
haxxcurl>= 0 < 7.88.1-10+deb12u47.88.1-10+deb12u4
haxxcurl>= 0 < 8.3.0-38.3.0-3
haxxcurl>= 0 < 8.3.0-38.3.0-3
haxxcurl>= 0 < 7.68.0-1ubuntu2.207.68.0-1ubuntu2.20
haxxcurl>= 0 < 7.81.0-1ubuntu1.147.81.0-1ubuntu1.14
haxxcurl>= 0 < 8.2.1-1ubuntu3.18.2.1-1ubuntu3.1
haxxlibcurl>= 7.69.0 < 8.4.08.4.0
microsoftwindows_10_1809< 10.0.17763.512210.0.17763.5122

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ghsa9.8CRITICAL
osv9.8CRITICAL