{
  "id": "CVE-2025-15661",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-15661",
  "published_at": "2026-06-18T20:18:29.475Z",
  "title": "libssh2 - Heap Buffer Over-read via sftp_symlink() in sftp.c",
  "vendor": "libssh2",
  "product": "libssh2",
  "cvss": {
    "score": 8.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.3,
    "nvd": 6.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "libssh2",
        "product": "libssh2",
        "ranges": [
          "\u003c= 1.11.1"
        ],
        "fixed_in": [
          "2dae3024897e1898d389835151f4e9606227721d"
        ]
      }
    ],
    "upgrade": [
      "Upgrade libssh2 to 2dae3024897e1898d389835151f4e9606227721d or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/libssh2/libssh2/pull/1705"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libssh2/libssh2/pull/1717"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
