Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2022-45047 EUVD-2022-7328GHSA-fhw8-8j55-vwgq

Apache MINA SSHD: Java unsafe deserialization vulnerability

Published Nov 16, 2022 · Updated May 1, 2026 · Assigned by apache

Description

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache MINA SSHD unspecified – ≤ 2.9.1 —

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.

ReleasePackageFixed inAdvisory
Red Hat Rhev Manager 4 apache-sshd +1 1:2.9.2-0.1.el8ev RHSA-2023:0074
Red Hat Rhev Manager 4 ovirt-engine-ui-extensions 1.3.7-1.el8ev RHSA-2023:0074
Red Hat Rhev Hypervisor 4 vdsm +18 4.50.3.6-1.el8ev RHSA-2023:0074
Red Hat Single Sign On 7 rh-sso7-keycloak +1 18.0.6-1.redhat_00001.1.el7sso RHSA-2023:1045, RHSA-2023:1044, RHSA-2023:1043
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 jenkins 2.361.1.1675668150-1.el8 RHSA-2023:0777
Red Hat OpenShift 4 jenkins-2-plugins 4.9.1675668922-1.el8 RHSA-2023:0777, RHSA-2023:0560
Red Hat Ocp Tools 4 jenkins 2.387.1.1683009763-3.el8 RHSA-2023:3198
Red Hat Ocp Tools 4 jenkins-2-plugins 4.11.1683009941-1.el8 RHSA-2023:3198, RHSA-2023:1064
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-apache-cxf +3 3.1.16-4.redhat_00003.1.ep7.el7 RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-hal-console 3.2.17-1.Final_redhat_00001.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-core +7 2.10.4-2.redhat_00004.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-databind 2.8.11.6-2.SP1_redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-modules-base +1 2.10.4-4.redhat_00004.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jettison 1.3.8-2.redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-netty +1 4.1.63-1.Final_redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-resteasy +16 3.0.27-1.Final_redhat_00001.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-resteasy-rxjava2 +2 3.11.6-1.Final_redhat_00001.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-snakeyaml 1.33.0-1.SP1_redhat_00001.1.el7eap RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-velocity 1.7.0-3.redhat_00006.1.ep7.el7 RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.9-2.GA_redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly-javadocs +2 7.3.12-3.GA_redhat_00002.1.el7eap RHSA-2025:1747
Red Hat JBoss EAP 7 eap7-apache-sshd 2.9.2-1.redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-elytron-web +1 1.9.3-1.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-hal-console 3.3.16-1.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-hibernate-search +5 5.10.13-3.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-ironjacamar +8 1.5.10-1.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jackson-core +10 2.12.7-1.redhat_00003.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-javaee-security-soteria +1 1.0.1-3.redhat_00003.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jboss-ejb-client 4.0.49-1.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jboss-jsf-api_2.3_spec 3.0.0-6.SP07_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jboss-jsp-api_2.3_spec 2.0.0-3.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jboss-remoting 5.0.27-1.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jboss-server-migration +2 1.10.0-24.Final_redhat_00023.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-jettison 1.5.2-1.redhat_00002.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-undertow 2.2.22-1.SP3_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-wildfly +4 7.4.9-4.GA_redhat_00003.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-wildfly-elytron +1 1.15.16-1.Final_redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
Red Hat JBoss EAP 7 eap7-woodstox-core 6.4.0-1.redhat_00001.1.el7eap RHSA-2023:0554, RHSA-2023:0553, RHSA-2023:0552
ReleasePackageFixed inAdvisory
SLES 15 SP5 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLES 15 SP4 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLES 15 SP3 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLES 15 SP2 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLES for SAP 15 SP3 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLES for SAP 15 SP2 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLE HPC 15 SP4 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLE HPC 15 SP3 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SLE HPC 15 SP2 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
SUSE Enterprise Storage 7.1 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache-sshd 2.9.2-1.1 openSUSE-SU-2024:12511-1
openSUSE Leap 15.5 apache-parent 31-150200.3.12.1 SUSE-SU-2024:0224-1
openSUSE Leap 15.5 apache-sshd 2.12.0-150200.5.8.1 SUSE-SU-2024:0224-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.sshd:sshd-common < 2.9.2 2.9.2 GHSA-fhw8-8j55-vwgq
Maven org.apache.sshd:sshd-core < 2.9.2 2.9.2 GHSA-fhw8-8j55-vwgq

Advisories 31

References