Skip to content
Fencer Vulns
medium 6.5

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-core
    affected: no fix planned “Out of support scope”
  • Red Hat Integration Camel K 1 sshd-sftp Red Hat Integration Camel Quarkus 1 sshd-sftp
    affected: 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) opendaylight
    affected: no fix planned “Out of support scope”
  • Red Hat Fuse 7.10
    fixed: 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.el7eap
    fixed: vendor fix RHSA-2021:4676
  • Red Hat JBoss EAP 7.4 for RHEL 8 eap7-apache-sshd 2.7.0-1.redhat_00001.1.el8eap
    fixed: vendor fix RHSA-2021:4677
  • Red Hat JBoss Enterprise Application Platform sshd-core 2.7.0.redhat-00001
    fixed: vendor fix RHSA-2021:4679
  • Red Hat RHINT Camel-Q 2.2.1
    fixed: vendor fix RHSA-2022:1013
show 2 more
  • Red Hat RHPAM 7.13.4 async
    fixed: 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 more
    not 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

Sources

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.