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-debuginfoUpgrade libuv-staticUpgrade libuv | Mar 5, 2024 | Feb 7, 2024 |
| Amazon_linux_2023 | — | Upgrade libuv-debuginfoUpgrade libuvUpgrade libuv-staticUpgrade libuv-debugsourceUpgrade libuv-devel | 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 libuv-develUpgrade libuv | Jul 3, 2024 | Feb 7, 2024 |
| Redhat_linux | — | No solution existsUpgrade libuv-debugsourceUpgrade libuv-debuginfoUpgrade libuv-develUpgrade libuv | Jul 3, 2024 | Feb 7, 2024 |
| Rocky_linux | — | Upgrade libuv-debuginfoUpgrade libuv-develUpgrade libuv-debugsourceUpgrade libuv | May 8, 2025 | Feb 7, 2024 |
| Suse | — | Upgrade nodejs16-develUpgrade nodejs12-develUpgrade libuv1Upgrade nodejs14-docsUpgrade npm12Upgrade nodejs18-develUpgrade npm18Upgrade npm20Upgrade nodejs20-docsUpgrade nodejs20Upgrade nodejs12Upgrade nodejs18Upgrade corepack18Upgrade nodejs14Upgrade nodejs16Upgrade libuv1-32bitUpgrade npm14Upgrade corepack20Upgrade npm16Upgrade nodejs12-docsUpgrade nodejs16-docsUpgrade nodejs20-develUpgrade libuv-develUpgrade nodejs18-docsUpgrade nodejs14-devel | 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