CVE-2025-4877

published 20 Aug 2025 · updated 5 Nov 2026

Libssh: write beyond bounds in binary to base64 conversion functions

4.5MediumCVSS 4.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.11.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatOpenShift Container Platform
<0.11.20.11.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-4877 severity on Zeptric[![CVE-2025-4877](https://zeptric.io/badge/cve/CVE-2025-4877.svg)](https://zeptric.io/cve/CVE-2025-4877)