FG-IR-23-385: Curl and libcurl CVE-2023-38545 and CVE-2023-38546 vulnerabilities

Published Oct 12, 2024
·
Updated

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

8 affected componentsFixes available
Fortinet FortiExtender>=7.4.0<=7.4.1
Fortinet FortiExtender>=7.2.0<=7.2.3
Fortinet FortiOS (only FGT_VM64)>=7.4.0<=7.4.1
Fortinet FortiOS (only FGT_VM64)>=7.2.0<=7.2.6
Fortinet FortiOS (only FGT_VM64)>=7.0.1<=7.0.13
Fortinet FortiProxy (only FortiProxy_VM64)>=7.4.0<=7.4.1
Fortinet FortiProxy (only FortiProxy_VM64)>=7.2.0<=7.2.7
Fortinet FortiProxy (only FortiProxy_VM64)>=7.0

Event History

Nov 14, 2023
Advisory Published
via FortiGuard·12:00 AM
Oct 12, 2024
Advisory Published
via FortiGuard·12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-38545?

The severity of CVE-2023-38545 is rated as HIGH.

2

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.

3

Which software does CVE-2023-38545 affect?

CVE-2023-38545 affects both libcurl and the curl tool.

4

What kind of vulnerability is CVE-2023-38545?

CVE-2023-38545 is a heap-based buffer overflow flaw found in the SOCKS5 proxy handshake.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203