🔍 CVE-2024-24806

7.3
CVSS Score
HIGH
2024-02-07
2026-06-17 07:14
✅ 완료

🇰🇷 한글 설명

libuv 라이브러리의 uv_getaddrinfo 함수에서 호스트네임을 256자 이내로 자르는 과정 중 널 종료 문자가 누락되는 취약점이 발견되었습니다. 이로 인해 공격자가 의도하지 않은 IP 주소로 해석되는 특수 호스트네임을 생성할 수 있으며, 이는 SSRF(서버 측 요청 위조) 공격으로 이어질 수 있습니다.

💡 쉬운 설명

이름이 너무 긴 웹사이트 주소를 처리할 때 뒷부분을 잘못 잘라내어, 원래 가려져야 할 내부 네트워크 주소로 접속하게 만드는 보안 구멍입니다. 공격자는 이를 이용해 회사의 내부 시스템에 몰래 접근을 시도할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

libuv 1.48.0 미만 버전

⚔️ 공격 벡터

매우 긴 호스트네임을 입력하여 문자열 절단 시 발생하는 메모리 오류를 이용한 SSRF 공격

🛡️ 대응 방법

libuv를 1.48.0 이상의 최신 버전으로 업그레이드하십시오.

🔧 검증 코드

출력된 버전 번호가 1.48.0보다 낮으면 취약한 상태입니다.

Shell / Script
pkg-config --modversion libuv 2>/dev/null || dpkg -l | grep libuv | awk '{print $3}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

💻 영향받는 소프트웨어

Spring Web Services