🔍 CVE-2021-20230

7.5
CVSS Score
HIGH
2021-02-23
2026-06-17 03:33
✅ 완료

🇰🇷 한글 설명

stunnel 5.57 미만 버전에서 redirect와 verifyChain 옵션을 동시에 사용할 때 클라이언트 인증서를 부적절하게 검증하는 결함이 발견되었습니다. 이로 인해 공격자가 서버가 허용하지 않는 인증기관(CA)에서 서명된 인증서를 사용하여 리다이렉트되지 않고 튜널링된 서비스에 직접 접근할 수 있으며, 이는 기밀성에 심각한 위협이 됩니다.

💡 쉬운 설명

인증서 검사 과정의 실수로 인해, 허가되지 않은 가짜 신분증을 가진 사람도 보안 통로를 통해 내부 서비스에 몰래 들어올 수 있는 문제입니다. 이로 인해 중요한 데이터가 유출될 위험이 있습니다.

🇺🇸 원문 (English)

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

📍 영향받는 시스템

stunnel 5.57 미만 모든 버전

⚔️ 공격 벡터

서버가 신뢰하지 않는 CA에서 발급된 인증서를 사용하여 튜널링된 서비스에 직접 접속

🛡️ 대응 방법

stunnel을 5.57 이상의 최신 버전으로 업데이트

🔧 검증 코드

명령어 결과에 5.57 미만의 버전 번호가 출력되면 취약한 버전이 설치된 상태입니다.

Shell / Script
stunnel --version 2>/dev/null | grep -E 'stunnel version [0-5]\.[0-5][0-6]'

📊 CVSS Vector String

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