🇰🇷 한글 설명
curl 8.1.0 미만 버전에는 libcurl이 SHA-256 해시로 SSH 서버 공개키를 검증하는 기능에서 use-after-free 취약점이 존재합니다. 검증이 실패하면 libcurl은 지문(fingerprint) 메모리를 해제한 뒤 해제된 해시를 포함한 오류 메시지를 반환하여, 힙 메모리의 민감한 데이터가 사용자에게 노출되거나 유출될 위험이 있습니다.
💡 쉬운 설명
curl 프로그램이 SSH 서버 확인 과정에서 이미 지워진 메모리 내용을 오류 메시지에 포함시킬 수 있습니다. 이 과정에서 메모리에 남아 있던 민감한 정보가 화면이나 로그에 노출될 수 있습니다.
🇺🇸 원문 (English)
A use after free vulnerability exists in curl <v8.1.0 in the way libcurl offers a feature to verify an SSH server's public key using a SHA 256 hash. When this check fails, libcurl would free the memory for the fingerprint before it returns an error message containing the (now freed) hash. This flaw risks inserting sensitive heap-based data into the error message that might be shown to users or otherwise get leaked and revealed.
📍 영향받는 시스템
curl 8.1.0 미만 버전 및 이를 사용하는 libcurl 기반 소프트웨어
⚔️ 공격 벡터
SSH 호스트 키 검증이 실패하도록 유도하여 오류 메시지에 해제된 힙 메모리 데이터가 포함되게 한 뒤, 이를 관찰하여 민감 정보를 획득
🛡️ 대응 방법
curl 및 libcurl을 8.1.0 이상 버전으로 업데이트하고, 배포판의 보안 패치를 적용
🔧 검증 코드
출력된 버전이 8.1.0 미만이면 취약하며, 8.1.0 이상이면 이 CVE에 대한 수정이 적용된 것입니다.
curl --version 2>/dev/null | head -1