CVE-2024-24806: Improper Domain Lookup that potentially leads to SSRF attacks in libuv
Vulnerability summary
CVE-2024-24806 is a high (CVSS 7.3) Server-Side Request Forgery vulnerability in libuv. EPSS estimates a 2.00% chance of exploitation in the next 30 days, higher than 80.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 19Timeline
- 07-02-2024PublishedVulnerability first disclosed.
- 17-06-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- OSV · Red hatEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- OSV · WolfiEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- NVDNIST7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
2.00%
Chance of exploitation in the next 30 days
Percentile
81%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.00% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundLibuv
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard5 products
- libuv< 1.48.0-r0
- nodejs-16< 16.20.2-r4
- nodejs-18< 18.19.0-r2
- nodejs-20< 20.11.0-r1
- nodejs-21< 21.6.1-r1
Wolfi5 products
- libuv< 1.48.0-r0
- nodejs-16< 16.20.2-r4
- nodejs-18< 18.19.0-r2
- nodejs-20< 20.11.0-r1
- nodejs-21< 21.6.1-r1
Redhat4 products
- libuv< 1:1.41.1-2.el8_10 | < 1:1.42.0-2.el9_4 | < 1:1.41.1-1.el8_8.1
- libuv-debuginfo< 1:1.41.1-2.el8_10 | < 1:1.42.0-2.el9_4 | < 1:1.41.1-1.el8_8.1
- libuv-debugsource< 1:1.41.1-2.el8_10 | < 1:1.42.0-2.el9_4 | < 1:1.41.1-1.el8_8.1
- libuv-devel< 1:1.41.1-2.el8_10 | < 1:1.42.0-2.el9_4 | < 1:1.41.1-1.el8_8.1
Opensuse3 products
- libuv&distro=openSUSE Leap 15.5< 1.44.2-150500.3.5.1
- libuv&distro=openSUSE Leap 15.6< 1.44.2-150500.3.5.1
- libuv&distro=openSUSE Tumbleweed< 1.48.0-1.1
Suse3 products
- libuv&distro=SUSE Linux Enterprise Micro 5.5< 1.44.2-150500.3.5.1
- libuv&distro=SUSE Linux Enterprise Module for Basesystem 15 SP5< 1.44.2-150500.3.5.1
- libuv&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6< 1.44.2-150500.3.5.1
Alpine1 product
- libuv≥ 1.24.0, < 1.48.0-r0
Debian1 product
- libuv1< 1.40.0-2+deb11u1 | < 1.24.1-1+deb10u2 | < 1.44.2-1+deb12u1 | < 1.48.0-1
Libuv1 product
- libuv≥ 1.45.0, < 1.48.0 | ≥ 1.24.0, < 1.48.0
Mageia1 product
- libuv< 1.44.2-2.1.mga9
Ubuntu1 product
- libuv1< 1.34.2-1ubuntu1.5 | < 1.43.0-1ubuntu0.1
10 vendors · 25 products
References
35 links- github.com/libuv/libuv/security/advisories/GHSA-f74f-cvh7-c6q6X Refsource CONFIRMAdvisoryARTICLEREPORTExploitVendor Advisory