Skip to main content
Mallory
HighVulnerability

CVE-2025-15661: Heap out-of-bounds read in libssh2 SFTP response handling

Published Jun 18, 2026 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 2 in a dayToday
CVSS8.3High · v4
EPSS0.45%31st percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Libssh2
IdentifiersCVE-2025-15661CWE-125 · Out-of-bounds Read

CVE-2025-15661 is a heap out-of-bounds read vulnerability in the sftp_symlink() function in libssh2 through version 1.11.1. During SFTP READLINK and REALPATH operations, crafted SSH_FXP_NAME responses can specify a link_len larger than the available packet data. Missing packet-buffer bounds validation before memcpy() causes a heap over-read of up to target_len minus one bytes. A malicious SSH server or man-in-the-middle attacker able to deliver these responses can disclose heap memory contents or crash the client application.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Exploitation can expose heap memory belonging to the application using libssh2 and cause an application crash, resulting in confidentiality loss or denial of service. The read length is bounded by the caller's target_len minus one bytes. Arbitrary code execution and memory modification are not established impacts of this vulnerability.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict outbound SSH/SFTP connections to trusted servers and enforce strict SSH host-key verification to reduce server-impersonation risk. Suspend workflows connecting to unverified endpoints where feasible. These controls do not protect against a compromised trusted server and do not replace the bounds-checking fix.

Remediation

Patch, then assume compromise.

Apply upstream commit 2dae302 or install a vendor-supported package or release confirmed to include that fix. Distribution-specific fixed packages include libssh2 1.10.0-3+deb12u1 for Debian 12 and 1.11.1-1+deb13u1 for Debian 13. Applicable Alpine Linux updates include libssh2 1.11.1-r4 or later. Update affected applications that bundle libssh2 as well as system-installed libraries.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Libssh2Libssh2application
FAQ

Frequently asked questions

Is CVE-2025-15661 exploited in the wild?
As of Nov 26, 2026, Mallory has no reports of CVE-2025-15661 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-15661?
As of Nov 26, 2026, Mallory has found no public exploit for CVE-2025-15661.
Is there a patch for CVE-2025-15661?
Apply upstream commit 2dae302 or install a vendor-supported package or release confirmed to include that fix. Distribution-specific fixed packages include libssh2 1.10.0-3+deb12u1 for Debian 12 and 1.11.1-1+deb13u1 for Debian 13.
What products are affected by CVE-2025-15661?
Libssh2.
How severe is CVE-2025-15661?
CVE-2025-15661 has a CVSS v4 score of 8.3 (High) and an EPSS score of 0.45% (31st percentile) as of Nov 26, 2026.
Activity feed

Recent activity

41 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable cloud security pluginsNews · Nov 26, 2026Alpine: multiple cargo packages, multiple rust packages, multi... | Tenable®An out-of-bounds heap read in libssh2 through 1.11.1 allows a malicious SSH server or man-in-the-middle attacker to disclose heap memory or crash the client. Missing packet-size validation permits crafted SFTP READLINK and REALPATH responses to trigger an excessive memory copy.Read more ↗tenable nessus pluginsNews · Nov 7, 2026EulerOS Virtualization 2.15.0 : libssh2 (EulerOS-SA-2026-4823) | Tenable®Missing packet-length validation in sftp_symlink() allows a malicious SSH server or man-in-the-middle attacker to trigger a heap buffer over-read, disclosing heap contents or crashing the client. The content identifies fix commit 2dae302 and a proof-of-concept exploit maturity rating.Read more ↗tenable nessus pluginsNews · Nov 7, 2026EulerOS Virtualization 2.15.1 : libssh2 (EulerOS-SA-2026-4764) | Tenable®Insufficient validation of SSH_FXP_NAME responses during SFTP READLINK and REALPATH operations allows a malicious SSH server or man-in-the-middle attacker to supply an oversized link length, causing heap-memory disclosure or a client crash.Read more ↗tenable nessus pluginsNews · Oct 30, 2026CentOS Linux 7 [TuxCare] Security Update: libssh2 / libssh2-de... | Tenable®An out-of-bounds heap read in libssh2 through version 1.11.1 results from insufficient packet-length validation in sftp_symlink(). Crafted SSH_FXP_NAME responses to SFTP READLINK or REALPATH operations can cause heap-memory disclosure or a crash. The advisory covers affected CentOS Linux 7 libssh2 packages. Nessus detects exposure using self-reported version information rather than testing exploitation. The reported CVSS v4 base score is 8.3.Read more ↗
+23 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity12Community discussion across Reddit, Mastodon, and other social sources.