Skip to main content
CVE-2024-24806VulnerabilityPublished Updated

Libuv1: The uv_getaddrinfo function

Affects libuv1Source GCVE Database

0
Compare

Not known to be exploited · CVSS 7.3 High · fixed in 1.34.2-1ubuntu1.5 : patch libuv1 soon.

Data as of 24 Nov 2026, 19:25 UTC

CVSS 3.1 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.34.2-1ubuntu1.5, 1.43.0-1ubuntu0.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu libuv1 to 1.34.2-1ubuntu1.5 (package) or 1.43.0-1ubuntu0.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 22.04 LTSlibuv1pkg:deb/ubuntu/libuv1?arch=source&distro=jammyOther threatsAffected
  • <1.43.0-1ubuntu0.1
Fixed in
  • 1.43.0-1ubuntu0.1
Ubuntu 20.04 LTSlibuv1pkg:deb/ubuntu/libuv1?arch=source&distro=focalOther threatsAffected
  • <1.34.2-1ubuntu1.5
Fixed in
  • 1.34.2-1ubuntu1.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…