CVE-2023-38545
Fixed in a distro release EPSS 79%CVSS 8.8
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.
Products: curl, Siemens RUGGEDCOM APE1808, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 9 | curl | 7.76.1-23.el9_2.4 |
| AlmaLinux 9 | curl | 7.76.1-26.el9_3.2 |
| AlmaLinux 9 | curl-minimal | 7.76.1-23.el9_2.4 |
| AlmaLinux 9 | curl-minimal | 7.76.1-26.el9_3.2 |
| AlmaLinux 9 | libcurl | 7.76.1-23.el9_2.4 |
| AlmaLinux 9 | libcurl | 7.76.1-26.el9_3.2 |
| AlmaLinux 9 | libcurl-devel | 7.76.1-23.el9_2.4 |
| AlmaLinux 9 | libcurl-devel | 7.76.1-26.el9_3.2 |
| AlmaLinux 9 | libcurl-minimal | 7.76.1-23.el9_2.4 |
| AlmaLinux 9 | libcurl-minimal | 7.76.1-26.el9_3.2 |
| Alpine 3.15 | curl | 8.4.0-r0 |
| Alpine 3.16 | curl | 8.4.0-r0 |
| Alpine 3.17 | curl | 8.4.0-r0 |
| Alpine 3.18 | curl | 8.4.0-r0 |
| Alpine 3.19 | curl | 8.4.0-r0 |
| Alpine 3.20 | curl | 8.4.0-r0 |
| Alpine 3.21 | curl | 8.4.0-r0 |
| Alpine 3.22 | curl | 8.4.0-r0 |
| Alpine 3.23 | curl | 8.4.0-r0 |
| Alpine 3.24 | curl | 8.4.0-r0 |
| Amazon Linux 2 | curl | 8.3.0-1.amzn2.0.4 |
| Amazon Linux 2 | libcurl | 8.3.0-1.amzn2.0.4 |
| Amazon Linux 2 | libcurl-devel | 8.3.0-1.amzn2.0.4 |
| Amazon Linux 2023 | curl | 8.3.0-1.amzn2023.0.2 |
| Amazon Linux 2023 | curl-minimal | 8.3.0-1.amzn2023.0.2 |
| Amazon Linux 2023 | libcurl | 8.3.0-1.amzn2023.0.2 |
| Amazon Linux 2023 | libcurl-devel | 8.3.0-1.amzn2023.0.2 |
| Amazon Linux 2023 | libcurl-minimal | 8.3.0-1.amzn2023.0.2 |
| Arch Linux | curl | 8.4.0-1 |
| Arch Linux | lib32-curl | 8.4.0-1 |
| Arch Linux | lib32-libcurl-compat | 8.4.0-1 |
| Arch Linux | lib32-libcurl-gnutls | 8.4.0-1 |
| Arch Linux | libcurl-compat | 8.4.0-1 |
| Arch Linux | libcurl-gnutls | 8.4.0-1 |
| Chainguard | curl | 8.4.0-r0 |
| Chainguard | curl-dev | 8.4.0-r0 |
| Chainguard | curl-doc | 8.4.0-r0 |
| Chainguard | curl-oci-entrypoint | 8.4.0-r0 |
| Chainguard | curl-rustls | 8.4.0-r0 |
| Chainguard | curl-static | 8.4.0-r0 |
| Chainguard | libcurl-openssl4 | 8.4.0-r0 |
| Chainguard | libcurl-rustls4 | 8.4.0-r0 |
| Chainguard | libcurl4 | no fix |
| Chainguard | libcurl4 | 8.4.0-r0 |
| Debian 11 | curl | 7.74.0-1.3+deb11u10 |
| Debian 12 | curl | 7.88.1-10+deb12u4 |
| Debian 13 | curl | 8.3.0-3 |
| Debian 14 | curl | 8.3.0-3 |
| Red Hat Enterprise Linux 9 | curl | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | curl | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | curl-debuginfo | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | curl-debuginfo | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | curl-debugsource | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | curl-debugsource | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | curl-minimal | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | curl-minimal | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | curl-minimal-debuginfo | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | curl-minimal-debuginfo | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | libcurl | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | libcurl | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | libcurl-debuginfo | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | libcurl-debuginfo | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | libcurl-devel | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | libcurl-devel | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | libcurl-minimal | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | libcurl-minimal | 0:7.76.1-26.el9_3.2 |
| Red Hat Enterprise Linux 9 | libcurl-minimal-debuginfo | 0:7.76.1-23.el9_2.4 |
| Red Hat Enterprise Linux 9 | libcurl-minimal-debuginfo | 0:7.76.1-26.el9_3.2 |
| Red Hat jboss core services 1 | jbcs-httpd24-curl | 0:8.4.0-2.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-curl | 0:8.4.0-2.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-curl-debuginfo | 0:8.4.0-2.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-curl-debuginfo | 0:8.4.0-2.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-libcurl | 0:8.4.0-2.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-libcurl | 0:8.4.0-2.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-libcurl-debuginfo | 0:8.4.0-2.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-libcurl-devel | 0:8.4.0-2.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-libcurl-devel | 0:8.4.0-2.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_http2 | 0:1.15.19-32.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_http2 | 0:1.15.19-32.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_http2-debuginfo | 0:1.15.19-32.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_http2-debuginfo | 0:1.15.19-32.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_jk | 0:1.2.49-1.redhat_1.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_jk | 0:1.2.49-1.redhat_1.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_jk-ap24 | 0:1.2.49-1.redhat_1.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_jk-ap24 | 0:1.2.49-1.redhat_1.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_jk-ap24-debuginfo | 0:1.2.49-1.redhat_1.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-mod_jk-debuginfo | 0:1.2.49-1.redhat_1.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl | 1:1.1.1k-16.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl | 1:1.1.1k-16.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-debuginfo | 1:1.1.1k-16.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-debuginfo | 1:1.1.1k-16.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-devel | 1:1.1.1k-16.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-devel | 1:1.1.1k-16.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-libs | 1:1.1.1k-16.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-libs | 1:1.1.1k-16.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-libs-debuginfo | 1:1.1.1k-16.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-perl | 1:1.1.1k-16.el8jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-perl | 1:1.1.1k-16.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-static | 1:1.1.1k-16.el7jbcs |
| Red Hat jboss core services 1 | jbcs-httpd24-openssl-static | 1:1.1.1k-16.el8jbcs |
| Red Hat rhel eus 9.0 | curl | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | curl-debuginfo | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | curl-debugsource | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | curl-minimal | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | curl-minimal-debuginfo | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | libcurl | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | libcurl-debuginfo | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | libcurl-devel | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | libcurl-minimal | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel eus 9.0 | libcurl-minimal-debuginfo | 0:7.76.1-14.el9_0.9 |
| Red Hat rhel satellite client 6 | puppet-agent | 0:7.27.0-1.el9sat |
| Red Hat rhel satellite client 6 | puppet-agent | 0:7.27.0-1.el8sat |
| Red Hat rhel satellite client 6 | puppet-agent | 0:7.27.0-1.el7sat |
| Red Hat rhel satellite client 6 | puppet-agent | 0:7.27.0-1.el6sat |
| Red Hat satellite 6.14 | candlepin | 0:4.3.11-1.el8sat |
| Red Hat satellite 6.14 | candlepin-selinux | 0:4.3.11-1.el8sat |
| Red Hat satellite 6.14 | mosquitto | 0:2.0.17-1.el8sat |
| Red Hat satellite 6.14 | mosquitto-debuginfo | 0:2.0.17-1.el8sat |
| Red Hat satellite 6.14 | mosquitto-debugsource | 0:2.0.17-1.el8sat |
| Red Hat satellite 6.14 | puppet-agent | 0:7.27.0-1.el8sat |
| Red Hat satellite 6.14 | puppetserver | 0:7.14.0-1.el8sat |
| Red Hat satellite 6.14 | rubygem-grpc | 0:1.58.0-1.el8sat |
| Red Hat satellite 6.14 | rubygem-puma | 0:6.3.1-1.el8sat |
| Red Hat satellite 6.14 | rubygem-puma-debuginfo | 0:6.3.1-1.el8sat |
| Red Hat satellite 6.14 | rubygem-puma-debugsource | 0:6.3.1-1.el8sat |
| Red Hat satellite 6.14 | rubygem-sidekiq | 0:6.5.12-1.el8sat |
| Red Hat satellite capsule 6.14 | mosquitto | 0:2.0.17-1.el8sat |
| Red Hat satellite capsule 6.14 | mosquitto-debuginfo | 0:2.0.17-1.el8sat |
| Red Hat satellite capsule 6.14 | mosquitto-debugsource | 0:2.0.17-1.el8sat |
| Red Hat satellite capsule 6.14 | puppet-agent | 0:7.27.0-1.el8sat |
| Red Hat satellite capsule 6.14 | puppetserver | 0:7.14.0-1.el8sat |
| Rocky Linux 9 | curl | 0:7.76.1-23.el9_2.4 |
| SUSE Linux Enterprise Micro 5.3 | curl | 8.0.1-150400.5.32.1 |
| SUSE Linux Enterprise Micro 5.4 | curl | 8.0.1-150400.5.32.1 |
| SUSE Linux Enterprise Micro 5.5 | curl | 8.0.1-150400.5.32.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | curl | 8.0.1-150400.5.32.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | curl | 8.0.1-150400.5.32.1 |
| SUSE Linux Enterprise Server 12 SP5 | curl | 8.0.1-11.74.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | curl | 8.0.1-11.74.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | curl | 8.0.1-11.74.1 |
| Ubuntu 20.04 LTS | curl | 7.68.0-1ubuntu2.20 |
| Ubuntu 22.04 LTS | curl | 7.81.0-1ubuntu1.14 |
| Ubuntu 23.10 | curl | 8.2.1-1ubuntu3.1 |
| Ubuntu 24.04 LTS | curl | 8.2.1-1ubuntu3.1 |
| Wolfi | curl | 8.4.0-r0 |
| Wolfi | curl-dev | 8.4.0-r0 |
| Wolfi | curl-doc | 8.4.0-r0 |
| Wolfi | curl-oci-entrypoint | 8.4.0-r0 |
| Wolfi | curl-rustls | 8.4.0-r0 |
| Wolfi | curl-static | 8.4.0-r0 |
| Wolfi | libcurl-openssl4 | 8.4.0-r0 |
| Wolfi | libcurl-rustls4 | 8.4.0-r0 |
| Wolfi | libcurl4 | no fix |
| Wolfi | libcurl4 | 8.4.0-r0 |
| openSUSE Leap 15.4 | curl | 8.0.1-150400.5.32.1 |
| openSUSE Leap 15.5 | curl | 8.0.1-150400.5.32.1 |
| openSUSE Tumbleweed | cmake | 3.27.8-1.1 |
| openSUSE Tumbleweed | curl | 8.4.0-1.1 |