{"api_version":"1","generated_at":"2026-04-22T19:18:04+00:00","cve":"CVE-2022-45047","urls":{"html":"https://cve.report/CVE-2022-45047","api":"https://cve.report/api/cve/CVE-2022-45047.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-45047","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-45047"},"summary":{"title":"CVE-2022-45047","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.","state":"PUBLIC","assigner":"security@apache.org","published_at":"2022-11-16 09:15:00","updated_at":"2023-11-07 03:54:00"},"problem_types":["CWE-502"],"metrics":[],"references":[{"url":"https://www.mail-archive.com/dev@mina.apache.org/msg39312.html","name":"N/A","refsource":"CONFIRM","tags":[],"title":"CVE-2022-45047: Apache MINA SSHD: Java unsafe deserialization vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html","name":"https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html","refsource":"","tags":[],"title":"CVE-2022-45047: Apache MINA SSHD: Java unsafe deserialization vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-45047","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45047","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for reporting this issue.","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"45047","vulnerable":"1","versionEndIncluding":"2.9.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"sshd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-45047","qid":"20317","title":"Oracle Database 21c Critical Patch Update - January 2023"},{"cve":"CVE-2022-45047","qid":"20318","title":"Oracle Database 19c Critical Patch Update - January 2023"},{"cve":"CVE-2022-45047","qid":"20319","title":"Oracle Database 19c Critical OJVM Patch Update - January 2023"},{"cve":"CVE-2022-45047","qid":"241153","title":"Red Hat Update for JBoss Enterprise Application Platform 7.4.9 (RHSA-2023:0554)"},{"cve":"CVE-2022-45047","qid":"241154","title":"Red Hat Update for JBoss Enterprise Application Platform 7.4.9 (RHSA-2023:0552)"},{"cve":"CVE-2022-45047","qid":"241155","title":"Red Hat Update for JBoss Enterprise Application Platform 7.4.9 (RHSA-2023:0553)"},{"cve":"CVE-2022-45047","qid":"241180","title":"Red Hat OpenShift Container Platform 4.10 Security Update (RHSA-2023:0560)"},{"cve":"CVE-2022-45047","qid":"241214","title":"Red Hat OpenShift Container Platform 4.9 Security Update (RHSA-2023:0777)"},{"cve":"CVE-2022-45047","qid":"377908","title":"Oracle Coherence January 2023 Critical Patch Update (CPUJAN2023)"},{"cve":"CVE-2022-45047","qid":"378427","title":"Oracle PeopleSoft Enterprise PeopleTools Product Multiple Vulnerabilities (CPUAPR2023)"},{"cve":"CVE-2022-45047","qid":"755655","title":"SUSE Enterprise Linux Security Update for apache-parent, apache-sshd (SUSE-SU-2024:0224-1)"},{"cve":"CVE-2022-45047","qid":"770173","title":"Red Hat OpenShift Container Platform 4.10 Security Update (RHSA-2023:0560)"},{"cve":"CVE-2022-45047","qid":"770178","title":"Red Hat OpenShift Container Platform 4.9. Security Update (RHSA-2023:0777)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2022-45047","STATE":"PUBLIC","TITLE":"Apache MINA SSHD: Java unsafe deserialization vulnerability"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache MINA SSHD","version":{"version_data":[{"version_affected":"<=","version_value":"2.9.1"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for reporting this issue."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{"other":"important"}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-502 Deserialization of Untrusted Data"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://www.mail-archive.com/dev@mina.apache.org/msg39312.html","name":"https://www.mail-archive.com/dev@mina.apache.org/msg39312.html"}]},"source":{"discovery":"UNKNOWN"},"work_around":[{"lang":"eng","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":"eng","value":"The issue was fixed in Apache MINA SSHD 2.9.2. "}]},"nvd":{"publishedDate":"2022-11-16 09:15:00","lastModifiedDate":"2023-11-07 03:54:00","problem_types":["CWE-502"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:sshd:*:*:*:*:*:*:*:*","versionEndIncluding":"2.9.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}