5.4

CVE-2025-5318: Libssh: out-of-bounds read in sftp_handle()

Modified
AliasesRHSA-2025:18231RHSA-2025:18275RHSA-2025:18286
Published 24-06-2025Last modified 05-11-2026

Vulnerability summary

CVE-2025-5318 is a medium (CVSS 5.4) Out-of-bounds Read vulnerability in libssh. EPSS estimates a 2.03% chance of exploitation in the next 30 days, higher than 81.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
2.03%
0%100%
Low · +0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 12 · Related 12

Timeline

  1. 24-06-2025
    PublishedVulnerability first disclosed.
  2. 05-11-2026
    Last modifiedVulnerability information updated.

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 metrics

8 scores · 8 sources · 1 version

EPSS trend

Probability

2.03%

Chance of exploitation in the next 30 days

Percentile

82%

Versus all other CVEs

30-day change

Increase +0.14 pp

From 1.89% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat7 products
  • enterprise_linux8.0 | 9.0 | 10.0
  • openshift_container_platform4.0
  • libssh< 0:0.11.1-4.el10_0 | < 0:0.10.4-15.el9_6 | < 0:0.9.6-15.el8_10 | < 0:0.10.4-13.el9_4.1 | < 0:0.9.6-4.el8_6.1 | < 0:0.9.6-13.el8_8.1 | < 0:0.9.0-4.el8_2.1 | < 0:0.9.4-2.el8_4.1 | < 0:0.10.4-9.el9_2.1 | < 0:0.9.6-3.el9_0.1 | < 0:0.10.4-15.el9_7 | < 0:0.11.1-4.el10_1
  • libssh-config< 0:0.11.1-4.el10_0 | < 0:0.10.4-15.el9_6 | < 0:0.9.6-15.el8_10 | < 0:0.10.4-13.el9_4.1 | < 0:0.9.6-4.el8_6.1 | < 0:0.9.6-13.el8_8.1 | < 0:0.9.0-4.el8_2.1 | < 0:0.9.4-2.el8_4.1 | < 0:0.10.4-9.el9_2.1 | < 0:0.9.6-3.el9_0.1 | < 0:0.10.4-15.el9_7 | < 0:0.11.1-4.el10_1
  • libssh-debuginfo< 0:0.11.1-4.el10_0 | < 0:0.10.4-15.el9_6 | < 0:0.9.6-15.el8_10 | < 0:0.10.4-13.el9_4.1 | < 0:0.9.6-4.el8_6.1 | < 0:0.9.6-13.el8_8.1 | < 0:0.9.0-4.el8_2.1 | < 0:0.9.4-2.el8_4.1 | < 0:0.10.4-9.el9_2.1 | < 0:0.9.6-3.el9_0.1 | < 0:0.10.4-15.el9_7 | < 0:0.11.1-4.el10_1
Chainguard2 products
  • libssh< 0.11.3-r0
  • libssh2< 1.11.1-r1
Wolfi2 products
  • libssh< 0.11.3-r0
  • libssh2< 1.11.1-r1
Alpine1 product
  • libssh< 0.11.2-r0
Debian1 product
  • libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Libssh1 product
Ubuntu1 product
  • libssh< 0.6.3-4.3ubuntu0.6+esm2 | < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 | < 0.9.3-2ubuntu2.5+esm1 | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1

7 vendors · 15 products

References

54 links
Show all 54 references