CVE-2025-4877 in Consumer products
There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the ...
Affects 0 products from 3 vendors. Facts below cite their sources.
Requires local access, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the program perform out of bounds write leading to a heap corruption. This issue affects only 32-bits builds of libssh.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-4877 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-036819-M |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
| Published | 2025-08-20 |
| Last modified | 2026-11-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A vulnerability in the libssh package can lead to heap corruption due to an integer overflow in the bin_to_base64() function when handling unexpectedly large input buffers.
An attacker can exploit this vulnerability by providing a large input buffer to the ssh_get_fingerprint_hash() function, causing an integer overflow in bin_to_base64() which results in memory under allocation and potential out-of-bounds writes.
Questions
What is CVE-2025-4877?
A vulnerability in the libssh package can lead to heap corruption due to an integer overflow in the bin_to_base64() function when handling unexpectedly large input buffers.
What is the CVSS score for CVE-2025-4877?
CVE-2025-4877 has CVSS 4.5 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L. EPSS: 0.2%.
Is CVE-2025-4877 actively exploited?
No confirmed active exploitation of CVE-2025-4877 as of 2026-11-25.
How do I remediate CVE-2025-4877?
Priority: MEDIUM.
What systems are affected by CVE-2025-4877?
CVE-2025-4877 affects Consumer; Libssh; Program.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Consumer","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-24.