{"id":"CVE-2022-45047","published":"2022-11-16T00:00:00Z","modified":"2026-05-01T15:28:31Z","title":"Apache MINA SSHD: Java unsafe deserialization vulnerability","vendor":"Apache","product":"Apache MINA SSHD","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.04733,"percentile":0.92062,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0008/","tags":[]}],"priority":{"score":30.3,"factors":[{"name":"EPSS percentile","points":18.41},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-04-07","earliestUrl":"https://github.com/hktalent/CVE-2022-45047","repos":[{"name":"hktalent/CVE-2022-45047","url":"https://github.com/hktalent/CVE-2022-45047","stars":2,"created":"2023-04-07"}]},"first":{"date":"2023-04-07","source":"PoC-in-GitHub","url":"https://github.com/hktalent/CVE-2022-45047"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache MINA SSHD","versions":[">= unspecified, <= 2.9.1"]}],"workarounds":{"items":["For Apache MINA SSHD <= 2.9.1, do not use org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider to generate and later load your server's host key. Use separately generated host key files, for instance in OpenSSH format, and load them via a org.apache.sshd.common.keyprovider.FileKeyPairProvider instead. Or use a custom implementation instead of SimpleGeneratorHostKeyProvider that uses the OpenSSH format for storing and loading the host key (via classes OpenSSHKeyPairResourceWriter and OpenSSHKeyPairResourceParser).","The issue was fixed in Apache MINA SSHD 2.9.2."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-01T03:55:36.395675Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.sshd:sshd-common","vulnerableRanges":["<2.9.2"],"patched":["2.9.2"],"from":["GHSA-fhw8-8j55-vwgq"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.sshd:sshd-core","vulnerableRanges":["<2.9.2"],"patched":["2.9.2"],"from":["GHSA-fhw8-8j55-vwgq"],"provenance":"source"}],"summary":{"text":"The flaw is an unsafe Java deserialization issue in the SimpleGeneratorHostKeyProvider class of Apache MINA SSHD, which loads a serialized java.security.PrivateKey to supply an SSH server's host keys. The class is one of several host key provider options that an implementor can select, so exposure depends on that choice. An attacker with network access can exploit this without authentication or user interaction, by supplying crafted serialized data that the affected provider deserializes. This requires that the server be configured to use this particular host key provider.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:34:13Z"},"euvd":{"id":"EUVD-2022-7328","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-35887","published":"2023-07-10","fixed":"2.1.0","kev":false,"link":{"from":"CVE-2022-45047","to":"CVE-2023-35887","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.sshd:sshd-common","fromFixed":"2.9.2","toFixed":"2.9.3","daysApart":236}]}},{"cve":"CVE-2021-30129","published":"2021-07-12","fixed":"2.7.0","kev":false,"link":{"from":"CVE-2021-30129","to":"CVE-2022-45047","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.sshd:sshd-core","fromFixed":"2.7.0","toFixed":"2.9.2","daysApart":492}]}},{"cve":"CVE-2022-45047","published":"2022-11-16","fixed":"2.9.2","kev":false}],"package":"Maven:org.apache.sshd:sshd-core"}}