CVE-2025-5318

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

MEDIUM 5.4

At a glance

Source
NVD
EPSS
EPSS 1.89 % · percentile 79 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:Nredhat
CVSS 3.1MEDIUM 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1HIGH 8.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · nvd@nist.gov (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
libsshaffected 0 < 0.11.2
Red Hat · Red Hat Enterprise Linux 10unaffected 0:0.11.1-4.el10_0 < *
Red Hat · Red Hat Enterprise Linux 10unaffected 0:0.11.1-4.el10_1 < *
Red Hat · Red Hat Enterprise Linux 8unaffected 0:0.9.6-15.el8_10 < *
Red Hat · Red Hat Enterprise Linux 8unaffected 0:0.9.6-15.el8_10 < *
Red Hat · Red Hat Enterprise Linux 8.2 Advanced Update Supportunaffected 0:0.9.0-4.el8_2.1 < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportunaffected 0:0.9.4-2.el8_4.1 < *
Red Hat · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onunaffected 0:0.9.4-2.el8_4.1 < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 0:0.9.6-4.el8_6.1 < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Serviceunaffected 0:0.9.6-4.el8_6.1 < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsunaffected 0:0.9.6-4.el8_6.1 < *
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:0.9.6-13.el8_8.1 < *
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:0.9.6-13.el8_8.1 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-15.el9_6 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-15.el9_7 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-15.el9_6 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-15.el9_7 < *
Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsunaffected 0:0.9.6-3.el9_0.1 < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsunaffected 0:0.10.4-9.el9_2.1 < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Supportunaffected 0:0.10.4-13.el9_4.1 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD