Medium severity · published Jun 24, 2025
CVE-2025-5318
A flaw was found in the libssh library in versions less than 0.11.2
5.4
CVSS
1.8%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.8% · higher than 79% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EL
Enterprise Linux · Redhat
8.0; 9.0; 10.0 · source: NVD
LI
Libssh · Libssh
before 0.11.2 · source: NVD
OC
Openshift Container Platform · Redhat
4.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-5318
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-5318
Third Party Advisory
https://access.redhat.com/errata/RHSA-2025:18231
Third Party Advisory
https://access.redhat.com/errata/RHSA-2025:18275
Third Party Advisory
https://access.redhat.com/errata/RHSA-2025:18286
Third Party Advisory
https://access.redhat.com/errata/RHSA-2025:19012
Third Party Advisory
https://access.redhat.com/errata/RHSA-2025:19098
Third Party Advisory
https://access.redhat.com/errata/RHSA-2025:19101
More from Libssh
9.1
CVE-2018-10933
A vulnerability was found in libssh's server-side state machine before versions 0.7.6 and 0.8.4
8.8
CVE-2026-59851
Libssh: libssh: authentication bypass via missing gssapi principal check
8.8
CVE-2025-5372
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation
8.8
CVE-2019-14889
A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8
8.2
CVE-2026-0966
Libssh: libssh: denial of service via zero-length input in ssh_get_hexa()
