Description
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
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Mina SSHD | 2.0.0 – < Apache Mina SSHD* | Apache Mina SSHD* |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat JBoss EAP 7 | eap7-apache-sshd | 2.7.0-1.redhat_00001.1.el7eap | RHSA-2021:4677, RHSA-2021:4676 |
| Red Hat JBoss EAP 7 | eap7-jsoup | 1.14.2-1.redhat_00002.1.el7eap | RHSA-2021:4677, RHSA-2021:4676 |
| Red Hat JBoss EAP 7 | eap7-resteasy +18 | 3.15.2-1.Final_redhat_00001.1.el7eap | RHSA-2021:4677, RHSA-2021:4676 |
| Red Hat JBoss EAP 7 | eap7-undertow | 2.2.12-2.Final_redhat_00001.1.el7eap | RHSA-2021:4677, RHSA-2021:4676 |
| Red Hat JBoss EAP 7 | eap7-wildfly +4 | 7.4.2-2.GA_redhat_00002.1.el7eap | RHSA-2021:4677, RHSA-2021:4676 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.sshd:sshd-core | >= 2.0.0, < 2.7.0 | 2.7.0 | GHSA-9279-7hph-r3xw |
| Maven | org.apache.sshd:sshd-mina | >= 2.0.0, < 2.7.0 | 2.7.0 | GHSA-9279-7hph-r3xw |
Advisories 6
- RHSA-2021:4677 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.2 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- RHSA-2021:4676 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.2 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 13, 2026
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- WID-SEC-2022-0726 Red Hat JBoss Enterprise Application Platform: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Jun 24, 2025
- WID-SEC-2024-2180 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 18, 2024
- WID-SEC-2023-1034 Oracle JD Edwards: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 18, 2023
References
- https://lists.apache.org/thread.html/r6d4f78e192a0c8eabd671a018da464024642980ecd24096bde6db36f%40%3Cusers.mina.apache.org%3E
- [announce] 20210712 CVE-2021-30129: DoS/OOM leak vulnerability in Apache Mina SSHD Server mailing-list
- [oss-security] 20210712 CVE-2021-30129: DoS/OOM leak vulnerability in Apache Mina SSHD Server mailing-list
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html