🔍 CVE-2022-42915

8.1
CVSS Score
HIGH
2022-10-29
2026-10-14 19:16
✅ 완료

🇰🇷 한글 설명

curl 7.77.0부터 7.86.0 미만 버전에서 발생하는 double free 취약점입니다. HTTP 프록시를 사용하는 환경에서 특정 프로토콜(dict, gopher, ldap 등)을 사용할 때 오류 처리 과정의 결함으로 인해 메모리 오류가 발생할 수 있습니다.

💡 쉬운 설명

프로그램이 메모리를 정리하는 과정에서 이미 지운 메모리를 다시 지우려고 시도하여 발생하는 오류입니다. 공격자가 특수한 주소를 이용해 프로그램의 동작을 방해하거나 시스템을 중단시킬 수 있습니다.

🇺🇸 원문 (English)

curl before 7.86.0 has a double free. If curl is told to use an HTTP proxy for a transfer with a non-HTTP(S) URL, it sets up the connection to the remote server by issuing a CONNECT request to the proxy, and then tunnels the rest of the protocol through. An HTTP proxy might refuse this request (HTTP proxies often only allow outgoing connections to specific port numbers, like 443 for HTTPS) and instead return a non-200 status code to the client. Due to flaws in the error/cleanup handling, this could trigger a double free in curl if one of the following schemes were used in the URL for the transfer: dict, gopher, gophers, ldap, ldaps, rtmp, rtmps, or telnet. The earliest affected version is 7.77.0.

📍 영향받는 시스템

curl 7.77.0 ~ 7.86.0 미만 버전

⚔️ 공격 벡터

HTTP 프록시 환경에서 비-HTTP(S) 프로토콜(dict, gopher, ldap 등)을 사용하여 요청을 보낼 때 발생

🛡️ 대응 방법

curl을 7.86.0 이상의 최신 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 7.77.0 이상 7.86.0 미만이면 취약한 상태입니다.

Shell / Script
curl --version | grep -E 'curl/[0-9]+\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

curl