5.4

CVE-2025-5318: libssh Out-of-bounds Read

CVSS: 5.4v3.1MediumModified
AliasesRHSA-2025:18231RHSA-2025:18275RHSA-2025:18286
Published 24-06-2025Last modified 08-09-2026

Vulnerability summary

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

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.4/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.84%
0%100%
Low · +0.13 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 12 · Related 12

Timeline

  1. 24-06-2025
    PublishedVulnerability first disclosed.
  2. 08-09-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

7 scores · 7 sources · 1 version

EPSS trend

Probability

1.84%

Chance of exploitation in the next 30 days

Percentile

79%

Versus all other CVEs

30-day change

+0.13 pp

From 1.71% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.84%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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
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

6 vendors · 14 products

References

53 links
Show all 53 references