{
  "cveId": "CVE-2025-5318",
  "url": "https://patchblox.com/security/cve/CVE-2025-5318",
  "summary": "CVE-2025-5318 is fixed in 7 products on 1 platform, first by RHSA-2025:21013, released June 24, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "Libssh: out-of-bounds read in sftp_handle()",
  "description": "A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.",
  "published": "2025-06-24T00:00:00Z",
  "severity": "Moderate",
  "cvss": 5.4,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
  "cwe": "Out-of-bounds Read",
  "epss": 0.01886,
  "epssPercentile": 0.79635,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-5318",
  "fixes": [
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "0.10.6-0\u002Bdeb12u2",
      "fix": "DEBIAN-CVE-2025-5318",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-5318",
      "released": "2025-06-24T14:15:30Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "0.11.2-1",
      "fix": "DEBIAN-CVE-2025-5318",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-5318",
      "released": "2025-06-24T14:15:30Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "Debian 14",
      "fixedVersion": "0.11.2-1",
      "fix": "DEBIAN-CVE-2025-5318",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-5318",
      "released": "2025-06-24T14:15:30Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "RHEL 10",
      "fixedVersion": "0.11.1-4.el10_1",
      "fix": "RHSA-2025:21013",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-21013",
      "released": "2025-06-24T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "RHEL 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "RHSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-18286",
      "released": "2025-10-20T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-15.el9_7",
      "fix": "RHSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-20943",
      "released": "2025-11-11T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "almalinux 10",
      "fixedVersion": "0.11.1-4.el10_1",
      "fix": "ALSA-2025:21013",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-21013",
      "released": "2025-11-11T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "almalinux 8",
      "fixedVersion": "0.9.6-15.el8_10",
      "fix": "ALSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-18286",
      "released": "2025-10-20T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-15.el9_7",
      "fix": "ALSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-20943",
      "released": "2025-11-11T00: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-4.el10_0",
      "fix": "ELSA-2025-18231",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18231",
      "released": "2025-10-16T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "ol 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "ELSA-2025-18286",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18286",
      "released": "2025-10-19T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-15.el9_6",
      "fix": "ELSA-2025-18275",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18275",
      "released": "2025-10-16T00: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 10",
      "fixedVersion": "0:0.11.1-4.el10_0",
      "fix": "RLSA-2025:18231",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2025-18231",
      "released": "2025-10-18T08:09:12Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "rocky 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "RLSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2025-18286",
      "released": "2025-11-28T09:03:56Z"
    },
    {
      "platform": "linux",
      "product": "libssh",
      "release": "rocky 9",
      "fixedVersion": "0:0.10.4-15.el9_6",
      "fix": "RLSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2025-20943",
      "released": "2025-11-12T09:05:07Z"
    },
    {
      "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 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "RHSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-18286",
      "released": "2025-10-20T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-15.el9_7",
      "fix": "RHSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-20943",
      "released": "2025-11-11T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "almalinux 10",
      "fixedVersion": "0.11.1-4.el10_1",
      "fix": "ALSA-2025:21013",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-21013",
      "released": "2025-11-11T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "almalinux 8",
      "fixedVersion": "0.9.6-15.el8_10",
      "fix": "ALSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-18286",
      "released": "2025-10-20T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-15.el9_7",
      "fix": "ALSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-20943",
      "released": "2025-11-11T00: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-4.el10_0",
      "fix": "ELSA-2025-18231",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18231",
      "released": "2025-10-16T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "ol 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "ELSA-2025-18286",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18286",
      "released": "2025-10-19T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-config",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-15.el9_6",
      "fix": "ELSA-2025-18275",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18275",
      "released": "2025-10-16T00: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 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "RHSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-18286",
      "released": "2025-10-20T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "RHEL 9",
      "fixedVersion": "0:0.10.4-15.el9_7",
      "fix": "RHSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2025-20943",
      "released": "2025-11-11T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "almalinux 10",
      "fixedVersion": "0.11.1-4.el10_1",
      "fix": "ALSA-2025:21013",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-21013",
      "released": "2025-11-11T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "almalinux 8",
      "fixedVersion": "0.9.6-15.el8_10",
      "fix": "ALSA-2025:18286",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-18286",
      "released": "2025-10-20T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "almalinux 9",
      "fixedVersion": "0.10.4-15.el9_7",
      "fix": "ALSA-2025:20943",
      "url": "https://patchblox.com/security/fix/linux/alsa-2025-20943",
      "released": "2025-11-11T00: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-4.el10_0",
      "fix": "ELSA-2025-18231",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18231",
      "released": "2025-10-16T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "ol 8",
      "fixedVersion": "0:0.9.6-15.el8_10",
      "fix": "ELSA-2025-18286",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18286",
      "released": "2025-10-19T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "libssh-devel",
      "release": "ol 9",
      "fixedVersion": "0:0.10.4-15.el9_6",
      "fix": "ELSA-2025-18275",
      "url": "https://patchblox.com/security/fix/linux/elsa-2025-18275",
      "released": "2025-10-16T00: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-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"
  }
}