CVE-2023-38545 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 g...
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/curl(Debian:12) | < 7.88.1-10+deb12u4 | 7.88.1-10+deb12u4 |
| debian/curl(Debian:12) | = 7.88.1-10 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u1~bpo11+1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u2 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u3 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u3~bpo11+1 | No fix listed |
| debian/curl(Debian:13) | < 8.3.0-3 | 8.3.0-3 |
| debian/curl(Debian:14) | < 8.3.0-3 | 8.3.0-3 |
| curl | >= 8.4.0, < 8.4.0 | 8.4.0 |
| Siemens RUGGEDCOM APE1808 | All versions | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| ubuntu/curl(Ubuntu:22.04) | < 7.81.0-1ubuntu1.14 | 7.81.0-1ubuntu1.14 |
| alpine/curl(Alpine:v3.15) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.16) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.17) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.18) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.19) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.20) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.21) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.22) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.23) | < 8.4.0-r0 | 8.4.0-r0 |
| alpine/curl(Alpine:v3.24) | < 8.4.0-r0 | 8.4.0-r0 |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/curl(Ubuntu:24.04) | < 8.2.1-1ubuntu3.1 | 8.2.1-1ubuntu3.1 |
| haxx libcurl | >= 7.69.0, < 8.4.0 | 8.4.0 |
| fedoraproject fedora | = 37 | No fix listed |
| netapp active iq unified manager | All versions | No fix listed |
| netapp oncommand insight | All versions | No fix listed |
| netapp oncommand workflow automation | All versions | No fix listed |
| Microsoft windows 10 1809 | < 10.0.17763.5122 | 10.0.17763.5122 |
| Microsoft windows 10 21h2 | < 10.0.19044.3693 | 10.0.19044.3693 |
| Microsoft windows 10 22h2 | < 10.0.19045.3693 | 10.0.19045.3693 |
| Microsoft windows 11 21h2 | < 10.0.22000.2600 | 10.0.22000.2600 |
| Microsoft windows 11 22h2 | < 10.0.22621.2715 | 10.0.22621.2715 |
| Microsoft windows 11 23h2 | < 10.0.22631.2715 | 10.0.22631.2715 |
| Microsoft Windows Server 2019 | < 10.0.17763.5122 | 10.0.17763.5122 |
| Microsoft Windows Server 2022 | < 10.0.20348.2113 | 10.0.20348.2113 |
References
- Debian Security Tracker CVE-2023-38545 vendor-advisory
- curl.se patch third-party-advisory
- security.netapp.com third-party-advisory
- lists.fedoraproject.org mailing-list third-party-advisory
- www.secpod.com patch third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- support.apple.com third-party-advisory
- seclists.org mailing-list third-party-advisory
- seclists.org mailing-list third-party-advisory
- seclists.org mailing-list third-party-advisory
- security.netapp.com third-party-advisory
- forum.vmssoftware.com
- github.com exploit
- github.com exploit
- github.com exploit
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-6429-1 vendor-advisory
- USN-6429-3 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory