CVE-2023-38545
published high CVSS 3.1 · 8.8curl: heap based buffer overflow in the SOCKS5 proxy handshake
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| curl | — | curl8.4.0 to < 8.4.0 (affected · semver) · 7.69.0 to < 7.69.0 (unaffected · semver) | Version-specific | Not stated | hackerone |
| Siemens | — | RUGGEDCOM APE18080 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2287 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-377 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | curl | Advisory build | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| Alpine Linux | edge | curl | Fixed | 8.4.0-r0 | Package fix record |
Show 101 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Siemens | — | SIPLUS S7-1500 CPU 1518-4 PN/DP MFPV3.1.5 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Debian | bookworm | curl | Advisory build | 7.88.1-10+deb12u4 | DSA-5523-1 |
| Oracle Linux | 9 | curlaarch64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Red Hat Enterprise Linux | RHEL-9 | curlaarch64 | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| SUSE / openSUSE | SLE-12-SP5 | curlaarch64 | Advisory build | 8.0.1-11.74.1 | SUSE-SU-2023:4043-1 |
| Ubuntu | jammy | curl | Advisory build | 7.81.0-1ubuntu1.14 | USN-6429-1 |
| AlmaLinux | 9 | curl | Advisory build | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| Alpine Linux | v3.15 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.16 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.17 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.18 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.19 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.20 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.21 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.22 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.23 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Alpine Linux | v3.24 | curl | Fixed | 8.4.0-r0 | Package fix record |
| Debian | bullseye | curl | Advisory build | 7.74.0-1.3+deb11u10 | DSA-5523-1 |
| Oracle Linux | 9 | curlaarch64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | curlx86_64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | curlx86_64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Red Hat Enterprise Linux | RHEL-9 | curlaarch64 | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curlaarch64 | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curlppc64le | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curlppc64le | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curlppc64le | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curls390x | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curls390x | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curls390x | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curlsrc | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curlsrc | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curlsrc | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curlx86_64 | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curlx86_64 | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curlx86_64 | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| SUSE / openSUSE | SLE-12-SP5 | curlppc64le | Advisory build | 8.0.1-11.74.1 | SUSE-SU-2023:4043-1 |
| SUSE / openSUSE | SLE-12-SP5 | curls390x | Advisory build | 8.0.1-11.74.1 | SUSE-SU-2023:4043-1 |
| SUSE / openSUSE | SLE-12-SP5 | curlx86_64 | Advisory build | 8.0.1-11.74.1 | SUSE-SU-2023:4043-1 |
| SUSE / openSUSE | SLE-15-SP4 | curlaarch64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP4 | curlppc64le | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP4 | curls390x | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP4 | curlx86_64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP5 | curlaarch64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP5 | curlppc64le | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP5 | curls390x | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-15-SP5 | curlx86_64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-5 | curlaarch64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-5 | curls390x | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | SLE-5 | curlx86_64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | curlaarch64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | curlppc64le | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | curls390x | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | curlx86_64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | curlaarch64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | curlppc64le | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | curls390x | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | curlx86_64 | Advisory build | 8.0.1-150400.5.32.1 | SUSE-SU-2023:4044-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlaarch64 | Advisory build | 8.4.0-1.1 | OPENSUSE-SU-2024:13325-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlppc64le | Advisory build | 8.4.0-1.1 | OPENSUSE-SU-2024:13325-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curls390x | Advisory build | 8.4.0-1.1 | OPENSUSE-SU-2024:13325-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | curlx86_64 | Advisory build | 8.4.0-1.1 | OPENSUSE-SU-2024:13325-1 |
| Ubuntu | mantic | curl | Advisory build | 8.2.1-1ubuntu3.1 | USN-6429-3 |
| AlmaLinux | 9 | curl-minimal | Advisory build | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux | 9 | curl-minimal | Advisory build | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux | 9 | libcurl | Advisory build | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux | 9 | libcurl | Advisory build | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux | 9 | libcurl-devel | Advisory build | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux | 9 | libcurl-devel | Advisory build | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux | 9 | libcurl-minimal | Advisory build | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux | 9 | libcurl-minimal | Advisory build | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| Oracle Linux | 9 | curl-minimalaarch64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | curl-minimalaarch64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | curl-minimalx86_64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | curl-minimalx86_64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | libcurlaarch64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | libcurlaarch64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | libcurlx86_64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | libcurlx86_64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | libcurl-develaarch64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | libcurl-develaarch64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | libcurl-develx86_64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | libcurl-develx86_64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | libcurl-minimalaarch64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | libcurl-minimalaarch64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Oracle Linux | 9 | libcurl-minimalx86_64 | Advisory build | 0:7.76.1-23.el9_2.4 | ELSA-2023-5763 |
| Oracle Linux | 9 | libcurl-minimalx86_64 | Advisory build | 0:7.76.1-26.el9_3.2 | ELSA-2023-6745 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoaarch64 | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoaarch64 | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoaarch64 | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoi686 | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoi686 | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoi686 | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoppc64le | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoppc64le | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfoppc64le | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfos390x | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfos390x | Advisory build | 7.76.1-23.el9_2.4 | RHSA-2023:5763 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfos390x | Advisory build | 7.76.1-26.el9_3.2 | RHSA-2023:6745 |
| Red Hat Enterprise Linux | RHEL-9 | curl-debuginfox86_64 | Advisory build | 7.76.1-14.el9_0.9 | RHSA-2023:5700 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| curl | curl | 8.4.0 to < 8.4.0 (affected · semver)7.69.0 to < 7.69.0 (unaffected · semver) | hackerone · cna |
| Siemens | RUGGEDCOM APE1808 | 0 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | V3.1.5 and later (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-787 CWE-787 Out-of-bounds Write
References
21- http://seclists.org/fulldisclosure/2024/Jan/34
- http://seclists.org/fulldisclosure/2024/Jan/37
- http://seclists.org/fulldisclosure/2024/Jan/38
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-093430.html
- https://cert-portal.siemens.com/productcert/html/ssa-507364.html
- https://cert-portal.siemens.com/productcert/html/ssa-832273.html
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html
- https://curl.se/docs/CVE-2023-38545.html
- https://forum.vmssoftware.com/viewtopic.php?f=8&t=8868
- https://github.com/UTsweetyfish/CVE-2023-38545
- https://github.com/bcdannyboy/CVE-2023-38545
- https://github.com/dbrugman/CVE-2023-38545-POC
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/
- https://security.netapp.com/advisory/ntap-20231027-0009/
- https://security.netapp.com/advisory/ntap-20240201-0005/
- https://support.apple.com/kb/HT214036
- https://support.apple.com/kb/HT214057
- https://support.apple.com/kb/HT214058
- https://support.apple.com/kb/HT214063
- https://www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/
Provider assertions
4hackerone · cna
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d47d89025de0a38ec9137a10742f862420544edfd24d3ba4cad9ba4f97882dba
- Ingested
- 15 Oct 2026, 06:15:26 UTC
- Source record
- Official CVE record