Read the docs
TI-2025-14280 Aliases CVE-2025-15661GHSA-3wqh-87fg-ffgg

libssh2 - Heap Buffer Over-read via sftp_symlink() in sftp.c

Priority LOW 37CWE-125Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · None · High
Fix status
Partial Red Hat: 1 fixed, 2 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

Summary

libssh2 through 1.11.1, fixed in commit 2dae302, contains an out-of-bounds heap read vulnerability in the sftp_symlink() function in src/sftp.c that allows a malicious SSH server or man-in-the-middle attacker to disclose heap memory contents or cause a crash by sending a crafted SSH_FXP_NAME response. Attackers can supply a link_len value larger than the actual packet data in SSH_FXP_NAME responses for SFTP READLINK and REALPATH operations, triggering a heap buffer over-read of up to target_len minus one bytes due to the missing validation of available packet buffer size before the memcpy operation.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00648 51st percentileScored 2026-11-07
Fix Partial Red Hat: 1 advisoryRed Hat: 1 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
The libssh2 Projectlibssh2up to 1.11.1—Patch availableCNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*up to 1.11.1VulnerableThe libssh2 Project
  • cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:* Versions up to 1.11.1 Vulnerable ·The libssh2 Project

Remediation

Red Hat 1 advisory

  • RHSA-2026:30132 Released 2026-06-25 · Red Hat rating Moderate
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images libssh2-1.11.1-9.hum1@aarch64, libssh2-1.11.1-9.hum1@src, libssh2-1.11.1-9.hum1@x86_64 +4

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Hardened ImagesFixed RHSA-2026:30132

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-15661
  2. 2026-10-03 Alias added: GHSA-3wqh-87fg-ffgg
  3. 2026-10-18 EPSS moved to the 50th–90th percentile

References

  • TI-2026-39880 libssh2 - Out-of-Bounds Write via Unchecked packet_length in transport.c CVSS 4.0CRITICAL 9.2
  • TI-2026-06681 libssh2 userauth.c userauth_password integer overflow CVSS 4.0MEDIUM 6.9
  • TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
  • TI-2026-41806 libssh2 - Free of Uninitialized Pointer in publickey List Cleanup CVSS 4.0HIGH 8.3
  • TI-2019-02869 Out-of-bounds read in libssh2 CVSS 3.1CRITICAL 9.1
  • TI-2019-02865 Integer overflow in libssh2 CVSS 3.1HIGH 8.8
See all 24 →

Sources