Skip to content
Heist/ feed
Back to feed
Critical

Apache MINA SSHD: Java unsafe deserialization vulnerability

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-45047
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 18:05 UTC · Revision 1

Source evidence

Apache MINA SSHD: Java unsafe deserialization vulnerability

core-osv · Original source

Published 16 Nov 2022, 00:00 UTC

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.

osv:CVE-2022-45047
Complete source record
{
  "id": "d469b15fecb8036e9835d0face7c20a511beeaba7d5358a7e7a85d5c8a1056c4",
  "url": "https://osv.dev/vulnerability/CVE-2022-45047",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2022-45047",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-45047",
      "aliases": [
        "CVE-2022-45047",
        "GHSA-fhw8-8j55-vwgq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/mina-sshd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "195c5fb45a29ca95d152ea1f659f3711afaa740c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:sshd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.9.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "sshd-2.9.1",
            "sshd-2.9.0",
            "sshd-2.8.0",
            "sshd-2.7.0",
            "sshd-2.6.0",
            "sshd-2.5.1",
            "sshd-2.5.0",
            "sshd-2.4.0",
            "sshd-2.3.0",
            "sshd-2.2.0",
            "sshd-2.1.0",
            "sshd-2.0.0",
            "sshd-1.7.0",
            "sshd-1.6.0",
            "sshd-1.5.0",
            "sshd-1.4.0",
            "sshd-1.3.0",
            "sshd-1.2.0",
            "sshd-1.1.0",
            "sshd-1.0.0",
            "sshd-0.13.0",
            "sshd-0.12.0",
            "sshd-0.11.0",
            "sshd-0.10.1",
            "sshd-0.10.0",
            "sshd-0.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-45047.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.365705750Z",
      "provider": "osv",
      "references": [
        "https://www.mail-archive.com/dev%40mina.apache.org/msg39312.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45047.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-45047",
        "https://security.netapp.com/advisory/ntap-20240216-0008/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.9.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "SplitRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45047.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-45047",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520045,
  "published_at": "2022-11-16T00:00:00+00:00"
}