CVE-2024-41909:
Apache MINA SSHD: integrity check bypass
5.9
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
8/12/2024
Updated
8/12/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.sshd:sshd-common | maven | < 2.12.0 | 2.12.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper validation of message integrity during key exchange (CWE-354). The Terrapin attack exploits two gaps: 1) allowing non-KEX_INIT messages during initial key exchange, and 2) not resetting sequence numbers properly. The commits show added strict KEX validation in AbstractSession (6b0fd46) and message handling tests (315739e). The handleMessage function would have previously processed messages without strict sequence validation, while resetSequenceNumbers didn't properly maintain counter integrity. These functions are central to the KEX message flow and were explicitly modified in the patch to add strict validation checks.