CVE-2021-30129 json
DoS/OOM leak vulnerability in Apache Mina SSHD Server
published 2021-07-12 5 y ago modified 2026-06-17 4 mo ago also GHSA-9279-7hph-r3xw , EUVD-2021-1649
- cvss
- 6.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
A vulnerability in sshd-core of Apache Mina SSHD allows an attacker to overflow the server causing an OutOfMemory error. This issue affects the SFTP and port forwarding features of Apache Mina SSHD version 2.0.0 and later versions. It was addressed in Apache Mina SSHD 2.7.0
Patch / fix
- maven org.apache.sshd:sshd-mina 2.7.0
- maven org.apache.sshd:sshd-core 2.7.0
- Apache Software Foundation Apache Mina SSHD 2.7.0
- eap7-jsoup jboss enterprise application platform 7.4 1.14.2-1.redhat_00002.1.el8eap
- eap7-wildfly jboss enterprise application platform 7.4 7.4.2-2.GA_redhat_00002.1.el8eap
- eap7-resteasy jboss enterprise application platform 7.4 3.15.2-1.Final_redhat_00001.1.el8eap
- eap7-undertow jboss enterprise application platform 7.4 2.2.12-2.Final_redhat_00001.1.el8eap
- eap7-apache-sshd jboss enterprise application platform 7.4 2.7.0-1.redhat_00001.1.el8eap
- eap7-resteasy-cdi jboss enterprise application platform 7.4 3.15.2-1.Final_redhat_00001.1.el8eap
- eap7-resteasy-jaxrs jboss enterprise application platform 7.4 3.15.2-1.Final_redhat_00001.1.el8eap
- eap7-resteasy-jsapi jboss enterprise application platform 7.4 3.15.2-1.Final_redhat_00001.1.el8eap
red hat advisories RHSA-2021:4677RHSA-2021:4676
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-30129 updated cvss 6.5
mina-sshd-core: Memory leak denial of service in Apache Mina SSHD Server
-
Red Hat BPM Suite 6 sshd-coreaffected: no fix planned “Out of support scope”
-
Red Hat Integration Camel K 1 sshd-sftp Red Hat Integration Camel Quarkus 1 sshd-sftpaffected: no fix available
-
Red Hat JBoss A-MQ 6 sshd-core Red Hat JBoss BRMS 6 sshd-core Red Hat JBoss Fuse 6 sshd-core Red Hat OpenStack Platform 10 (Newton) opendaylight Red Hat OpenStack Platform 13 (Queens) opendaylightaffected: no fix planned “Out of support scope”
-
Red Hat Fuse 7.10fixed: vendor fix RHSA-2021:5134
-
Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-apache-sshd 2.7.0-1.redhat_00001.1.el7eapfixed: vendor fix RHSA-2021:4676
-
Red Hat JBoss EAP 7.4 for RHEL 8 eap7-apache-sshd 2.7.0-1.redhat_00001.1.el8eapfixed: vendor fix RHSA-2021:4677
-
Red Hat JBoss Enterprise Application Platform sshd-core 2.7.0.redhat-00001fixed: vendor fix RHSA-2021:4679
-
Red Hat RHINT Camel-Q 2.2.1fixed: vendor fix RHSA-2022:1013
show 2 moreshow fewer
-
Red Hat RHPAM 7.13.4 asyncfixed: vendor fix RHSA-2023:4983
-
Red Hat build of Quarkus sshd-common Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-wss4j 2.2.7-1.redhat_00001.1.el7eap, eap7-jsoup 1.14.2-1.redhat_00002.1.el7eap, eap7-jakarta-el 3.0.3-3.redhat_00007.1.el7eap, eap7-wildfly 7.4.2-2.GA_redhat_00002.1.el7eap, eap7-apache-cxf 3.3.12-1.redhat_00001.1.el7eap, eap7-byte-buddy 1.11.12-2.redhat_00002.1.el7eap, +75 more Red Hat JBoss EAP 7.4 for RHEL 8 eap7-wss4j 2.2.7-1.redhat_00001.1.el8eap, eap7-jsoup 1.14.2-1.redhat_00002.1.el8eap, eap7-jakarta-el 3.0.3-3.redhat_00007.1.el8eap, eap7-wildfly 7.4.2-2.GA_redhat_00002.1.el8eap, eap7-apache-cxf 3.3.12-1.redhat_00001.1.el8eap, eap7-byte-buddy 1.11.12-2.redhat_00002.1.el8eap, +73 more Red Hat JBoss Enterprise Application Platform pom.xml, c3 0.6.0, c3 0.7.1, d3 5.9.2, ms 2.0.0, ms 2.1.2, +1445 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.05% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.sshd:sshd-mina | >=2.0.0, <2.7.0 |
2.7.0 |
| maven | org.apache.sshd:sshd-core | >=2.0.0, <2.7.0 |
2.7.0 |
Affected products
- Apache Software Foundation Apache Mina SSHD
Classification
- Weakness
-
- CWE-772 Missing Release of Resource after Effective Lifetime
References
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
lists.apache.org
/thread.html/r6d4f78e192a0c8eabd671a018da464024642980ecd24096bde6db36f%40%3Cusers.mina.apache.org%3E
mailing-list, web, vendor-advisory
-
lists.apache.org
/thread.html/red01829efa2a8c893c4baff4f23c9312bd938543a9b8658e172b853b%40%3Cannounce.apache.org%3E
mailing-list
-
openwall.com
/lists/oss-security/2021/07/12/1
mailing-list, web, third-party-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-30129
advisory
-
issues.apache.org
/jira/browse/SSHD-1125
web
-
lists.apache.org
/thread.html/r6d4f78e192a0c8eabd671a018da464024642980ecd24096bde6db36f@%3Cusers.mina.apache.org%3E
web
-
lists.apache.org
/thread.html/red01829efa2a8c893c4baff4f23c9312bd938543a9b8658e172b853b@%3Cannounce.apache.org%3E
web
Sources
- CVE List CVE-2021-30129
- GitHub Advisory GHSA-9279-7hph-r3xw
- NVD CVE-2021-30129
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.