CRITICAL 9.8

CVE-2022-45047

Unsafe deserialization in Apache MINA SSHD

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.

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.sshd » sshd-common
< 2.9.2
2.9.2
org.apache.sshd » sshd-core
< 2.9.2
2.9.2

Blast radius

2affected artifacts
81affected versions
5,417dependent artifacts (est.)
398,814dependent versions

57% of the dependent artifacts (3,113) still pull an affected version in their latest release.

DepthDependent versions
Direct
26,445
2 hops
141,026
3 hops
123,036
4 hops
66,402
5 hops
30,091
6 hops
11,814

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.