🇰🇷 한글 설명
curl 7.88.0 미만 버전에서 HTTP 압축 알고리즘의 중첩 처리 방식에 결함이 발견되었습니다. 공격자가 다수의 헤더를 사용하여 무제한에 가까운 압축 단계를 생성할 경우, 과도한 메모리 할당을 유도하는 'malloc bomb' 공격이 가능합니다. 이로 인해 시스템 메모리가 고갈되거나 curl 프로세스가 비정상 종료될 수 있습니다.
💡 쉬운 설명
서버가 데이터를 보낼 때 압축을 여러 번 겹쳐서 보내는 방식으로 컴퓨터의 메모리를 순식간에 바닥나게 만드는 공격입니다. 이 공격을 받으면 프로그램이 멈추거나 컴퓨터가 느려질 수 있습니다.
🇺🇸 원문 (English)
An allocation of resources without limits or throttling vulnerability exists in curl <v7.88.0 based on the "chained" HTTP compression algorithms, meaning that a server response can be compressed multiple times and potentially with differentalgorithms. The number of acceptable "links" in this "decompression chain" wascapped, but the cap was implemented on a per-header basis allowing a maliciousserver to insert a virtually unlimited number of compression steps simply byusing many headers. The use of such a decompression chain could result in a "malloc bomb", making curl end up spending enormous amounts of allocated heap memory, or trying to and returning out of memory errors.
📍 영향받는 시스템
curl versions < v7.88.0
⚔️ 공격 벡터
악의적인 서버가 다수의 HTTP 헤더를 사용하여 무제한적인 압축 체인을 생성하여 응답을 전송함
🛡️ 대응 방법
curl을 v7.88.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 7.88.0보다 낮으면 취약한 상태입니다.
curl --version | grep -E 'curl/[0-9]+\.[0-9]+'