🔍 CVE-2026-84897

5.3
CVSS Score
MEDIUM
2026-10-07
2026-10-13 14:27
✅ 완료

🇰🇷 한글 설명

wolfSSL wolfSSH 1.5.0 버전에서 인증되지 않은 클라이언트가 서버로 특정 Diffie-Hellman 그룹 교환 메시지를 보낼 때 발생하는 취약점입니다. 서버가 메시지 방향 검증을 제대로 수행하지 않아 공격자가 제공한 그룹 정보를 처리하게 되며, 이 과정에서 대규모 소수 판별 테스트로 인한 과도한 CPU 자원 소모가 발생할 수 있습니다.

💡 쉬운 설명

해커가 가짜 암호화 정보를 서버에 보내 서버의 계산 능력을 과도하게 사용하게 만드는 공격입니다. 이로 인해 서버의 성능이 급격히 떨어지거나 서비스가 중단될 수 있습니다.

🇺🇸 원문 (English)

src/internal.c in wolfSSL wolfSSH through 1.5.0 admits the server-to-client Diffie-Hellman group exchange messages SSH_MSG_KEX_DH_GEX_GROUP (31) and SSH_MSG_KEX_DH_GEX_REPLY (33) when a server receives them from an unauthenticated client. IsMessageAllowedServer() applies no direction check to the key exchange message range: when the peer is keying and no particular message is expected, which is the state a server is in for the whole window after it processes the client's KEXINIT because nothing sets handshake->expectMsgId there, the function falls out of its expectation branch without a verdict and reaches a numeric bound that admits every message id from 30 through 34. A client that negotiates diffie-hellman-group-exchange-sha256 and then sends message 31 makes the server run the client-side handler DoKexDhGexGroup(), which validates the attacker-supplied group with two 8-round Miller-Rabin primality tests, one on p and one on (p-1)/2, on a value of up to 8192 bits. The handler then returns success: the server stores the attacker's prime and generator, generates a Diffie-Hellman key pair in the attacker's group, and sends the client-role message SSH_MSG_KEX_DH_GEX_INIT (32) back to the attacker. Published RFC 3526 safe primes are the worst-case input and cost the attacker nothing to obtain. The primality validation was added in 1.5.0; versions from 1.2.0 through 1.4.22 admit the same message and enter the same client-role path without the primality cost. Message 33 is admitted as well, but on a server it is rejected before any cryptography because no public key check callback is registered, so it carries no comparable cost. Builds that define WOLFSSH_NO_DH_GEX_SHA256, which is implied by WOLFSSH_NO_DH or NO_SHA256, are unaffected.

📍 영향받는 시스템

wolfSSL wolfSSH 1.5.0 이하 버전 (WOLFSSH_NO_DH_GEX_SHA256 설정 제외)

⚔️ 공격 벡터

인증되지 않은 클라이언트가 조작된 SSH_MSG_KEX_DH_GEX_GROUP 메시지를 서버로 전송

🛡️ 대응 방법

wolfSSH를 최신 보안 패치가 적용된 버전으로 업데이트하거나, WOLFSSH_NO_DH_GEX_SHA256 옵션을 사용하여 해당 기능을 비활성화합니다.

🔧 검증 코드

명령어 결과에 1.5.0 이하의 버전 번호가 나타나면 취약한 버전일 가능성이 높습니다.

Shell / Script
wolfssh -v 2>/dev/null | grep -E '1\.[0-5]\.'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Microsoft Exchange Server