Loading...
Skip to main content

CVE-2022-45047 — Unsafe deserialization in...

CRITICAL

Unsafe deserialization in Apache MINA SSHD

Published November 16, 2022Updated February 16, 2024Source: osv

Summary

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](https://github.com/apache/mina-sshd/commit/10de190e7d3f9189deb76b8d08c72334a1fe2df0) where the code was moved to the package `org.apache.sshd:sshd-common`, which did not exist until version 2.1.0.

Advisory Timeline

  • First published November 16, 2022 (1426 days ago).
  • Last revised February 16, 2024 — 457 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.sshd:sshd-core to 2.9.2 or later
<!-- Update pom.xml dependency version to 2.9.2 for org.apache.sshd:sshd-core -->
Maven
Update org.apache.sshd:sshd-common to 2.9.2 or later
<!-- Update pom.xml dependency version to 2.9.2 for org.apache.sshd:sshd-common -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: maven (2).

PackageEcosystemAffectedFixed In
org.apache.sshd:sshd-core
maven
0.1.0, 0.10.0, 0.10.1, 0.11.0 (+32 more)2.9.2
org.apache.sshd:sshd-common
maven
2.1.0, 2.2.0, 2.3.0, 2.4.0 (+7 more)2.9.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2022-45047?
Unsafe deserialization in Apache MINA SSHD This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2022-45047?
CVE-2022-45047 affects org.apache.sshd:sshd-core and org.apache.sshd:sshd-common. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-45047 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-fhw8-8j55-vwgq

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies