CVE record · CVE-2025-5318

Libssh: out-of-bounds read in sftp_handle()

CVSS 5.4 MediumEPSS 0.019 · 79th percentile

Published by the CVE Program (CNA: redhat) at 24 Jun 2025, 14:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

Affected products, as the CNA wrote them
VendorProductVersions
Not given Not given Package name: libssh https://www.libssh.org/
  • affected before 0.11.2 semver
Other versions: unaffected
Red Hat Red Hat Enterprise Linux 10 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.11.1-4.el10_0 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 10 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.11.1-4.el10_1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-15.el8_10 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-15.el8_10 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.0-4.el8_2.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.4-2.el8_4.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.4-2.el8_4.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-4.el8_6.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-4.el8_6.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-4.el8_6.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-13.el8_8.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-13.el8_8.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-15.el9_6 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-15.el9_7 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-15.el9_6 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-15.el9_7 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.9.6-3.el9_0.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-9.el9_2.1 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-13.el9_4.1 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.12 Package name: openshift/ose-rhel-coreos-8 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 412.86.202511191939-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.13 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 413.92.202511261311-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.14 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 414.92.202511122212-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.15 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 415.92.202601271320-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.16 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 416.94.202601071926-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.17 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 417.94.202510282022-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.18 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 418.94.202511041748-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.19 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 4.19.9.6.202510281054-0 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4.20 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/
  • unaffected 4.20.9.6.202510290321-0 to before * rpm
Other versions: affected
Red Hat Red Hat AI Inference Server 3.2 Package name: rhaiis/vllm-cuda-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 3.2.2-1765379088 to before * rpm
Other versions: affected
Red Hat Red Hat AI Inference Server 3.2 Package name: rhaiis/vllm-rocm-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 3.2.2-1765379049 to before * rpm
Other versions: affected
Red Hat Red Hat AI Inference Server 3.2 Package name: rhaiis/model-opt-cuda-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 3.2.2-1764871796 to before * rpm
Other versions: affected
Red Hat Red Hat AI Inference Server 3.2 Package name: rhaiis/vllm-cuda-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 1772160593 to before * rpm
Other versions: affected
Red Hat Red Hat AI Inference Server 3.2 Package name: rhaiis/vllm-rocm-rhel9 https://catalog.redhat.com/software/containers/
  • unaffected 1772160625 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift distributed tracing 3.7.0 Package name: rhosdt/tempo-gateway-opa-rhel8 https://catalog.redhat.com/software/containers/
  • unaffected rhosdt-3.7-1762254546 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift distributed tracing 3.7.0 Package name: rhosdt/tempo-gateway-rhel8 https://catalog.redhat.com/software/containers/
  • unaffected rhosdt-3.7-1762254552 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift distributed tracing 3.7.0 Package name: rhosdt/tempo-jaeger-query-rhel8 https://catalog.redhat.com/software/containers/
  • unaffected rhosdt-3.7-1762255881 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift distributed tracing 3.7.0 Package name: rhosdt/tempo-query-rhel8 https://catalog.redhat.com/software/containers/
  • unaffected rhosdt-3.7-1762254530 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift distributed tracing 3.7.0 Package name: rhosdt/tempo-rhel8 https://catalog.redhat.com/software/containers/
  • unaffected rhosdt-3.7-1762254519 to before * rpm
Other versions: affected
Red Hat Red Hat OpenShift distributed tracing 3.7.0 Package name: rhosdt/tempo-rhel8-operator https://catalog.redhat.com/software/containers/
  • unaffected rhosdt-3.7-1762254545 to before * rpm
Other versions: affected
Identifiers
CVE-2025-5318
CNA
redhat
Weakness (CWE)
CWE-125
Published
24 Jun 2025
Updated
5 Nov 2026

Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N CNA (redhat)
  • CISA KEV Not listed.
  • EPSS 0.019, the 79th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 24 Jun 2025, 14:10 UTC Confirmed by the CVE List
  2. 24 Jun 2025, 14:15 UTC Confirmed by NVD

Sources

References from the CNA

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.