BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-5318 in Libssh and 2 more products

Medium 5.4

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

Affects 3 products from 2 vendors. Facts below cite their sources.

CVSS 3.15.4
EPSS1.9%
EPSS percentile80th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no availability impact.

Affected products and versions

VendorProductAffected versions
Libssh Libssh < 0.11.2
Redhat Enterprise Linux 8.0 9.0 10.0
Redhat Openshift Container Platform 4.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-5318
BreachSpider IDBS-2025-GLOBAL-038574-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Published2025-06-24
Last modified2026-11-05
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A critical vulnerability in the libssh library versions less than 0.11.2 allows an authenticated remote attacker to perform an out-of-bounds read, potentially leading to information disclosure.

The vulnerability exists in the sftp_handle function due to an incorrect comparison check, which allows the function to access memory beyond the valid handle list and return an invalid pointer. This invalid pointer can be used in further processing, leading to an out-of-bounds read.

Questions

What is CVE-2025-5318?

A critical vulnerability in the libssh library versions less than 0.11.2 allows an authenticated remote attacker to perform an out-of-bounds read, potentially leading to information disclosure.

What is the CVSS score for CVE-2025-5318?

CVE-2025-5318 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N. EPSS: 1.9%.

Is CVE-2025-5318 actively exploited?

No confirmed active exploitation of CVE-2025-5318 as of 2026-11-06.

How do I remediate CVE-2025-5318?

Priority: IMMEDIATE. Advisory: https://access.redhat.com/errata/RHSA-2025:18231 PSIRT: [email protected]

What systems are affected by CVE-2025-5318?

CVE-2025-5318 affects Libssh Libssh; Redhat Enterprise Linux, Openshift Container Platform.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Libssh","product":"Libssh","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-05.