🔍 CVE-2021-22947

5.9
CVSS Score
MEDIUM
2021-09-29
2026-10-14 12:17
✅ 완료

🇰🇷 한글 설명

curl 7.20.0 이상 7.78.0 이하 버전에서 STARTTLS를 사용하여 IMAP 또는 POP3 서버에 연결할 때, TLS 보안 업그레이드 전 캐시된 응답을 신뢰하는 취약점이 존재합니다. 공격자는 중간자 공격(MitM)을 통해 TLS 핸드셰이크 이전에 가짜 응답을 주입하여 사용자가 인증되지 않은 데이터를 신뢰하도록 속일 수 있습니다.

💡 쉬운 설명

보안 연결을 시작하기 전에 미리 도착한 가짜 데이터를 프로그램이 진짜 데이터로 착각하는 문제입니다. 해커가 중간에서 가짜 정보를 끼워 넣어 사용자를 속일 수 있습니다.

🇺🇸 원문 (English)

When curl >= 7.20.0 and <= 7.78.0 connects to an IMAP or POP3 server to retrieve data using STARTTLS to upgrade to TLS security, the server can respond and send back multiple responses at once that curl caches. curl would then upgrade to TLS but not flush the in-queue of cached responses but instead continue using and trustingthe responses it got *before* the TLS handshake as if they were authenticated.Using this flaw, it allows a Man-In-The-Middle attacker to first inject the fake responses, then pass-through the TLS traffic from the legitimate server and trick curl into sending data back to the user thinking the attacker's injected data comes from the TLS-protected server.

📍 영향받는 시스템

curl versions 7.20.0 to 7.78.0 (IMAP/POP3 with STARTTLS)

⚔️ 공격 벡터

Man-In-The-Middle (MitM) attack via STARTTLS response injection

🛡️ 대응 방법

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

🔧 검증 코드

출력된 버전 번호가 7.20.0보다 크고 7.78.0보다 작거나 같으면 취약한 상태입니다.

Shell / Script
curl --version | awk '{print $2}'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

curl