CVE-2023-38545: Impact of curl and libcurl Vulnerabilities (CVE-2023-38545, CVE-2023-38546)

CVE-2023-38545 affects 48 listed versions of Fortinet FortiProxy, Fortinet FortiOS, Western Digital My Cloud Home in the Dawnsentry catalogue.

9.8CVSS critical
Proof of concept publicexploitation
78%EPSS (next 30 days)
18 October 2023published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Fortinet FortiProxy

22 of 97 listed versions are affected. Fixed in 7.4.2, 7.2.8. The newest release, 8.0, is not affected.

7.4.1 7.2.7 7.2.6 7.2.5 7.2.4 7.2.3 7.2.2 7.0.23 7.0.22 7.0.21 7.0.20 7.0.19 7.0.18 7.0.17 7.0.16 7.0.15 7.0.14 7.0.13 7.0.12 7.0.11 7.0.10 7.0.9

Fortinet FortiOS

18 of 194 listed versions are affected. Fixed in 7.4.2, 7.2.7, 7.0.14. The newest release, 8.0.3, is not affected.

7.4.1 7.4.0 7.2.6 7.2.5 7.2.4 7.2.3 7.2.2 7.2.1 7.2.0 7.0.13 7.0.12 7.0.11 7.0.10 7.0.9 7.0.8 7.0.7 7.0.6 7.0.5

Western Digital My Cloud Home

8 of 11 listed versions are affected. Fixed in 9.7.0-104. The newest release, 9.9.0-102, is not affected.

9.5.1-104 9.4.0-191 8.13.1-102 8.12.0-178 8.11.0-113 8.10.0-117 8.5.1-102 7.16-220

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Hackerone on 18 October 2023. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2023-38545 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.