Apache MINA SSHD: Java unsafe deserialization vulnerability
CVE-2022-45047

Patch nowFull system takeover over the network, no login needed.
9.8CRITICAL

Key Information:

Vendor

Apache

Vendor
CVE Published:
16 November 2022

Badges

πŸ‘Ύ Exploit Exists🟑 Public PoC

Key facts

CVE-2022-45047 is a critical severity (CVSS 9.8) vulnerability in Apache MINA SSHD. It is known to be exploited in the wild. 1 public proof-of-concept exploit is available. Its EPSS score is 3.7%, the estimated probability of exploitation in the next 30 days.

How risky is it?

  • Yes: Works over the network, no login needed
  • Yes: Public exploit code (1 proof-of-concept)
  • Yes: Attacked in the wild
  • No: Not on CISA's exploited list

Our verdict

Patch now

Attackers are using it. Patch or mitigate today.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Apache Mina Sshd. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Look for signs of compromise

It has been exploited in the wild, so check logs on exposed Apache Mina Sshd systems for unusual requests or new processes from before you patched. The 1 public proof-of-concept show what an attack looks like.

4Why it's rated "Patch now"
  • It is being exploited in the wild.
  • Exploit code is public, so attacks are easy to copy.
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2022-45047?

Class org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider in Apache MINA SSHD <= 2.9.1 uses Java deserialization to load a serialized java.security.PrivateKey. The class is one of several implementations that an implementor using Apache MINA SSHD can choose for loading the host keys of an SSH server.

Affected Version(s)

Apache MINA SSHD <= 2.9.1

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

Key Exchange Vulnerability in Apache Tomcat Products by Apache

CVE-2026-133325
ApacheApache TomcatπŸ˜„πŸ‘Ύ9.8CRITICAL

Improper Exception Management in Apache Tomcat Affects Multiple Versions

CVE-2026-116561
ApacheApache TomcatπŸ˜„9.1CRITICAL

Deserialization Vulnerability in Apache Roller Affects Multiple Versions

CVE-2026-129448
ApacheApache RollerπŸ˜„πŸ‘Ύ9.8CRITICAL
View more Apache vulnerabilities...

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • 🟑

    Public PoC available

  • πŸ‘Ύ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for reporting this issue.
.