CVE•Published 2025-07-07•Modified 2026-06-30•1 article on news•7 live references•NVD data
CVE-2025-5987Libssh · Libssh
Vulnerability data via NVD (ingested)
CVSS v3.1
8.1
HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS percentile
70
Exploit Prediction Scoring System · top 30% of all CVEs
Weaknesses (CWE)
Description
A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.
Timeline
Published 2025-07-07
Modified 2026-06-30
External references
Search for exposed instances
Shodan + Censys queries derived from NVD's CPE data. The vuln tag catches assets Shodan has explicitly linked to this CVE; the product / banner fingerprints find exposed instances even when the vuln tag was never applied (which is common).
Shodan · vuln tag0 hosts
vuln:CVE-2025-5987Hosts Shodan has explicitly fingerprinted as vulnerable.
Shodan · product
product:"Libssh Libssh"All exposed Libssh Libssh instances — cross-reference with the CVE's affected-version range.
Shodan · banner/body mention
http.html:"Libssh"HTTP body or banner mentions "Libssh" — catches deploys Shodan didn't identify as a product.
More intel sources (5)
Shodan report
vuln:CVE-2025-5987Country / ASN / product breakdown for the vuln query.
Censys
vulnerabilities.cve_id: CVE-2025-5987Censys host search filtered to this CVE id.
grep.app
CVE-2025-5987Public source-code mentions — fast PoC discovery.
GitHub code
CVE-2025-5987GitHub code search for direct mentions.
Google dork
"CVE-2025-5987" exploit -site:nvd.nist.govWrite-ups and news, NVD excluded.