Arbitrary object instantiation via host-key deserialization
Published Nov 16, 2022 · Updated May 1, 2026
Unsafe deserialization in Apache MINA SSHD 2.9.1 and earlier allows attackers to instantiate classes through a crafted host-key file. SimpleGeneratorHostKeyProvider passes the file stream to ObjectInputStream.readObject without restricting resolved classes, then casts the result to KeyPair. Exposure requires an application to select this optional provider and load an attacker-influenced host-key file; downstream effects depend on classes available to the application.
Summary
What happened
Unsafe deserialization in Apache MINA SSHD 2.9.1 and earlier allows attackers to instantiate classes through a crafted host-key file. SimpleGeneratorHostKeyProvider passes the file stream to ObjectInputStream.readObject without restricting resolved classes, then casts the result to KeyPair. Exposure requires an application to select this optional provider and load an attacker-influenced host-key file; downstream effects depend on classes available to the application.
The record
- CVE
- CVE-2022-45047
- Published
- Nov 16, 2022
- Updated
- May 1, 2026
- Vendor
- The Apache Software Foundation
- Product
- Apache MINA SSHD
- Classifications
- CWE-502
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 16, 2022CVE publishedPublication date reported by the CVE source.
- May 1, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <=2.9.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo