# CVE-2023-38545

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-10-18 · Modified: 2026-10-14
- Aliases: ALPINE-CVE-2023-38545, RHSA-2024:2011, UBUNTU-CVE-2023-38545, DEBIAN-CVE-2023-38545, CGA-2637-w437-j654, CGA-83x7-2wpr-pg6x, CGA-f9cg-fr45-68mr, CGA-mhq5-g3v2-wpww, CGA-q6p5-pr28-5c52, openSUSE-SU-2024:13464-1
- Record: https://cvemate.com/vulnerability/CVE-2023-38545 · JSON: https://cvemate.com/vulnerability/CVE-2023-38545/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 78.317%, percentile 99.585%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 3 (github)

## Affected (first 20 of 25)

- alpine curl (Alpine Linux): \< 8.4.0-r0
- chainguard curl (Chainguard): \< 8.4.0-r0
- chainguard curl-rustls (Chainguard): \< 8.4.0-r0
- chainguard libcurl4 (Chainguard): All versions (No fix recorded)
- wolfi curl (Wolfi): \< 8.4.0-r0
- wolfi curl-rustls (Wolfi): \< 8.4.0-r0
- wolfi libcurl4 (Wolfi): All versions (No fix recorded)
- curl curl: ≥ 8.4.0, \< 8.4.0
- debian curl (Debian): \< 7.88.1-10+deb12u4 \| \< 8.3.0-3
- ubuntu curl (Ubuntu): \< 7.81.0-1ubuntu1.14 \| \< 8.2.1-1ubuntu3.1
- fedoraproject fedora: 37
- haxx libcurl: ≥ 7.69.0, \< 8.4.0
- microsoft windows\_10\_1809: \< 10.0.17763.5122
- microsoft windows\_10\_21h2: \< 10.0.19044.3693
- microsoft windows\_10\_22h2: \< 10.0.19045.3693
- microsoft windows\_11\_21h2: \< 10.0.22000.2600
- microsoft windows\_11\_22h2: \< 10.0.22621.2715
- microsoft windows\_11\_23h2: \< 10.0.22631.2715
- microsoft windows\_server\_2019: \< 10.0.17763.5122
- microsoft windows\_server\_2022: \< 10.0.20348.2113

## References (first 20 of 36)

- <https://curl.se/docs/CVE-2023-38545.html>
- <https://security.netapp.com/advisory/ntap-20231027-0009/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/>
- <https://www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/>
- <https://support.apple.com/kb/HT214036>
- <https://support.apple.com/kb/HT214063>
- <https://support.apple.com/kb/HT214057>
- <https://support.apple.com/kb/HT214058>
- <http://seclists.org/fulldisclosure/2024/Jan/34>
- <http://seclists.org/fulldisclosure/2024/Jan/37>
- <http://seclists.org/fulldisclosure/2024/Jan/38>
- <https://security.netapp.com/advisory/ntap-20240201-0005/>
- <https://forum.vmssoftware.com/viewtopic.php?f=8&t=8868>
- <https://github.com/bcdannyboy/CVE-2023-38545>
- <https://github.com/dbrugman/CVE-2023-38545-POC>
- <https://github.com/UTsweetyfish/CVE-2023-38545>
- <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>

---

Data as of 2026-12-05T03:06:29.944Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
