QID 357297

Date Published: 2024-03-06

QID 357297: Amazon Linux Security Advisory for libuv : ALAS2023-2024-540

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. (
( CVE-2024-24806)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.3 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2024-540 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 357297

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2024-540 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2024-540.html