{
  "cveId": "CVE-2025-4877",
  "url": "https://patchblox.com/security/cve/CVE-2025-4877",
  "summary": "CVE-2025-4877 is fixed in 5 products on 1 platform, first by libssh-4 0.8.0~20170825.94fa1e38-1ubuntu0.7\u002Besm4, released June 24, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "Libssh: write beyond bounds in binary to base64 conversion functions",
  "description": "There\u0027s a vulnerability in the libssh package where when a libssh consumerpasses in an unexpectedly large input buffer to ssh_get_fingerprint_hash()function. In such cases the bin_to_base64() function can experience aninteger overflow leading to a memory under allocation, when that happensit\u0027s possible that the program perform out of bounds write leading to aheap corruption.This issue affects only 32-bits builds of libssh.",
  "published": "2025-06-24T17:00:00Z",
  "severity": "Medium",
  "cvss": 6.5,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "cwe": "Out-of-bounds Write",
  "epss": 0.00203,
  "epssPercentile": 0.10303,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-4877",
  "fixes": [
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 11.6 (bullseye)",
      "fixedVersion": "0.9.8-0\u002Bdeb11u2",
      "fix": "DLA-4385-1",
      "url": "https://patchblox.com/security/fix/linux/dla-4385-1",
      "released": "2025-11-27T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "0.10.6-0\u002Bdeb12u2",
      "fix": "DEBIAN-CVE-2025-4877",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-4877",
      "released": "2025-08-20T13:15:28Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "0.11.2-1",
      "fix": "DEBIAN-CVE-2025-4877",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-4877",
      "released": "2025-08-20T13:15:28Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 14",
      "fixedVersion": "0.11.2-1",
      "fix": "DEBIAN-CVE-2025-4877",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-4877",
      "released": "2025-08-20T13:15:28Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-18.el9",
      "fix": "RHSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2026-18683",
      "released": "2026-05-27T17:40:12Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-18.el9",
      "fix": "ALSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/alsa-2026-18683",
      "released": "2026-05-19T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-18.el9",
      "fix": "ELSA-2026-18683",
      "url": "https://patchblox.com/security/fix/linux/elsa-2026-18683",
      "released": "2026-06-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "0.9.8-150600.11.3.1",
      "fix": "SUSE-SU-2025:02229-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-02229-1",
      "released": "2025-07-04T16:02:31Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "rocky 9",
      "fixedVersion": "0:0.10.4-18.el9",
      "fix": "RLSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2026-18683",
      "released": "2026-05-28T15:43:06Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "sles 15.6",
      "fixedVersion": "0.9.8-150600.11.3.1",
      "fix": "SUSE-SU-2025:02229-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-02229-1",
      "released": "2025-07-04T16:02:31Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "sles 15.7",
      "fixedVersion": "0.9.8-150600.11.3.1",
      "fix": "SUSE-SU-2025:02229-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2025-02229-1",
      "released": "2025-07-04T16:02:31Z"
    },
    {
      "platform": "linux",
      "product": "libssh-4",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "0.8.0~20170825.94fa1e38-1ubuntu0.7\u002Besm4",
      "fix": "libssh-4 0.8.0~20170825.94fa1e38-1ubuntu0.7\u002Besm4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-libssh-4-0.8.0-20170825.94fa1e38-1ubuntu0.7-esm4",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-4",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "0.9.3-2ubuntu2.5\u002Besm1",
      "fix": "libssh-4 0.9.3-2ubuntu2.5\u002Besm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-libssh-4-0.9.3-2ubuntu2.5-esm1",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-4",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "0.9.6-2ubuntu0.22.04.4",
      "fix": "libssh-4 0.9.6-2ubuntu0.22.04.4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libssh-4-0.9.6-2ubuntu0.22.04.4",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "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-18.el9",
      "fix": "RHSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2026-18683",
      "released": "2026-05-27T17:40:12Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-18.el9",
      "fix": "ALSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/alsa-2026-18683",
      "released": "2026-05-19T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-18.el9",
      "fix": "ELSA-2026-18683",
      "url": "https://patchblox.com/security/fix/linux/elsa-2026-18683",
      "released": "2026-06-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-18.el9",
      "fix": "RHSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2026-18683",
      "released": "2026-05-27T17:40:12Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-18.el9",
      "fix": "ALSA-2026:18683",
      "url": "https://patchblox.com/security/fix/linux/alsa-2026-18683",
      "released": "2026-05-19T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-18.el9",
      "fix": "ELSA-2026-18683",
      "url": "https://patchblox.com/security/fix/linux/elsa-2026-18683",
      "released": "2026-06-12T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-gcrypt-4",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "0.8.0~20170825.94fa1e38-1ubuntu0.7\u002Besm4",
      "fix": "libssh-gcrypt-4 0.8.0~20170825.94fa1e38-1ubuntu0.7\u002Besm4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-libssh-gcrypt-4-0.8.0-20170825.94fa1e38-1ubuntu0.7-esm4",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-gcrypt-4",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "0.9.3-2ubuntu2.5\u002Besm1",
      "fix": "libssh-gcrypt-4 0.9.3-2ubuntu2.5\u002Besm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-libssh-gcrypt-4-0.9.3-2ubuntu2.5-esm1",
      "released": "2025-06-24T17:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-gcrypt-4",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "0.9.6-2ubuntu0.22.04.4",
      "fix": "libssh-gcrypt-4 0.9.6-2ubuntu0.22.04.4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libssh-gcrypt-4-0.9.6-2ubuntu0.22.04.4",
      "released": "2025-06-24T17: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-08T00:53:09Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}