cve.bz

CVE-2024-24806 libuv libuv: SSRF

7.3 highExploit referenceEPSS 2.0%Fix available

High (7.3) in libuv libuv. EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
libuv is a multi-platform support library with a focus on asynchronous I/O. The `uv_getaddrinfo` function in `src/unix/getaddrinfo.c` (and its windows counterpart `src/win/getaddrinfo.c`), truncates hostnames to 256 characters before calling `getaddrinfo`. This behavior can be exploited to create addresses like `0x00007f000001`, which are considered valid by `getaddrinfo` and could allow an attacker to craft payloads that resolve to unintended IP addresses, bypassing developer checks. The vulnerability arises due to how the `hostname_ascii` variable (with a length of 256 bytes) is handled in `uv_getaddrinfo` and subsequently in `uv__idna_toascii`. When the hostname exceeds 256 characters, it gets truncated without a terminating null byte. As a result attackers may be able to access internal APIs or for websites (similar to MySpace) that allows users to have `username.example.com` pages. Internal services that crawl or cache these user pages can be exposed to SSRF attacks if a malicious user chooses a long vulnerable username. This issue has been addressed in release version 1.48.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st 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: partial, assessed 2024-02-21. 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-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
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-2024-24806 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-24806?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-24806?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-2024-24806 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 NVD's CPE matches.

ProductAffected
libuv:libuvfrom 1.24.0 before 1.48.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libuv11.24.1-1+deb10u2DLA-3752-1
Debian11libuv11.40.0-2+deb11u1DSA-5638-1
Debian12libuv11.44.2-1+deb12u1DEBIAN-CVE-2024-24806 DSA-5638-1
Debian13, 14libuv11.48.0-1DEBIAN-CVE-2024-24806
Ubuntu20.04:LTSlibuv11.34.2-1ubuntu1.5UBUNTU-CVE-2024-24806 USN-6666-1
Ubuntu22.04:LTSlibuv11.43.0-1ubuntu0.1UBUNTU-CVE-2024-24806 USN-6666-1
Red Hatenterprise_linux:8::appstreamlibuv, libuv-debuginfo, libuv-debugsource1:1.41.1-2.el8_10RHSA-2024:4247
Red Hatenterprise_linux:8::crblibuv-devel, libuv-debuginfo, libuv-debugsource1:1.41.1-2.el8_10RHSA-2024:4247
Red Hatenterprise_linux:9::appstreamlibuv, libuv-debuginfo, libuv-debugsource1:1.42.0-2.el9_4RHSA-2024:4756
Red Hatenterprise_linux:9::crblibuv-devel, libuv-debuginfo, libuv-debugsource1:1.42.0-2.el9_4RHSA-2024:4756
Red Hatrhel_eus:8.8::appstreamlibuv, libuv-debuginfo, libuv-debugsource1:1.41.1-1.el8_8.1RHSA-2024:8132
Red Hatrhel_eus:8.8::crblibuv-devel, libuv-debuginfo, libuv-debugsource1:1.41.1-1.el8_8.1RHSA-2024:8132
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morenodejs1212.22.12-150200.4.56.1SUSE-SU-2024:0733-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morenodejs1414.21.3-150200.15.55.1SUSE-SU-2024:0732-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morenodejs1616.20.2-150300.7.33.1SUSE-SU-2024:0729-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Web and Scripting 15 SP5 and 3 morenodejs1818.19.1-150400.9.18.2SUSE-SU-2024:0730-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Web and Scripting 15 SP5 and 3 morenodejs1818.20.1-150400.9.21.3SUSE-SU-2024:1309-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 2 morenodejs1616.20.2-150400.3.30.1SUSE-SU-2024:0728-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Basesystem 15 SP6libuv1.44.2-150500.3.5.1SUSE-SU-2024:4109-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.20.2-8.39.1SUSE-SU-2024:0731-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.19.1-8.18.1SUSE-SU-2024:0644-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.20.1-8.21.1SUSE-SU-2024:1307-1
SUSELinux Enterprise Module for Web and Scripting 15 SP5nodejs2020.11.1-150500.11.6.1SUSE-SU-2024:0643-1
SUSELinux Enterprise Module for Web and Scripting 15 SP5nodejs2020.12.1-150500.11.9.2SUSE-SU-2024:1301-1
openSUSELeap 15.5nodejs1818.19.1-150400.9.18.2SUSE-SU-2024:0730-1
openSUSELeap 15.5nodejs1818.20.1-150400.9.21.3SUSE-SU-2024:1309-1
openSUSELeap 15.5nodejs2020.11.1-150500.11.6.1SUSE-SU-2024:0643-1
openSUSELeap 15.5nodejs2020.12.1-150500.11.9.2SUSE-SU-2024:1301-1
openSUSELeap 15.5, Leap 15.6libuv1.44.2-150500.3.5.1SUSE-SU-2024:4109-1
openSUSETumbleweedlibuv1.48.0-1.1openSUSE-SU-2024:13818-1
openSUSETumbleweednodejs2020.11.1-1.1openSUSE-SU-2024:13697-1
AlmaLinux8libuv, libuv-devel1:1.41.1-2.el8_10ALSA-2024:4247
AlmaLinux9libuv, libuv-devel1:1.42.0-2.el9_4ALSA-2024:4756
Rocky Linux8libuv1:1.41.1-2.el8_10RLSA-2024:4247
Rocky Linux9libuv1:1.42.0-2.el9_4RLSA-2024:4756
Alpinev3.20, v3.21, v3.22 and 2 morelibuv1.48.0-r0ALPINE-CVE-2024-24806
Azure Linux2libuv1.43.0-2AZL-34306
Azure Linux2nodejs1818.18.2-4AZL-34278
Azure Linux3cmake3.28.2-6AZL-35782
Azure Linux3libuv1.48.0-1AZL-34957
Azure Linux3nodejs20.14.0-1AZL-35051
Azure Linux3python-gevent23.9.1-3AZL-35133
Alpaquita23libuvno fix listedBELL-CVE-2024-24806
Alpaquita23nodejs18.19.1-r0BELL-CVE-2024-24806
Alpaquitastreamlibuv1.48.0-r0BELL-CVE-2024-24806
Alpaquitastreamnodejs20.11.1-r0BELL-CVE-2024-24806
BellSoft Hardened Containers23nodejs18.19.1-r0BELL-CVE-2024-24806
BellSoft Hardened Containersstreamlibuv1.48.0-r0BELL-CVE-2024-24806
BellSoft Hardened Containersstreamnodejs20.11.1-r0BELL-CVE-2024-24806

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 Moderate.

Red Hat's statement

The CVE-2024-24806 vulnerability in libuv, can be classified as a moderate severity issue rather than critical due to several mitigating factors. Firstly, the exploit requires specific conditions to be met, including the use of hostnames exceeding 256 characters, limiting its applicability. Additionally, the vulnerability primarily exposes servers to SSRF attacks and unauthorized access to internal APIs, rather than facilitating direct system compromise or data exfiltration. Furthermore, the exploit's detection and exploitation require a degree of sophistication, reducing the likelihood of widespread exploitation. While the potential impact on systems leveraging libuv is notable, prudent security measures, such as network controls and vigilant monitoring, can effectively mitigate the risk, thus warranting a moderate severity classification.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libuv-1:1.41.1-2.el8_10Fixed 2024-07-02RHSA-2024:4247
Red Hat Enterprise Linux 8.8 Extended Update Supportlibuv-1:1.41.1-1.el8_8.1Fixed 2024-10-15RHSA-2024:8132
Red Hat Enterprise Linux 9libuv-1:1.42.0-2.el9_4Fixed 2024-07-23RHSA-2024:4756
Red Hat Enterprise Linux 9nodejsWill not fix

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-2024-24806.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-319-08Siemens SINEC INS2024-11-12MultipleSINEC INSnone 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.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON