CVE-2023-38545
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
52cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*+ 1 more
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:*
- cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:*range: <10.0.19044.3693
- cpe:2.3:o:microsoft:windows_10_22h2:*:*:*:*:*:*:*:*range: <10.0.19045.3693
cpe:2.3:o:microsoft:windows_11_22h2:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:microsoft:windows_11_22h2:*:*:*:*:*:*:*:*range: <10.0.22621.2715
- cpe:2.3:o:microsoft:windows_11_23h2:*:*:*:*:*:*:*:*range: <10.0.22631.2715
- cpe:2.3:o:microsoft:windows_server_2019:*:*:*:*:*:*:*:*Range: <10.0.17763.5122
- cpe:2.3:o:microsoft:windows_server_2022:*:*:*:*:*:*:*:*Range: <10.0.20348.2113
- osv-coords36 versionspkg:apk/chainguard/curlpkg:apk/chainguard/curl-devpkg:apk/chainguard/curl-docpkg:apk/chainguard/curl-oci-entrypointpkg:apk/chainguard/curl-rustlspkg:apk/chainguard/curl-staticpkg:apk/chainguard/libcurl4pkg:apk/chainguard/libcurl-openssl4pkg:apk/chainguard/libcurl-rustls4pkg:apk/wolfi/curlpkg:apk/wolfi/curl-devpkg:apk/wolfi/curl-docpkg:apk/wolfi/curl-oci-entrypointpkg:apk/wolfi/curl-rustlspkg:apk/wolfi/curl-staticpkg:apk/wolfi/libcurl4pkg:apk/wolfi/libcurl-openssl4pkg:apk/wolfi/libcurl-rustls4pkg:deb/ubuntu/curl@8.2.1-1ubuntu3.1?arch=source&distro=manticpkg:rpm/almalinux/curlpkg:rpm/almalinux/curl-minimalpkg:rpm/almalinux/libcurlpkg:rpm/almalinux/libcurl-develpkg:rpm/almalinux/libcurl-minimalpkg:rpm/opensuse/cmake&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 8.4.0-r0+ 35 more
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.4.0-r0
- (no CPE)range: < 8.2.1-1ubuntu3.1
- (no CPE)range: < 7.76.1-23.el9_2.4
- (no CPE)range: < 7.76.1-23.el9_2.4
- (no CPE)range: < 7.76.1-23.el9_2.4
- (no CPE)range: < 7.76.1-23.el9_2.4
- (no CPE)range: < 7.76.1-23.el9_2.4
- (no CPE)range: < 3.27.8-1.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.4.0-1.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.0.1-150400.5.32.1
- (no CPE)range: < 8.0.1-11.74.1
- (no CPE)range: < 8.0.1-11.74.1
- (no CPE)range: < 8.0.1-11.74.1
Patches
Vulnerability mechanics
References
18- curl.se/docs/CVE-2023-38545.htmlnvdPatchThird Party Advisory
- www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability/nvdPatchThird Party Advisory
- seclists.org/fulldisclosure/2024/Jan/34nvdMailing ListThird Party Advisory
- seclists.org/fulldisclosure/2024/Jan/37nvdMailing ListThird Party Advisory
- seclists.org/fulldisclosure/2024/Jan/38nvdMailing ListThird Party Advisory
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/nvdMailing ListThird Party Advisory
- security.netapp.com/advisory/ntap-20231027-0009/nvdThird Party Advisory
- security.netapp.com/advisory/ntap-20240201-0005/nvdThird Party Advisory
- support.apple.com/kb/HT214036nvdThird Party Advisory
- support.apple.com/kb/HT214057nvdThird Party Advisory
- support.apple.com/kb/HT214058nvdThird Party Advisory
- support.apple.com/kb/HT214063nvdThird Party Advisory
- cert-portal.siemens.com/productcert/html/ssa-082556.htmlnvd
- cert-portal.siemens.com/productcert/html/ssa-093430.htmlnvd
- cert-portal.siemens.com/productcert/html/ssa-507364.htmlnvd
- cert-portal.siemens.com/productcert/html/ssa-832273.htmlnvd
- cert-portal.siemens.com/productcert/html/ssa-943925.htmlnvd
- forum.vmssoftware.com/viewtopic.phpnvd
News mentions
1- GitLab Security Release: 16.5.1, 16.4.2, 16.3.6GitLab Security Releases · Oct 31, 2023