Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-45047: Class org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider in Apache MINA SSHD <= 2.9.1 uses Java

73
This week
CRITICAL 9.8REMOTEWATCHLISTUPGRADE

CVE-2022-45047 is a critical-severity flaw (CVSS 9.8) affecting sshd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • EPSS top 10%: very likely to be exploited
  • CISA SSVC: public proof of concept
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action
  • On your watchlist

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance3.8% (top 10%)
CISA exploited listNo
WeaknessCWE-502
Published2022-11-16
Last modified2026-06-17
Publisher (CNA): Apache Software Foundation · Vendor: apache

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

apache sshd UPGRADE
Affected: <= 2.9.1
Fixed in: newer than 2.9.1
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy sshd || rpm -q sshd || sshd --version
2. UPGRADE to newer than 2.9.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade sshd
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade sshd
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.

Exact fixes by distribution

Maven · org.apache.sshd:sshd-common · FIXED · 2.9.2 · vulnerable: < 2.9.2 · source
Set org.apache.sshd:sshd-common to 2.9.2 or later in pom.xml or build.gradle, then rebuild and redeploy.
Maven · org.apache.sshd:sshd-core · FIXED · 2.9.2 · vulnerable: < 2.1.0 · source
Set org.apache.sshd:sshd-core to 2.9.2 or later in pom.xml or build.gradle, then rebuild and redeploy.
Fedora 46 · keychain · FIXED · 3.0.9-1.fc46 · FEDORA-2026-811029b67c · source
sudo dnf upgrade --advisory=FEDORA-2026-811029b67c
Fedora ELN · sbc · FIXED · 2.2-1.eln159 · FEDORA-2026-c6f672e1ec · source
sudo dnf upgrade --advisory=FEDORA-2026-c6f672e1ec
Debian 13 · libmina-sshd-java · NOT AFFECTED

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-45047?

sshd: upgrade to newer than 2.9.1. Exact commands for each OS are on this page.

Is CVE-2022-45047 being exploited?

CVE-2022-45047 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-45047 affect?

CVE-2022-45047 affects sshd. Severity is critical (CVSS 9.8). 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 us

How urgent is CVE-2022-45047?

Priority 73/100. Critical severity; EPSS top 10%: very likely to be exploited; CISA SSVC: public proof of concept; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist

Software pages

Java vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.