CVE-2021-30129: Buffer Overflow in Apache Mina SSHD
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45694%
CWE
Published
8/2/2021
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.sshd:sshd-mina | maven | >= 2.0.0, < 2.7.0 | 2.7.0 |
org.apache.sshd:sshd-core | maven | >= 2.0.0, < 2.7.0 | 2.7.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability stems from BufferedIoOutputStream
's write()
implementation lacking proper bounds checking, as explicitly described in SSHD-1125
. The JIRA ticket details that data could be written without respecting the max window size, allowing memory exhaustion. While BufferManager
is not directly patched, it's involved in buffer allocation patterns for SFTP/port
forwarding features mentioned in vulnerability descriptions. The high confidence on BufferedIoOutputStream.write
comes from direct JIRA ticket documentation of the fix, while BufferManager.getBuffer
is inferred from architectural patterns with medium confidence.