# CVE-2021-30129: Buffer Overflow in Apache Mina SSHD

Source: https://junglewise.ai/threats/cve-2021-30129-buffer-overflow-in-apache-mina-sshd  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-08-02  
License: CC BY 4.0 with a link back

CVE-2021-30129 · Severity: low · CVSS 3.1 · Published 2021-08-02

Buffer Overflow in Apache Mina SSHD

Technologies: [org.apache.sshd:sshd-core (Maven)](https://junglewise.ai/threats/technologies/org-apache-sshd-sshd-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-30129 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-30129 being exploited in the wild.

**How severe is CVE-2021-30129?** Low severity, with a CVSS score of 3.1, published 2 August 2021.

**Which products and versions are affected?** org.apache.sshd:sshd-core (Maven) ECOSYSTEM:introduced=2.0.0,fixed=2.7.0; org.apache.sshd:sshd-mina (Maven) ECOSYSTEM:introduced=2.0.0,fixed=2.7.0.

**Is there a fix for CVE-2021-30129?** Yes. org.apache.sshd:sshd-core (Maven): upgrade to 2.7.0 or later; org.apache.sshd:sshd-mina (Maven): upgrade to 2.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-30129?** Check whether you run org.apache.sshd:sshd-core (Maven) or org.apache.sshd:sshd-mina (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.sshd:sshd-core (Maven): upgrade to 2.7.0 or later

  ```sh
  # set org.apache.sshd:sshd-core to 2.7.0 in your pom.xml or build.gradle
  ```

- org.apache.sshd:sshd-mina (Maven): upgrade to 2.7.0 or later

  ```sh
  # set org.apache.sshd:sshd-mina to 2.7.0 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.sshd:sshd-core (Maven) ECOSYSTEM:introduced=2.0.0,fixed=2.7.0
- org.apache.sshd:sshd-mina (Maven) ECOSYSTEM:introduced=2.0.0,fixed=2.7.0

## Identifiers

- CVE-2021-30129
- GHSA-9279-7hph-r3xw

## Related threats

- [Apache MINA SSHD information disclosure vulnerability](https://junglewise.ai/threats/cve-2023-35887-apache-mina-sshd-information-disclosure-vulnerability)
- [Unsafe deserialization in Apache MINA SSHD](https://junglewise.ai/threats/cve-2022-45047-unsafe-deserialization-in-apache-mina-sshd)
