Skip to content

CVE-2024-24806 Improper Domain Lookup that potentially leads to SSRF attacks in libuv

HighCVSS 7.3 EPSS 2.0%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

13 packages: 13 fixed.

PackageAffectedFixed inStatus
alpine/libuv(Alpine v3.20) >= 1.24.0, < 1.48.0-r0 1.48.0-r0 Fixed
alpine/libuv(Alpine v3.21) >= 1.24.0, < 1.48.0-r0 1.48.0-r0 Fixed
alpine/libuv(Alpine v3.22) >= 1.24.0, < 1.48.0-r0 1.48.0-r0 Fixed
alpine/libuv(Alpine v3.23) >= 1.24.0, < 1.48.0-r0 1.48.0-r0 Fixed
alpine/libuv(Alpine v3.24) >= 1.24.0, < 1.48.0-r0 1.48.0-r0 Fixed
debian/libuv1(Debian 12) < 1.44.2-1+deb12u1; = 1.44.2-1 1.44.2-1+deb12u1 Fixed
debian/libuv1(Debian 13) < 1.48.0-1 1.48.0-1 Fixed
debian/libuv1(Debian 14) < 1.48.0-1 1.48.0-1 Fixed
libuv = >= 1.45.0, < 1.48.0; >= 1.24.0, < 1.48.0 1.48.0 Fixed
Microsoft azure linux < 1.48.0-1; < 3.28.2-6; < 20.14.0-1; < 23.9.1-3 1.48.0-1, 3.28.2-6, 20.14.0-1, 23.9.1-3 Fixed
Microsoft cbl mariner < 1.43.0-2; < 18.18.2-4 1.43.0-2, 18.18.2-4 Fixed
ubuntu/libuv1(Ubuntu 20.04) < 1.34.2-1ubuntu1.5; = 1.30.1-1; = 1.33.1-2; = 1.33.1-2ubuntu2 +4 more 1.34.2-1ubuntu1.5 Fixed
ubuntu/libuv1(Ubuntu 22.04) < 1.43.0-1ubuntu0.1; = 1.40.0-2ubuntu1; = 1.42.0-1; = 1.43.0-1 1.43.0-1ubuntu0.1 Fixed

Affected products

ProductAffected versionsFixed in
Microsoft cbl mariner < 1.43.0-2 1.43.0-2
Microsoft cbl mariner < 18.18.2-4 18.18.2-4
Microsoft azure linux < 3.28.2-6 3.28.2-6
Microsoft azure linux < 1.48.0-1 1.48.0-1
Microsoft azure linux < 20.14.0-1 20.14.0-1
Microsoft azure linux < 23.9.1-3 23.9.1-3
debian/libuv1(Debian:12) < 1.44.2-1+deb12u1 1.44.2-1+deb12u1
debian/libuv1(Debian:12) = 1.44.2-1 No fix listed
debian/libuv1(Debian:13) < 1.48.0-1 1.48.0-1
debian/libuv1(Debian:14) < 1.48.0-1 1.48.0-1
ubuntu/libuv1(Ubuntu:22.04) < 1.43.0-1ubuntu0.1 1.43.0-1ubuntu0.1
libuv = >= 1.45.0, < 1.48.0 No fix listed
alpine/libuv(Alpine:v3.20) >= 1.24.0, < 1.48.0-r0 1.48.0-r0
alpine/libuv(Alpine:v3.21) >= 1.24.0, < 1.48.0-r0 1.48.0-r0
alpine/libuv(Alpine:v3.22) >= 1.24.0, < 1.48.0-r0 1.48.0-r0
alpine/libuv(Alpine:v3.23) >= 1.24.0, < 1.48.0-r0 1.48.0-r0
alpine/libuv(Alpine:v3.24) >= 1.24.0, < 1.48.0-r0 1.48.0-r0
libuv >= 1.24.0, < 1.48.0 1.48.0
ubuntu/libuv1(Ubuntu:20.04) < 1.34.2-1ubuntu1.5 1.34.2-1ubuntu1.5
ubuntu/libuv1(Ubuntu:20.04) = 1.30.1-1 No fix listed
ubuntu/libuv1(Ubuntu:20.04) = 1.33.1-2 No fix listed
ubuntu/libuv1(Ubuntu:20.04) = 1.33.1-2ubuntu2 No fix listed
ubuntu/libuv1(Ubuntu:20.04) = 1.33.1-3ubuntu1 No fix listed
ubuntu/libuv1(Ubuntu:20.04) = 1.34.2-1ubuntu1 No fix listed
ubuntu/libuv1(Ubuntu:20.04) = 1.34.2-1ubuntu1.1 No fix listed
Show 4 more
ProductAffected versionsFixed in
ubuntu/libuv1(Ubuntu:20.04) = 1.34.2-1ubuntu1.3 No fix listed
ubuntu/libuv1(Ubuntu:22.04) = 1.40.0-2ubuntu1 No fix listed
ubuntu/libuv1(Ubuntu:22.04) = 1.42.0-1 No fix listed
ubuntu/libuv1(Ubuntu:22.04) = 1.43.0-1 No fix listed

References