Improper Domain Lookup that potentially leads to SSRF attacks in libuv
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Partial Red Hat: 6 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA libuv (libuv) Fixed in 1.48.0
Red Hat 3 advisories
- RHSA-2024:8132 Released 2024-10-15 · Red Hat rating Moderatelibuv security update
- Red Hat CodeReady Linux Builder EUS (v.8.8) libuv-devel-1:1.41.1-1.el8_8.1
- Red Hat Enterprise Linux AppStream EUS (v.8.8) libuv-1:1.41.1-1.el8_8.1
- RHSA-2024:4756 Released 2024-07-23 · Red Hat rating Moderatelibuv security update
- Red Hat Enterprise Linux AppStream (v. 9) libuv-1:1.42.0-2.el9_4
- Red Hat Enterprise Linux CRB (v. 9) libuv-devel-1:1.42.0-2.el9_4
- RHSA-2024:4247 Released 2024-07-02 · Red Hat rating Moderatelibuv security update
- Red Hat Enterprise Linux AppStream (v. 8) libuv-1:1.41.1-2.el8_10
- Red Hat Enterprise Linux CRB (v. 8) libuv-devel-1:1.41.1-2.el8_10
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:8132 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:4247 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:4756 |
| Red Hat Enterprise Linux AppStream EUS (v.8.8) | Fixed | RHSA-2024:8132 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:4247 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:4756 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-24806
References
Patch 4
- https://github.com/libuv/libuv/commit/0f2d7e784a256b54b2385043438848047bc2a629
- https://github.com/libuv/libuv/commit/3530bcc30350d4a6ccf35d2f7b33e23292b9de70
- https://github.com/libuv/libuv/commit/c858a147643de38a09dd4164758ae5b685f2b488
- https://github.com/libuv/libuv/commit/e0327e1d508b8207c9150b6e582f0adf26213c39
Advisory 2
More Libuv vulnerabilities
- TI-2014-07927 The uv_rwlock_t fallback implementation for Windows XP and Server 2003 in libuv before… CVSS 3.1HIGH 8.1
Sources
- CVE-2024-24806 · CVE Program
- CVE-2024-24806 · NVD
- FIRST EPSS
- CVE-2024-24806 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences