cve.bz

CVE-2022-45047 apache sshd: Deserialization of Untrusted Data

9.8 criticalEPSS 4.7%Fix available

Critical (9.8) in apache sshd. EPSS 4.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.sshd:sshd-common 2.9.2.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.7% (unchanged from 4.7% a week ago; 3.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2026-05-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-45047 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-45047?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-45047?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-45047 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache MINA SSHDthrough 2.9.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fhw8-8j55-vwgqMavenorg.apache.sshd:sshd-common<2.9.22.9.2
GHSA-fhw8-8j55-vwgqMavenorg.apache.sshd:sshd-core<2.9.22.9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-apache-sshd0:2.9.2-1.redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-elytron-web, eap7-undertow-server0:1.9.3-1.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hal-console0:3.3.16-1.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hibernate-search, eap7-hibernate-search-orm, eap7-hibernate-search-engine and 3 more0:5.10.13-3.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.5.10-1.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jackson-core, eap7-jackson-databind, eap7-jackson-jaxrs-base and 8 more0:2.12.7-1.redhat_00003.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-javaee-security-soteria, eap7-javaee-security-soteria-enterprise0:1.0.1-3.redhat_00003.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-ejb-client0:4.0.49-1.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-jsf-api_2.3_spec0:3.0.0-6.SP07_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-jsp-api_2.3_spec0:2.0.0-3.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-remoting0:5.0.27-1.Final_redhat_00001.1.el7eapRHSA-2023:0552
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core0:1.10.0-24.Final_redhat_00023.1.el7eapRHSA-2023:0552
67 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 9 moreapache-sshd2.12.0-150200.5.8.1SUSE-SU-2024:0224-1
openSUSELeap 15.5apache-parent31-150200.3.12.1SUSE-SU-2024:0224-1
openSUSELeap 15.5apache-sshd2.12.0-150200.5.8.1SUSE-SU-2024:0224-1
openSUSETumbleweedapache-sshd2.9.2-1.1openSUSE-SU-2024:12511-1

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Impact as High as there's a mitigation for minimizing the impact which the flaw requires org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider to be impacted, which would require an external/public API for an attacker to benefit from it.

Red Hat Fuse 7 and Red Hat JBoss Enterprise Application Platform 7 have a lower rate (moderate) as it's very unlikely to be exploited since those are for internal usage or use a custom implementation in their case.

Red Hat's mitigation

From the maintainer:

For Apache MINA SSHD <= 2.9.1, do not use org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider to generate and later load your server's host key. Use separately generated host key files, for instance in OpenSSH format, and load them via a org.apache.sshd.common.keyprovider.FileKeyPairProvider instead. Or use a custom implementation instead of

SimpleGeneratorHostKeyProvider that uses the OpenSSH format for storing and loading the host key (via classes OpenSSHKeyPairResourceWriter and OpenSSHKeyPairResourceParser).

ProductPackageStateAdvisory
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1675702407-1.el8Fixed 2023-03-06RHSA-2023:1064
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1683009941-1.el8Fixed 2023-05-17RHSA-2023:3198
Red Hat build of QuarkusFixed 2023-02-14RHSA-2023:0758
Red Hat build of Quarkus Platform 2.7.6.SP3sshd-commonFixed 2022-12-13RHSA-2022:8957
Red Hat Data Grid 8.4.1mina-sshdFixed 2023-02-09RHSA-2023:0713
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-apache-cxf-0:3.1.16-4.redhat_00003.1.ep7.el7Fixed 2025-02-24RHSA-2025:1746
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jackson-databind-0:2.8.11.6-2.SP1_redhat_00002.1.ep7.el7Fixed 2025-02-24RHSA-2025:1746
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jettison-0:1.3.8-2.redhat_00002.1.ep7.el7Fixed 2025-02-24RHSA-2025:1746
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-netty-0:4.1.63-1.Final_redhat_00002.1.ep7.el7Fixed 2025-02-24RHSA-2025:1746
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-resteasy-0:3.0.27-1.Final_redhat_00001.1.ep7.el7Fixed 2025-02-24RHSA-2025:1746
Migration Toolkit for Applications 6mina-sshdAffected
Migration Toolkit for Runtimesmina-sshdAffected
Red Hat AMQ Broker 7sshd-commonNot affected
Red Hat build of Apache Camel for Spring Boot 3sshd-commonNot affected
Red Hat Fuse 7sshd-commonAffected
Red Hat Integration Camel K 1sshd-commonNot affected
Red Hat Integration Camel Quarkus 1sshd-commonAffected
Red Hat JBoss Data Grid 7mina-sshdOut of support scope
Red Hat JBoss Enterprise Application Platform 6keycloak-adapter-sso7_5-eap6Out of support scope
Red Hat JBoss Enterprise Application Platform 6sshd-commonOut of support scope
36 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-45047.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON