{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0.12.0"
              },
              {
                "last_affected": "0.12.0"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "50313883f3a077458cde4ea95bf46bfeb0771b34"
            },
            {
              "last_affected": "50313883f3a077458cde4ea95bf46bfeb0771b34"
            }
          ],
          "repo": "https://gitlab.com/libssh/libssh-mirror",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.12.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59842.json"
  },
  "details": "A flaw was found in libssh. During server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than the expected length is copied without proper length validation, leading to an out-of-bounds heap read. This could allow a remote unauthenticated attacker to disclose small amounts of server memory.",
  "id": "CVE-2026-59842",
  "modified": "2026-09-24T03:30:27.695064129Z",
  "published": "2026-07-21T11:08:30.540Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "WEB",
      "url": "https://catalog.redhat.com/software/containers/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:42922"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:55855"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-59842"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59842.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59842"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2498168"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Libssh: libssh: information disclosure via short gssapi curve25519 public key"
}