cve.bz

CVE-2023-38545 Out-of-bounds Write

9.8 criticalEPSS 78%Fix available

Critical (9.8). EPSS 78% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
78% (unchanged from 78% a week ago; 79% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2024-10-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-38545 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-38545?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-38545?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-38545 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
curlfrom 8.4.0 before 8.4.0

Fixed in

ProductFixed in
curl7.69.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11curl7.74.0-1.3+deb11u10DSA-5523-1
Debian12curl7.88.1-10+deb12u4DEBIAN-CVE-2023-38545 DSA-5523-1
Debian13, 14curl8.3.0-3DEBIAN-CVE-2023-38545
Ubuntu20.04:LTScurl7.68.0-1ubuntu2.20USN-6429-1
Ubuntu22.04:LTScurl7.81.0-1ubuntu1.14UBUNTU-CVE-2023-38545 USN-6429-1
Ubuntu24.04:LTScurl8.2.1-1ubuntu3.1UBUNTU-CVE-2023-38545
Red Hatenterprise_linux:9::appstreamlibcurl-devel, curl-debuginfo, curl-debugsource and 3 more0:7.76.1-23.el9_2.4RHSA-2023:5763
Red Hatenterprise_linux:9::appstreamlibcurl-devel, curl-debuginfo, curl-debugsource and 3 more0:7.76.1-26.el9_3.2RHSA-2023:6745
Red Hatenterprise_linux:9::baseoscurl, libcurl, curl-minimal and 6 more0:7.76.1-23.el9_2.4RHSA-2023:5763
Red Hatenterprise_linux:9::baseoscurl, libcurl, curl-minimal and 6 more0:7.76.1-26.el9_3.2RHSA-2023:6745
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:8.4.0-2.el7jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.19-32.el7jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-debuginfo0:1.2.49-1.redhat_1.el7jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-16.el7jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el8jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 2 more0:8.4.0-2.el8jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.19-32.el8jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-ap24-debuginfo0:1.2.49-1.redhat_1.el8jbcsRHSA-2023:7625
Red Hatjboss_core_services:1::el8jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 4 more1:1.1.1k-16.el8jbcsRHSA-2023:7625
13 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 2 morecurl8.0.1-150400.5.32.1SUSE-SU-2023:4044-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5curl8.0.1-11.74.1SUSE-SU-2023:4043-1
openSUSELeap 15.4, Leap 15.5curl8.0.1-150400.5.32.1SUSE-SU-2023:4044-1
openSUSETumbleweedcmake3.27.8-1.1openSUSE-SU-2024:13464-1
openSUSETumbleweedcurl8.4.0-1.1openSUSE-SU-2024:13325-1
AlmaLinux9curl, libcurl, curl-minimal and 2 more7.76.1-23.el9_2.4ALSA-2023:5763
AlmaLinux9curl, libcurl, curl-minimal and 2 more7.76.1-26.el9_3.2ALSA-2023:6745
Rocky Linux9curl0:7.76.1-23.el9_2.4RLSA-2023:5763
Alpinev3.15, v3.16, v3.17 and 7 morecurl8.4.0-r0ALPINE-CVE-2023-38545
Azure Linux2cmake3.21.4-10AZL-31501
Azure Linux2curl8.3.0-2AZL-31288
Azure Linux3cmake3.21.4-10AZL-34612
Azure Linux3tensorflow2.16.1-1AZL-37886
Alpaquita23, streamcurl8.4.0-r0BELL-CVE-2023-38545
BellSoft Hardened Containersstreamcurl8.4.0-r0BELL-CVE-2023-38545

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw does not affect the versions of curl as shipped with Red Hat Enterprise Linux 6, 7, and 8.

An overflow is only possible in applications that do not set `CURLOPT_BUFFERSIZE`, or set it smaller than approximately 65kB. Since the curl tool sets `CURLOPT_BUFFERSIZE` to 100kB by default, it is not vulnerable unless rate limiting was set by the user to a size smaller than 65kB.

Knowledgebase article:

https://access.redhat.com/solutions/7045099

Red Hat's mitigation

To avoid this issue, we recommend you do not use `CURLPROXY_SOCKS5_HOSTNAME` proxies with curl. Also do not set a proxy environment variable to socks5h://

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-curl-0:8.4.0-2.el8jbcsFixed 2023-12-07RHSA-2023:7625
JBoss Core Services on RHEL 7jbcs-httpd24-curl-0:8.4.0-2.el7jbcsFixed 2023-12-07RHSA-2023:7625
Red Hat Enterprise Linux 9curl-0:7.76.1-23.el9_2.4Fixed 2023-10-17RHSA-2023:5763
Red Hat Enterprise Linux 9curl-0:7.76.1-26.el9_3.2Fixed 2023-11-07RHSA-2023:6745
Red Hat Enterprise Linux 9.0 Extended Update Supportcurl-0:7.76.1-14.el9_0.9Fixed 2023-10-13RHSA-2023:5700
Red Hat JBoss Core Servicesjbcs-httpd24-curlFixed 2023-12-07RHSA-2023:7626
Red Hat Satellite 6.14 for RHEL 8puppet-agent-0:7.27.0-1.el8satFixed 2024-02-13RHSA-2024:0797
Satellite Client 6 for RHEL 6puppet-agent-0:7.27.0-1.el6satFixed 2024-04-23RHSA-2024:2011
Satellite Client 6 for RHEL 7puppet-agent-0:7.27.0-1.el7satFixed 2024-04-23RHSA-2024:2011
Satellite Client 6 for RHEL 8puppet-agent-0:7.27.0-1.el8satFixed 2024-04-23RHSA-2024:2011
Satellite Client 6 for RHEL 9puppet-agent-0:7.27.0-1.el9satFixed 2024-04-23RHSA-2024:2011
Red Hat Enterprise Linux 6curlNot affected
Red Hat Enterprise Linux 7curlNot affected
Red Hat Enterprise Linux 8curlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-38545.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-043-04Siemens Desigo CC Product Family and SENTRON Powermanager2026-02-10Critical ManufacturingDesigo CC family V6, Desigo CC family V7, Desigo CC family V8 and 3 morenone listed
ICSA-25-162-05Siemens SIMATIC S7-1500 CPU family2025-06-10EnergySIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-24-137-07Siemens SIMATIC RTLS Locating Manager2024-05-14MultipleSIMATIC RTLS Locating Manager (6GT2780-0DA00), SIMATIC RTLS Locating Manager (6GT2780-0DA10), SIMATIC RTLS Locating Manager (6GT2780-0DA20) and 4 morenone listed
ICSA-24-074-05Siemens RUGGEDCOM APE18082024-03-12Critical ManufacturingRUGGEDCOM APE1808none listed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed
ICSA-24-004-01Rockwell Automation FactoryTalk Activation2024-01-04Critical ManufacturingRockwell Automation Factory Talk Activation Manager: <V4.00_Utilizes_Wibu-Systems_CodeMeter_7.60cnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON