CVE-2024-24806 Details
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.
A vulnerability exists in libuv, a multi-platform support library focused on asynchronous I/O, specifically in the 'uv_getaddrinfo' function. This function truncates hostnames to 256 characters before passing them to 'getaddrinfo'. This truncation can be exploited to create addresses that, while valid, bypass developer checks and could lead to unintended IP address resolutions. The vulnerability, present in libuv versions 1.24.0 and 1.45.x prior to 1.48.0, can be exploited in certain Node.js builds, such as those distributed with Kali Linux, to access internal APIs or manipulate services that cache user-specific pages, potentially leading to server-side request forgery (SSRF) attacks.
Users are advised to upgrade to libuv version 1.48.0 or later, and Node.js versions 18.x, 20.x, or 21.x.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 21, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libuv libuv | >= 1.24.0, < 1.48.0 |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 18, 2024 | CVE Modified | [email protected] |
| Jun 10, 2024 | CVE Modified | [email protected] |
| May 14, 2024 | CVE Modified | [email protected] |
| May 1, 2024 | CVE Modified | [email protected] |
| Mar 5, 2024 | CVE Modified | [email protected] |
| Feb 28, 2024 | Reanalysis | [email protected] |
| Feb 27, 2024 | Reanalysis | [email protected] |
| Feb 23, 2024 | Reanalysis | [email protected] |
| Feb 15, 2024 | Initial Analysis | [email protected] |
| Feb 11, 2024 | CVE Modified | [email protected] |
| Feb 8, 2024 | CVE Modified | [email protected] |
| Feb 7, 2024 | New CVE Received | [email protected] |