
CVE catalog
CVE-2023-38545
curl: CVE-2023-38545
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 78.69% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | curl | sid | 8.23.0-1 | fixed |
| Debian | curl | forky | 8.22.0-1 | fixed |
| Debian | curl | trixie | 8.14.1-2+deb13u5 | fixed |
| Debian | curl | trixie-security | 8.14.1-2+deb13u7 | fixed |
| Debian | curl | bookworm | 7.88.1-10+deb12u15 | fixed |
| Debian | curl | bookworm-security | 7.88.1-10+deb12u5 | fixed |
| Alpine | curl | 3.15 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.16 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.17 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.18 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.19 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.20 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.21 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.22 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.23 | 8.4.0-r0 | fixed |
| Alpine | curl | 3.24 | 8.4.0-r0 | fixed |
| Ubuntu | curl | 20.04 | 7.65.3-1ubuntu3 | vulnerable |
| Ubuntu | curl | 20.04 | 7.65.3-1ubuntu4 | vulnerable |
| Ubuntu | curl | 20.04 | 7.66.0-1ubuntu1 | vulnerable |
| Ubuntu | curl | 20.04 | 7.67.0-2ubuntu1 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu1 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.1 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.2 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.4 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.5 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.6 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.7 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.10 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.11 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.12 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.13 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.14 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.15 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.16 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.18 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.19 | vulnerable |
| Ubuntu | curl | 20.04 | 7.68.0-1ubuntu2.20 | fixed |
| Ubuntu | curl | 22.04 | 7.74.0-1.3ubuntu2 | vulnerable |
| Ubuntu | curl | 22.04 | 7.74.0-1.3ubuntu3 | vulnerable |
| Ubuntu | curl | 22.04 | 7.80.0-3 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.1 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.2 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.3 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.4 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.6 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.7 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.8 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.10 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.11 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.13 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.14 | fixed |
| Ubuntu | curl | 22.04 | 7.74.0-1.3ubuntu2 | vulnerable |
| Ubuntu | curl | 22.04 | 7.74.0-1.3ubuntu3 | vulnerable |
| Ubuntu | curl | 22.04 | 7.80.0-3 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.1 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.2 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.3 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.4 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.6 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.7 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.8 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.10 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.11 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.13 | vulnerable |
| Ubuntu | curl | 22.04 | 7.81.0-1ubuntu1.14 | fixed |
| Ubuntu | curl | 24.04 | 8.2.1-1ubuntu3 | vulnerable |
| Ubuntu | curl | 24.04 | 8.2.1-1ubuntu3.1 | fixed |
| Opensuse | curl | tumbleweed | 8.4.0-1.1 | fixed |
| Opensuse | cmake | tumbleweed | 3.27.8-1.1 | fixed |
| Suse | curl | linux enterprise micro 5.3 | 8.0.1-150400.5.32.1 | fixed |
| Suse | curl | linux enterprise micro 5.4 | 8.0.1-150400.5.32.1 | fixed |
| Suse | curl | linux enterprise micro 5.5 | 8.0.1-150400.5.32.1 | fixed |
| Suse | curl | linux enterprise module for basesystem 15 sp4 | 8.0.1-150400.5.32.1 | fixed |
| Suse | curl | linux enterprise module for basesystem 15 sp5 | 8.0.1-150400.5.32.1 | fixed |
| Opensuse | curl | leap 15.4 | 8.0.1-150400.5.32.1 | fixed |
| Opensuse | curl | leap 15.5 | 8.0.1-150400.5.32.1 | fixed |
| Suse | curl | linux enterprise software development kit 12 sp5 | 8.0.1-11.74.1 | fixed |
| Suse | curl | linux enterprise server 12 sp5 | 8.0.1-11.74.1 | fixed |
| Suse | curl | linux enterprise server for sap applications 12 sp5 | 8.0.1-11.74.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | curl | source | sid | 8.3.0-3 | not yet assigned | Not reported | Not reported |
| Debian | curl | source | forky | 8.3.0-3 | not yet assigned | Not reported | Not reported |
| Debian | curl | source | trixie | 8.3.0-3 | not yet assigned | Not reported | Not reported |
| Debian | curl | source | bookworm | 7.88.1-10+deb12u4 | not yet assigned | Not reported | Not reported |
| Alpine | curl | apk | 3.15 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.16 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.17 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.18 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.19 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.20 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.21 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.22 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.23 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Alpine | curl | apk | 3.24 | 8.4.0-r0 | Not reported | ALPINE-CVE-2023-38545 | Not reported |
| Ubuntu | curl | deb | 20.04 | 7.68.0-1ubuntu2.20 | Not reported | USN-6429-1 | Not reported |
| Ubuntu | curl | deb | 22.04 | 7.81.0-1ubuntu1.14 | Not reported | USN-6429-1 | Not reported |
| Ubuntu | curl | deb | 22.04 | 7.81.0-1ubuntu1.14 | Not reported | UBUNTU-CVE-2023-38545 | Not reported |
| Ubuntu | curl | deb | 24.04 | 8.2.1-1ubuntu3.1 | Not reported | UBUNTU-CVE-2023-38545 | Not reported |
| Opensuse | curl | rpm | tumbleweed | 8.4.0-1.1 | Not reported | OPENSUSE-SU-2024:13325-1 | Not reported |
| Opensuse | cmake | rpm | tumbleweed | 3.27.8-1.1 | Not reported | OPENSUSE-SU-2024:13464-1 | Not reported |
| Suse | curl | rpm | linux enterprise micro 5.3 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Suse | curl | rpm | linux enterprise micro 5.4 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Suse | curl | rpm | linux enterprise micro 5.5 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Suse | curl | rpm | linux enterprise module for basesystem 15 sp4 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Suse | curl | rpm | linux enterprise module for basesystem 15 sp5 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Opensuse | curl | rpm | leap 15.4 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Opensuse | curl | rpm | leap 15.5 | 8.0.1-150400.5.32.1 | Not reported | SUSE-SU-2023:4044-1 | Not reported |
| Suse | curl | rpm | linux enterprise software development kit 12 sp5 | 8.0.1-11.74.1 | Not reported | SUSE-SU-2023:4043-1 | Not reported |
| Suse | curl | rpm | linux enterprise server 12 sp5 | 8.0.1-11.74.1 | Not reported | SUSE-SU-2023:4043-1 | Not reported |
| Suse | curl | rpm | linux enterprise server for sap applications 12 sp5 | 8.0.1-11.74.1 | Not reported | SUSE-SU-2023:4043-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2023_4043-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2023-38545]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-38545]
- [https://osv.dev/vulnerability/DSA-5523-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:4043-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:4044-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-38545]
- [https://osv.dev/vulnerability/USN-6429-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13325-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13464-1]
- [https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/OT/white/2024/icsa-24-004-01.json]
- [https://security-tracker.debian.org/tracker/CVE-2023-38545]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-38545.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2690.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]