Skip to content
Heist/ feed
High

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2025-15661

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-15661

libssh2

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/libssh2/libssh2",
    "vendor": "libssh2",
    "product": "libssh2",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "versionType": "semver",
        "lessThanOrEqual": "1.11.1"
      },
      {
        "status": "unaffected",
        "version": "2dae3024897e1898d389835151f4e9606227721d",
        "versionType": "git"
      }
    ],
    "packageURL": "pkg:github/libssh2/libssh2",
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-15661

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#848 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement