UBUNTU-CVE-2024-24806

See a problem?
Source
https://ubuntu.com/security/notices/UBUNTU-CVE-2024-24806
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-24806.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-24806
Related
Published
2024-02-07T22:15:00Z
Modified
2024-02-07T22:15:00Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
[none]
Details

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

Affected packages

Ubuntu:20.04:LTS / libuv1

Package

Name
libuv1
Purl
pkg:deb/ubuntu/libuv1@1.34.2-1ubuntu1.5?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.34.2-1ubuntu1.5

Affected versions

1.*

1.30.1-1
1.33.1-2
1.33.1-2ubuntu2
1.33.1-3ubuntu1
1.34.2-1ubuntu1
1.34.2-1ubuntu1.1
1.34.2-1ubuntu1.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "libuv1": "1.34.2-1ubuntu1.5",
            "libuv1-dev": "1.34.2-1ubuntu1.5",
            "libuv1-dbgsym": "1.34.2-1ubuntu1.5"
        }
    ]
}

Ubuntu:22.04:LTS / libuv1

Package

Name
libuv1
Purl
pkg:deb/ubuntu/libuv1@1.43.0-1ubuntu0.1?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.43.0-1ubuntu0.1

Affected versions

1.*

1.40.0-2ubuntu1
1.42.0-1
1.43.0-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "libuv1": "1.43.0-1ubuntu0.1",
            "libuv1-dev": "1.43.0-1ubuntu0.1",
            "libuv1-dbgsym": "1.43.0-1ubuntu0.1"
        }
    ]
}

Ubuntu:24.04:LTS / libuv1

Package

Name
libuv1
Purl
pkg:deb/ubuntu/libuv1@1.48.0-1?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.48.0-1

Affected versions

1.*

1.44.2-1
1.46.0-2ubuntu1
1.46.0-3
1.46.0-3ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "libuv1": "1.48.0-1",
            "libuv1-dev": "1.48.0-1",
            "libuv1-dbgsym": "1.48.0-1"
        }
    ]
}