🔍 CVE-2022-38152

7.5
CVSS Score
HIGH
2022-08-31
2026-06-17 04:56
✅ 완료

🇰🇷 한글 설명

wolfSSL 5.5.0 이전 버전에서 TLS 1.3 세션 재개(Resumption) 시 발생하는 세그멘테이션 결함입니다. 서버가 권장되지 않는 wolfSSL_clear 함수를 사용하여 세션 구조체를 재사용할 경우, 다음 Client Hello 메시지를 처리하는 과정에서 서버가 충돌하며 중단됩니다.

💡 쉬운 설명

서버가 이전에 사용했던 통신 연결 정보를 잘못된 방식으로 정리하고 다시 사용하려고 할 때 발생하는 오류입니다. 공격자가 특정 방식으로 연결을 다시 시도하면 서버 프로그램이 갑자기 꺼질 수 있습니다.

🇺🇸 원문 (English)

An issue was discovered in wolfSSL before 5.5.0. When a TLS 1.3 client connects to a wolfSSL server and SSL_clear is called on its session, the server crashes with a segmentation fault. This occurs in the second session, which is created through TLS session resumption and reuses the initial struct WOLFSSL. If the server reuses the previous session structure (struct WOLFSSL) by calling wolfSSL_clear(WOLFSSL* ssl) on it, the next received Client Hello (that resumes the previous session) crashes the server. Note that this bug is only triggered when resuming sessions using TLS session resumption. Only servers that use wolfSSL_clear instead of the recommended SSL_free; SSL_new sequence are affected. Furthermore, wolfSSL_clear is part of wolfSSL's compatibility layer and is not enabled by default. It is not part of wolfSSL's native API.

📍 영향받는 시스템

wolfSSL 5.5.0 미만 버전 중 wolfSSL_clear 호환성 레이어를 사용하는 서버

⚔️ 공격 벡터

TLS 1.3 세션 재개를 시도하는 Client Hello 메시지를 전송하여 서버의 세그멘테이션 결함 유도

🛡️ 대응 방법

wolfSSL을 5.5.0 이상 버전으로 업데이트하거나, wolfSSL_clear 대신 SSL_free와 SSL_new를 사용하는 방식으로 코드를 수정하십시오.

🔧 검증 코드

명령어 결과에 5.0.x부터 5.4.x 사이의 버전이 출력되면 취약한 버전일 가능성이 높습니다.

Shell / Script
wolfssl_version_check=$(wolfssl_version 2>/dev/null || echo 'unknown'); echo $wolfssl_version_check | grep -E '5\.[0-4]\.'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

wolfSSL