{"id":"CVE-2022-45047","state":"PUBLISHED","title":"Apache MINA SSHD: Java unsafe deserialization vulnerability","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.","publishedAt":"2022-11-16T00:00:00.000Z","updatedAt":"2026-05-01T15:28:31.575Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache MINA SSHD"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache MINA SSHD","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"2.9.1","versionType":"custom"}]}],"references":["https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html","https://security.netapp.com/advisory/ntap-20240216-0008/"],"weaknesses":["CWE-502"],"ingestedAt":"2026-10-29T19:50:51.061Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/45xxx/CVE-2022-45047.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-45047","state":"PUBLISHED","datePublished":"2022-11-16T00:00:00.000Z","dateUpdated":"2026-05-01T15:28:31.575Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2022-11-08T00:00:00.000Z"},"containers":{"cna":{"title":"Apache MINA SSHD: Java unsafe deserialization vulnerability","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache MINA SSHD","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"2.9.1","versionType":"custom"}]}],"references":[{"url":"https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html"},{"url":"https://security.netapp.com/advisory/ntap-20240216-0008/"}],"metrics":[{"other":{"type":"unknown","content":{"other":"important"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-502","type":"CWE","lang":"en","description":"CWE-502 Deserialization of Untrusted Data"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2024-02-16T13:06:09.825Z"},"credits":[{"lang":"en","value":"The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for reporting this issue."}],"x_generator":{"engine":"Vulnogram 0.0.9"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"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)."},{"lang":"en","value":"The issue was fixed in Apache MINA SSHD 2.9.2."}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0008/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T14:01:31.528Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-05-01T03:55:36.395675Z","id":"CVE-2022-45047","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-01T15:28:31.575Z"}}]}}}