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.
CVE-2025-5318
Score 5.4 from GitHub Security Advisory published 2025-06-26. NVD baseline CVSS 8.1; sources differ by 2.7.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.1
- EG Score
- 5.4(medium)
- EPSS
- 82.6%
- KEV
- Not listed
Published
June 24, 2025
Last Modified
July 21, 2026
Advisory Details (10)
Auto-updated Jun 25, 2026Affected: Red Hat Enterprise Linux 8.2 Advanced Update Support.
https://access.redhat.com/errata/RHSA-2025:19400Affected: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions and Red Hat Enterprise Linux 8.8 Telecommunications Update Serv
https://access.redhat.com/errata/RHSA-2025:19101Affected: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Update Services for SAP So
https://access.redhat.com/errata/RHSA-2025:19098Affected: Red Hat Enterprise Linux 9.4 Extended Update Support.
https://access.redhat.com/errata/RHSA-2025:19012Affected: Red Hat Enterprise Linux 8.
https://access.redhat.com/errata/RHSA-2025:18286Affected: Red Hat Enterprise Linux 9.
https://access.redhat.com/errata/RHSA-2025:18275Affected: Red Hat Enterprise Linux 10.
https://access.redhat.com/errata/RHSA-2025:18231Vendor Advisories for CVE-2025-5318(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:3462Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat AI Inference Server 3.2.2 (ROCm)
- RHSA-2026:3461Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat AI Inference Server 3.2.2 (CUDA)
- RHSA-2026:1541Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.15.61 bug fix and security update
- RHSA-2026:0326Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.16.55 bug fix and security update
- RHSA-2025:23080Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat AI Inference Server Model Optimization Tools 3.2.2 (CUDA)
- RHSA-2025:23079Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat AI Inference Server 3.2.2 (ROCm)
- RHSA-2025:23078Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat AI Inference Server 3.2.2 (CUDA)
- RHSA-2025:22275Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.13.62 bug fix and security update
- +12 more
Patch Availability(29)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(8)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2025-53182025-07-17
Libssh: out-of-bounds read in sftp_handle()
- Red HatRHSA-2025:18231MODERATE2025-06-24
RHSA-2025:18231 — Moderate
- Red HatRHSA-2025:18275MODERATE2025-06-24
RHSA-2025:18275 — Moderate
- Red HatRHSA-2025:18286MODERATE2025-06-24
RHSA-2025:18286 — Moderate
- Red HatRHSA-2025:19012MODERATE2025-06-24
RHSA-2025:19012 — Moderate
- Red HatRHSA-2025:19098MODERATE2025-06-24
RHSA-2025:19098 — Moderate
- Red HatRHSA-2025:19101MODERATE2025-06-24
RHSA-2025:19101 — Moderate
- Red HatRHSA-2025:19400MODERATE2025-06-24
RHSA-2025:19400 — Moderate
Data Freshness Timeline
(refreshed 12× in last 7d / 42× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-21 15:24 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-16 17:02 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 06:12 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 21:34 UTCOSV refresh
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
Show 62 moreShow fewer
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 09:05 UTCOSV refresh
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-30 03:01 UTCEG score recompute
- 2026-05-30 03:01 UTCVendor advisory
- 2026-05-30 03:01 UTCGHSA enrichment
- 2026-05-29 13:44 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-125
- CVE-2014-2898EG 9.8CRITICAL
- CVE-2014-2897EG 9.8CRITICAL
- CVE-2014-2896EG 9.8CRITICAL
- CVE-2015-9290EG 9.8CRITICAL
- CVE-2016-10749EG 9.8CRITICAL
- CVE-1999-0006EG 9.8EPSS 96%CRITICAL
- CVE-2014-3180EG 9.1CRITICAL
- CVE-2014-1508EG 9.1EPSS 90%CRITICAL
- CVE-2016-5198NVD 8.8EG 9.0 KEVEPSS 98%HIGH
- CVE-2016-4523NVD 7.5EG 9.0 KEVEPSS 98%HIGH
Frequently asked(5)
What is CVE-2025-5318?
When was CVE-2025-5318 disclosed?
Is CVE-2025-5318 actively exploited?
What is the CVSS score of CVE-2025-5318?
How do I remediate CVE-2025-5318?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2025-5318
Is Your Infrastructure Affected by CVE-2025-5318?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.