CVE-2025-4877: Out-of-bounds Write
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.
AI Analysis
Technical Summary
The vulnerability CVE-2025-4877 in libssh occurs specifically in 32-bit builds when the ssh_get_fingerprint_hash() function receives an unexpectedly large input buffer. This triggers an integer overflow in the bin_to_base64() function, causing memory under allocation and enabling out-of-bounds writes that corrupt the heap. The issue has been assigned a CVSS 3.1 base score of 4.5 (medium severity) with attack vector local, high attack complexity, low privileges required, no user interaction, and impacts confidentiality, integrity, and availability to a limited extent. Red Hat has published advisories and released patches for libssh in Red Hat Enterprise Linux 9 and related variants to fix this vulnerability.
Potential Impact
Successful exploitation can lead to heap corruption due to out-of-bounds writes, potentially causing application instability or crashes. The impact on confidentiality, integrity, and availability is rated low to medium. The vulnerability requires local access with high complexity and low privileges, limiting the ease of exploitation. It affects only 32-bit builds of libssh.
Mitigation Recommendations
Red Hat has released official security updates that fix this vulnerability in libssh packages for Red Hat Enterprise Linux 9 and related distributions. Users should apply these updates promptly to remediate the issue. Refer to Red Hat advisory RHSA-2026:18683 and the linked update instructions at https://access.redhat.com/articles/11258 for detailed patching guidance. No additional mitigation is required beyond applying the official fix.
CVE-2025-4877: Out-of-bounds Write
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.
CVSS v3.1
Score 4.5medium
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2025-4877 in libssh occurs specifically in 32-bit builds when the ssh_get_fingerprint_hash() function receives an unexpectedly large input buffer. This triggers an integer overflow in the bin_to_base64() function, causing memory under allocation and enabling out-of-bounds writes that corrupt the heap. The issue has been assigned a CVSS 3.1 base score of 4.5 (medium severity) with attack vector local, high attack complexity, low privileges required, no user interaction, and impacts confidentiality, integrity, and availability to a limited extent. Red Hat has published advisories and released patches for libssh in Red Hat Enterprise Linux 9 and related variants to fix this vulnerability.
Potential Impact
Successful exploitation can lead to heap corruption due to out-of-bounds writes, potentially causing application instability or crashes. The impact on confidentiality, integrity, and availability is rated low to medium. The vulnerability requires local access with high complexity and low privileges, limiting the ease of exploitation. It affects only 32-bit builds of libssh.
Mitigation Recommendations
Red Hat has released official security updates that fix this vulnerability in libssh packages for Red Hat Enterprise Linux 9 and related distributions. Users should apply these updates promptly to remediate the issue. Refer to Red Hat advisory RHSA-2026:18683 and the linked update instructions at https://access.redhat.com/articles/11258 for detailed patching guidance. No additional mitigation is required beyond applying the official fix.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- redhat
- Date Reserved
- 2025-05-16T22:23:41.045Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/errata/RHSA-2026:18683","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-4877","vendor":"Red Hat"}]
Threat ID: 68a5c06fad5a09ad0004bff1
Added to database: 08/20/2025, 12:32:47 UTC
Last enriched: 07/02/2026, 21:57:14 UTC
Last updated: 09/10/2026, 19:36:50 UTC
Views: 202
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.