CVE-2022-45047
JSON

9.8critical

Apache MINA SSHD: Java unsafe deserialization vulnerability

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
3.71% (higher than 91% of CVEs)
Published
Last changed
Assigned by
apache
Also known as
GHSA-fhw8-8j55-vwgq

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

Product or packageVersionsReported by
Apache Software Foundation Apache MINA SSHDfrom unspecified up to 2.9.1CVE List
org.apache.sshd:sshd-common (Maven)before 2.9.2GitHub Advisory Database
org.apache.sshd:sshd-core (Maven)before 2.9.2GitHub Advisory Database
apache sshdup to 2.9.1NVD

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Until version 2.1.0, the code affected by this vulnerability appeared in org.apache.sshd:sshd-core. Version 2.1.0 contains a commit where the code was moved to the package org.apache.sshd:sshd-common, which did not exist until version 2.1.0.

NVD (es)

La clase org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider en Apache MINA SSHD anteriore a la versión 2.9.1 usa la deserialización de Java para cargar una java.security.PrivateKey serializada. La clase es una de varias implementaciones que un implementador que usa Apache MINA SSHD puede elegir para cargar las claves de host de un servidor SSH.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-45047 changed 2026-05-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-fhw8-8j55-vwgq changed 2024-02-16CC-BY-4.0
NVDCVE-2022-45047 changed 2026-06-17Public domain