PatchSiren

PatchSiren cyber security CVE debrief

CVE-2025-15661 libssh2 CVE debrief

libssh2 through 1.11.1 contains an out-of-bounds heap read vulnerability in the sftp_symlink() function. A malicious SSH server or man-in-the-middle attacker can disclose heap memory contents or cause a crash by sending a crafted SSH_FXP_NAME response. The vulnerability allows attackers to 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. This issue can lead to potential disclosure of heap memory contents or a crash of affected systems. Defenders should assess exposure and prioritize verification and remediation.

Vendor
libssh2
Product
Unknown
CVSS
HIGH 8.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-18
Original CVE updated
2026-11-10
Advisory published
2026-06-18
Advisory updated
2026-11-10

Who should care

Defenders responsible for libssh2-based systems, SSH servers, and man-in-the-middle attack prevention should assess exposure and prioritize verification and remediation. This includes reviewing the current version of libssh2, identifying affected systems, and planning for updates or mitigations. Additionally, defenders should monitor for suspicious SSH activity and implement compensating controls for exposed systems.

Why it matters

CVE-2025-15661 is a high-severity vulnerability in libssh2 that allows attackers to disclose heap memory contents or cause a crash. Defenders should prioritize verification and remediation to prevent potential exposure.

  • Potential disclosure of heap memory contents
  • Potential crash of affected systems
  • Need for verification of libssh2 version and patching
  • Importance of monitoring for suspicious SSH activity

Technical summary

The vulnerability is caused by a missing validation of available packet buffer size before the memcpy operation in the sftp_symlink() function. This allows attackers to 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. The issue arises from the lack of validation of the available packet buffer size, which enables malicious SSH servers or man-in-the-middle attackers to exploit this vulnerability.

Defensive priority

Defenders should prioritize verifying and updating libssh2 to version 1.11.2 or later, and monitoring for suspicious SSH activity.

Recommended defensive actions

  • Verify and update libssh2 to version 1.11.2 or later
  • Monitor for suspicious SSH activity
  • Implement additional security measures to prevent man-in-the-middle attacks
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by a missing validation of available packet buffer size before the memcpy operation in the sftp_symlink() function. This allows attackers to 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.

Sources and references

Verified primary and authoritative sources

  • CVE-2025-15661 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2025-15661

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2025-15661 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2025-15661

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.