CVE-2025-4877 Details
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.
A vulnerability exists in the libssh package, specifically in 32-bit builds, where the 'bin_to_base64()' function can suffer from an integer overflow. This overflow occurs when 'ssh_get_fingerprint_hash()' is fed an excessively large input buffer, causing a memory under-allocation. The resulting out-of-bounds write can corrupt the heap. Although this issue is not present in supported Red Hat products, it is crucial for users of libssh to be aware of it.
Users are advised to upgrade to libssh version 0.11.2 or apply the available patch. After applying the patch, the 'bin_to_base64()' function will reject inputs larger than 256MB, preventing the integer overflow.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 20, 2025CISA-ADP
Assessed Aug 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:18683 | [email protected] | |
| https://access.redhat.com/security/cve/CVE-2025-4877 | [email protected] | AdvisoryVendor |
| https://bugzilla.redhat.com/show_bug.cgi?id=2376193 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d | [email protected] | Source CodeVendor |
| https://www.libssh.org/security/advisories/CVE-2025-4877.txt | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libssh | >= 0, < 0.11.2 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | [email protected] |
| Aug 31, 2026 | CVE Modified | [email protected] |
| Aug 21, 2026 | CVE Modified | [email protected] |
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 19, 2026 | CVE Modified | [email protected] |
| Aug 20, 2025 | New CVE Received | [email protected] |
Volerion