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

Published Feb 7, 2024
·
Updated

libuv is a multi-platform support library with a focus on asynchronous I/O. The uvgetaddrinfo 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 hostnameascii variable (with a length of 256 bytes) is handled in uvgetaddrinfo and subsequently in uvidnatoascii. 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.

Affected Software

9 affected componentsFixes available
debian/libuv1<=1.24.1-1+deb10u1, <=1.40.0-2, <=1.44.2-1
1.24.1-1+deb10u21.40.0-2+deb11u11.44.2-1+deb12u11.48.0-11.48.0-1.1
ubuntu/libuv1<1.34.2-1ubuntu1.5
1.34.2-1ubuntu1.5
ubuntu/libuv1<1.43.0-1ubuntu0.1
1.43.0-1ubuntu0.1
ubuntu/libuv1<1.44.2-1ubuntu0.1
1.44.2-1ubuntu0.1
redhat/libuv<1.48.0
1.48.0
libuv libuv>=1.24.0<1.48.0
F5 BIG-IP>=17.5.0<=17.5.1, >=17.1.0<=17.1.2
F5 BIG-IP>=16.1.0<=16.1.6
F5 BIG-IP>=15.1.0<=15.1.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/libuv1 to a version that resolves this vulnerability.

    Fixed in 1.24.1-1+deb10u2Fixed in 1.40.0-2+deb11u1Fixed in 1.44.2-1+deb12u1Fixed in 1.48.0-1Fixed in 1.48.0-1.1
  2. Upgrade

    Upgrade ubuntu/libuv1 to a version that resolves this vulnerability.

    Fixed in 1.34.2-1ubuntu1.5
  3. Upgrade

    Upgrade ubuntu/libuv1 to a version that resolves this vulnerability.

    Fixed in 1.43.0-1ubuntu0.1
  4. Upgrade

    Upgrade ubuntu/libuv1 to a version that resolves this vulnerability.

    Fixed in 1.44.2-1ubuntu0.1
  5. Upgrade

    Upgrade redhat/libuv to a version that resolves this vulnerability.

    Fixed in 1.48.0
  6. Upgrade

    Upgrade libuv to a version that resolves this vulnerability.

    Fixed in 1.48.0Patch CVE-2024-24806

Event History

Feb 7, 2024
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·09:44 PM
Data Sourced
via MITRE·09:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 27, 2024
Data Sourced
via Launchpad·03:20 PM
Description
Aug 5, 2025
Advisory Published
via F5·04:50 PM
Data Sourced
via F5·04:50 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-24806?

CVE-2024-24806 is classified as a medium severity vulnerability due to its potential for denial of service through hostname truncation.

2

How do I fix CVE-2024-24806?

To fix CVE-2024-24806, upgrade to libuv versions 1.24.1-1+deb10u2, 1.40.0-2+deb11u1, 1.44.2-1+deb12u1, or 1.48.0-1 or their specific updates depending on your distribution.

3

Which versions of libuv are affected by CVE-2024-24806?

Versions of libuv from 1.24.0 up to but not including 1.48.0 are affected by CVE-2024-24806.

4

Is CVE-2024-24806 specific to any operating system?

CVE-2024-24806 affects libuv across multiple operating systems including Linux distributions such as Debian and Ubuntu.

5

Can CVE-2024-24806 be exploited remotely?

Yes, CVE-2024-24806 can potentially be exploited remotely if an attacker can send specially crafted hostnames to an application using the vulnerable libuv library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203