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)
| Artifact | Affected versions | Fixed 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
57% of the dependent artifacts (3,113) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.maven.plugins » maven-release-plugin29,116 usages
- org.apache.maven.plugins » maven-scm-plugin1,577 usages
- org.apache.karaf.tooling » karaf-maven-plugin798 usages
- org.apache.maven.plugins » maven-scm-publish-plugin719 usages
- org.pitest » pitest-maven685 usages
- io.fabric8 » fabric8-maven-plugin676 usages
- org.apache.karaf.shell » org.apache.karaf.shell.console623 usages
- org.apache.sshd » sshd-core604 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.wildfly.core » wildfly-server477 usages
- org.wildfly.plugins » wildfly-maven-plugin430 usages
- org.wildfly.core » wildfly-controller406 usages
- org.mule.tests » mule-tests-functional390 usages
- com.amashchenko.maven.plugin » gitflow-maven-plugin377 usages
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.
References
| Advisory | NVD CVE-2022-45047 | nvd.nist.gov |
| Package | apache/mina-sshd | github.com |
| Web | apache/mina-sshd commit 03238d5 | github.com |
| Web | apache/mina-sshd commit 10de190 | github.com |
| Web | apache/mina-sshd commit 5a8fe83 | github.com |
| Web | dev@mina.apache.org/msg39312.html | mail-archive.com |
