{"id":"CVE-2022-45047","aliases":["CVE-2022-45047","GHSA-fhw8-8j55-vwgq"],"related":[],"kind":"vulnerability","state":"published","title":"Apache MINA SSHD: Java unsafe deserialization vulnerability","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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.\n\nUntil 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La clase org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider en Apache MINA SSHD anteriore a la versión 2.9.1 usa la deserialización de Java para cargar una java.security.PrivateKey serializada. La clase es una de varias implementaciones que un implementador que usa Apache MINA SSHD puede elegir para cargar las claves de host de un servidor SSH.","source":"nvd"}],"published":"2022-11-16T00:00:00.000Z","modified":"2026-06-17T05:09:14.953Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.9.1","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache MINA SSHD","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.2"}],"ecosystem":"Maven","package":"org.apache.sshd:sshd-common","purl":"pkg:maven/org.apache.sshd/sshd-common","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.2"}],"ecosystem":"Maven","package":"org.apache.sshd:sshd-core","purl":"pkg:maven/org.apache.sshd/sshd-core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.9.1"}],"vendor":"apache","product":"sshd","cpe":"cpe:2.3:a:apache:sshd:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0008/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45047","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/mina-sshd/commit/03238d51586f6b3c0bdbb1a23cf16799344d6c32","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/mina-sshd/commit/10de190e7d3f9189deb76b8d08c72334a1fe2df0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/mina-sshd/commit/5a8fe830b2a2308a2b24ac8115a391af477f64f5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/mina-sshd","tags":["package"],"sources":["ghsa"]},{"url":"https://www.mail-archive.com/dev@mina.apache.org/msg39312.html","tags":["web"],"sources":["ghsa"]}],"credits":["The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for reporting this issue."],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-05-01T03:55:36.395Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-45047","url":"https://www.cve.org/CVERecord?id=CVE-2022-45047","licence":"CVE Terms of Use","modified":"2026-05-01T15:28:31.575Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fhw8-8j55-vwgq","url":"https://github.com/advisories/GHSA-fhw8-8j55-vwgq","licence":"CC-BY-4.0","modified":"2024-02-16T08:13:30.681Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-45047","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45047","licence":"Public domain","modified":"2026-06-17T05:09:14.953Z"}],"updatedAt":"2026-11-25T22:58:16.552Z","epss":{"score":0.03712,"percentile":0.90561,"date":"2026-11-30T12:00:22.000Z"}}