🔍 CVE-2021-32489

4.4
CVSS Score
MEDIUM
2021-05-10
2026-06-17 03:53
✅ 완료

🇰🇷 한글 설명

Yubico yubihsm-shell 2.0.3 이하 버전의 _send_secure_msg() 함수에서 인증된 메시지의 길이 필드를 올바르게 검증하지 않는 문제가 발견되었습니다. 이로 인해 정수 오버플로가 발생하여 OpenSSL의 CRYPTO_cbc128_decrypt 함수가 작은 버퍼를 참조하게 되고, 결과적으로 세그멘테이션 결함(Segmentation Fault)이 발생할 수 있습니다.

💡 쉬운 설명

보안 장비와 통신할 때 데이터의 길이를 잘못 계산하여 프로그램이 갑자기 종료될 수 있는 오류입니다. 공격자가 조작된 데이터를 보내면 프로그램이 비정상적으로 작동하게 만들 수 있습니다.

🇺🇸 원문 (English)

An issue was discovered in the _send_secure_msg() function of Yubico yubihsm-shell through 2.0.3. The function does not correctly validate the embedded length field of an authenticated message received from the device because response_msg.st.len=8 can be accepted but triggers an integer overflow, which causes CRYPTO_cbc128_decrypt (in OpenSSL) to encounter an undersized buffer and experience a segmentation fault. The yubihsm-shell project is included in the YubiHSM 2 SDK product.

📍 영향받는 시스템

YubiHSM 2 SDK에 포함된 yubihsm-shell 2.0.3 이하 버전

⚔️ 공격 벡터

장치로부터 조작된 길이 필드가 포함된 인증 메시지를 수신하여 정수 오버플로 유도

🛡️ 대응 방법

Yubico에서 제공하는 최신 버전의 YubiHSM 2 SDK로 업데이트

🔧 검증 코드

출력된 버전이 2.0.3 이하인지 확인하여 취약 여부를 판단합니다.

Shell / Script
yubihsm-shell --version 2>/dev/null || echo 'Not installed'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

OpenSSL