FG-IR-23-385: Curl and libcurl CVE-2023-38545 and CVE-2023-38546 vulnerabilities
CVE-2023-38545: severity HIGH (affects both libcurl and the curl tool)A heap-based buffer overflow flaw was found in the SOCKS5 proxy handshake in the Curl package. If Curl is unable to resolve the address itself, it passes the hostname to the SOCKS5 proxy. However, the maximum length of the hostname that can be passed is 255 bytes. If the hostname is longer, then Curl switches to the local name resolving and passes the resolved address only to the proxy. The local variable that instructs Curl to "let the host resolve the name" could obtain the wrong value during a slow SOCKS5 handshake, resulting in the too-long hostname being copied to the target buffer instead of the resolved address, which was not the intended behavior.https://curl.se/docs/CVE-2023-38545.html## CVE-2023-38546: severity LOW (affects libcurl only, not the tool)A flaw was found in the Curl package. This flaw allows an attacker to insert cookies into a running program using libcurl if the specific series of conditions are met.https://curl.se/docs/CVE-2023-38546.html
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2023-38545?
The severity of CVE-2023-38545 is rated as HIGH.
How do I fix CVE-2023-38545?
To fix CVE-2023-38545, update to the latest version of libcurl that addresses the buffer overflow vulnerability.
Which software does CVE-2023-38545 affect?
CVE-2023-38545 affects both libcurl and the curl tool.
What kind of vulnerability is CVE-2023-38545?
CVE-2023-38545 is a heap-based buffer overflow flaw found in the SOCKS5 proxy handshake.
What happens if CVE-2023-38545 is exploited?
Exploitation of CVE-2023-38545 can potentially allow attackers to execute arbitrary code due to the buffer overflow.