{
  "cveId": "CVE-2025-5987",
  "url": "https://patchblox.com/security/cve/CVE-2025-5987",
  "summary": "CVE-2025-5987 is fixed in 7 products on 1 platform, first by RHSA-2026:0427, released April 26, 2025. It is not reported as exploited. Patch Radar priority: High.",
  "title": "Libssh: invalid return code for chacha20 poly1305 with openssl backend",
  "description": "A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSLlibrary. If an attacker manages to exhaust the heap space, this error isnot detected and may lead to libssh using a partially initialized ciphercontext. This occurs because the OpenSSL error code returned aliases withthe SSH_OK code, resulting in libssh not properly detecting the errorreturned by the OpenSSL library. This issue can lead to undefined behavior,including compromised data confidentiality and integrity or crashes.",
  "published": "2025-04-26T00:00:00Z",
  "severity": "Moderate",
  "cvss": 8.1,
  "cvssVector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "cwe": "Return of Wrong Status Code",
  "epss": 0.0173,
  "epssPercentile": 0.77724,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-5987",
  "fixes": [
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "0.10.6-0\u002Bdeb12u2",
      "fix": "DEBIAN-CVE-2025-5987",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-5987",
      "released": "2025-07-07T15:15:28Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "0.11.2-1",
      "fix": "DEBIAN-CVE-2025-5987",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-5987",
      "released": "2025-07-07T15:15:28Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 14",
      "fixedVersion": "0.11.2-1",
      "fix": "DEBIAN-CVE-2025-5987",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-5987",
      "released": "2025-07-07T15:15:28Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "RHEL 10",
      "fixedVersion": "0.11.1-4.el10_0.1",
      "fix": "RHSA-2026:0427",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2026-0427",
      "released": "2025-04-26T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "RHSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-23483",
      "released": "2026-01-16T01:46:33Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-17.el9_7",
      "fix": "ALSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-23483",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "amzn 2023",
      "fixedVersion": "0.10.6-1.amzn2023.0.2",
      "fix": "ALAS2023-2025-1155",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2025-1155",
      "released": "2025-08-18T23:13:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "ol 10",
      "fixedVersion": "0:0.11.1-5.el10_1",
      "fix": "ELSA-2025-23484",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-23484",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "ELSA-2025-23483",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-23483",
      "released": "2025-12-18T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "rocky 10",
      "fixedVersion": "0:0.11.1-5.el10_1",
      "fix": "RLSA-2025:23484",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2025-23484",
      "released": "2025-12-18T09:09:42Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "rocky 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "RLSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2025-23483",
      "released": "2025-12-19T09:05:01Z"
    },
    {
      "platform": "linux",
      "product": "libssh-4",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "0.10.6-2ubuntu0.1",
      "fix": "libssh-4 0.10.6-2ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-libssh-4-0.10.6-2ubuntu0.1",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-4",
      "release": "Ubuntu 24.10 (oracular)",
      "fixedVersion": "0.10.6-3ubuntu1.1",
      "fix": "libssh-4 0.10.6-3ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-oracular-libssh-4-0.10.6-3ubuntu1.1",
      "released": "2025-06-25T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-4",
      "release": "Ubuntu 25.04 (plucky)",
      "fixedVersion": "0.11.1-1ubuntu0.1",
      "fix": "libssh-4 0.11.1-1ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-plucky-libssh-4-0.11.1-1ubuntu0.1",
      "released": "2025-06-25T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "RHSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-23483",
      "released": "2026-01-16T01:46:33Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "almalinux 10",
      "fixedVersion": "0.11.1-5.el10_1",
      "fix": "ALSA-2025:23484",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-23484",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-17.el9_7",
      "fix": "ALSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-23483",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "amzn 2023",
      "fixedVersion": "0.10.6-1.amzn2023.0.2",
      "fix": "ALAS2023-2025-1155",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2025-1155",
      "released": "2025-08-18T23:13:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "ol 10",
      "fixedVersion": "0:0.11.1-5.el10_1",
      "fix": "ELSA-2025-23484",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-23484",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "ELSA-2025-23483",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-23483",
      "released": "2025-12-18T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-debuginfo",
      "release": "amzn 2023",
      "fixedVersion": "0.10.6-1.amzn2023.0.2",
      "fix": "ALAS2023-2025-1155",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2025-1155",
      "released": "2025-08-18T23:13:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-debugsource",
      "release": "amzn 2023",
      "fixedVersion": "0.10.6-1.amzn2023.0.2",
      "fix": "ALAS2023-2025-1155",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2025-1155",
      "released": "2025-08-18T23:13:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "RHSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-23483",
      "released": "2026-01-16T01:46:33Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-17.el9_7",
      "fix": "ALSA-2025:23483",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-23483",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "amzn 2023",
      "fixedVersion": "0.10.6-1.amzn2023.0.2",
      "fix": "ALAS2023-2025-1155",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2025-1155",
      "released": "2025-08-18T23:13:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "ol 10",
      "fixedVersion": "0:0.11.1-5.el10_1",
      "fix": "ELSA-2025-23484",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-23484",
      "released": "2025-12-17T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-17.el9_7",
      "fix": "ELSA-2025-23483",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-23483",
      "released": "2025-12-18T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-gcrypt-4",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "0.10.6-2ubuntu0.1",
      "fix": "libssh-gcrypt-4 0.10.6-2ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-libssh-gcrypt-4-0.10.6-2ubuntu0.1",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-gcrypt-4",
      "release": "Ubuntu 24.10 (oracular)",
      "fixedVersion": "0.10.6-3ubuntu1.1",
      "fix": "libssh-gcrypt-4 0.10.6-3ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-oracular-libssh-gcrypt-4-0.10.6-3ubuntu1.1",
      "released": "2025-06-25T00:00:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}