Skip to main content
EPSS 1.5%top 27%

A flaw was found in the libssh library in versions less than 0.11.2. (CVE-2025-5318)

0
Medium
Published: 06/24/2025 (06/24/2025, 14:15:00 UTC)
Source: GCVE Database
Product: libssh

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 v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected software

Affected versions
>=4.16.0 <4.16.55=0=3.7.1Red HatRed Hat OpenShift EnterpriseRed Hat OpenShift Container Platform 4.16aarch64rhcos-aarch64-416.94.202601071926-0<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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 15:57:29 UTC

Technical Analysis

CVE-2025-5318 is an out-of-bounds read vulnerability in the libssh library's sftp_handle() function. This flaw affects Red Hat OpenShift Container Platform 4.16 prior to 4.16.55 and the Red Hat OpenShift distributed tracing platform (Tempo) 3.7.1. The vulnerability was addressed in Red Hat OpenShift Container Platform 4.16.55 and Tempo 3.7.1 releases. Red Hat has provided updated packages and container images to fix this issue. The advisory also references other security fixes in the same release, but CVE-2025-5318 specifically concerns libssh.

Potential Impact

The out-of-bounds read vulnerability could potentially lead to memory corruption or application crashes in affected libssh implementations within Red Hat OpenShift Container Platform and related components. The advisory rates the security impact as Important (high severity). No known exploits in the wild have been reported. The vulnerability affects multiple architectures including x86_64, aarch64, ppc64le, and s390x.

Mitigation Recommendations

Red Hat has released official security updates for OpenShift Container Platform 4.16.55 and distributed tracing platform Tempo 3.7.1 that address CVE-2025-5318. Users should upgrade to these versions using the OpenShift CLI or web console following Red Hat's documented upgrade procedures. The vendor advisory confirms that applying these updates fully mitigates the vulnerability. No additional workarounds or mitigations are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:0326
Cve Count
7
Additional Cves
["CVE-2025-5914","CVE-2025-8677","CVE-2025-11234","CVE-2025-40778","CVE-2025-40780","CVE-2025-59375"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a175eefe29bf47b50eddd4a

Added to database: 05/27/2026, 21:15:27 UTC

Last enriched: 08/16/2026, 15:57:29 UTC

Last updated: 09/10/2026, 19:42:38 UTC

Views: 172

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses