# CVE-2023-38545: SOCKS5 heap buffer overflow

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 78.3%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-10-11T08:00:00.000Z
- Modified: 2026-10-25T01:04:40.110Z
- Also known as: CURL-CVE-2023-38545
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- curl curl: from 8.4.0 before 8.4.0 (not affected: from 7.69.0 before 7.69.0)
- https://github.com/curl/curl.git: from 7.69.0 before 8.4.0; from 4a4b63daaa01ef59b131d91e8e6e6dfe275c0f08 before fb4415d8aee6c1045be932a34fe6107c2f5ed147
- haxx libcurl: from 7.69.0 before 8.4.0
- fedoraproject fedora: 37
- netapp active_iq_unified_manager: no versions given
- netapp oncommand_insight: no versions given
- netapp oncommand_workflow_automation: no versions given
- microsoft windows_10_1809: before 10.0.17763.5122
- microsoft windows_10_21h2: before 10.0.19044.3693
- microsoft windows_10_22h2: before 10.0.19045.3693
- microsoft windows_11_21h2: before 10.0.22000.2600
- microsoft windows_11_22h2: before 10.0.22621.2715
- microsoft windows_11_23h2: before 10.0.22631.2715
- microsoft windows_server_2019: before 10.0.17763.5122
- microsoft windows_server_2022: before 10.0.20348.2113

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- curl: rating High
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/bcdannyboy/CVE-2023-38545> (exploit)
- <https://github.com/dbrugman/CVE-2023-38545-POC> (exploit)
- <https://github.com/UTsweetyfish/CVE-2023-38545> (exploit)
- <https://curl.se/docs/CVE-2023-38545.html> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20231027-0009/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/> (mailing-list, third-party-advisory)
- <https://www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/> (patch, third-party-advisory)
- <https://support.apple.com/kb/HT214036> (third-party-advisory)
- <https://support.apple.com/kb/HT214063> (third-party-advisory)
- <https://support.apple.com/kb/HT214057> (third-party-advisory)
- <https://support.apple.com/kb/HT214058> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2024/Jan/34> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2024/Jan/37> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2024/Jan/38> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240201-0005/> (third-party-advisory)
- <https://forum.vmssoftware.com/viewtopic.php?f=8&t=8868>
- <https://cert-portal.siemens.com/productcert/html/ssa-943925.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-832273.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-093430.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-507364.html>

## Sources

- CVE List: [CVE-2023-38545](https://www.cve.org/CVERecord?id=CVE-2023-38545), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2023-38545](https://osv.dev/vulnerability/CURL-CVE-2023-38545), MIT, modified 2026-10-25
- NVD: [CVE-2023-38545](https://nvd.nist.gov/vuln/detail/CVE-2023-38545), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-38545 · Whole record: https://cve.day/CVE-2023-38545.json · Rebuilt by cve.day 2026-11-25T22:58:28.896Z
