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 Details
- CVSS 3.1 Base Score: 7.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade libuv-develUpgrade libuv | Jul 4, 2024 | Feb 7, 2024 |
| Alpine Linux | — | Upgrade libuv | Mar 21, 2024 | Feb 7, 2024 |
| Amazon Linux Ami 2 | — | Upgrade libuv-develUpgrade libuv-staticUpgrade libuv-debuginfoUpgrade libuv | Mar 5, 2024 | Feb 7, 2024 |
| Amazon_linux_2023 | — | Upgrade libuv-debuginfoUpgrade libuvUpgrade libuv-develUpgrade libuv-staticUpgrade libuv-debugsource | Feb 17, 2025 | Feb 7, 2024 |
| Debian | — | Upgrade libuv1 | Mar 7, 2024 | Feb 7, 2024 |
| F5 Big Ip | — | — | Aug 7, 2025 | Aug 7, 2025 |
| Gentoo Linux | — | Upgrade dev-libs/libuv. | Jan 24, 2025 | Feb 7, 2024 |
| Huawei Euleros 2_0_sp10 | — | Upgrade libuv | May 13, 2024 | Feb 7, 2024 |
| Huawei Euleros 2_0_sp11 | — | Upgrade libuv | Jun 3, 2024 | Feb 7, 2024 |
| Huawei Euleros 2_0_sp12 | — | Upgrade libuv | May 31, 2024 | Feb 7, 2024 |
| Oracle_linux | — | Upgrade libuvUpgrade libuv-devel | Jul 3, 2024 | Feb 7, 2024 |
| Redhat_linux | — | Upgrade libuv-develUpgrade libuv-debuginfoUpgrade libuvUpgrade libuv-debugsourceNo solution exists | Jul 3, 2024 | Feb 7, 2024 |
| Rocky_linux | — | Upgrade libuvUpgrade libuv-debugsourceUpgrade libuv-debuginfoUpgrade libuv-devel | May 8, 2025 | Feb 7, 2024 |
| Suse | — | Upgrade npm16Upgrade libuv1-32bitUpgrade npm14Upgrade nodejs14Upgrade nodejs18-docsUpgrade nodejs14-develUpgrade corepack20Upgrade nodejs16Upgrade libuv-develUpgrade nodejs20Upgrade nodejs20-develUpgrade nodejs18Upgrade nodejs12Upgrade nodejs16-docsUpgrade corepack18Upgrade nodejs12-docsUpgrade npm12Upgrade nodejs20-docsUpgrade nodejs18-develUpgrade npm20Upgrade nodejs16-develUpgrade nodejs12-develUpgrade libuv1Upgrade nodejs14-docsUpgrade npm18 | Feb 29, 2024 | Feb 7, 2024 |
| Ubuntu | — | Upgrade libuv1 | Feb 29, 2024 | Feb 7, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Feb 7, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub