CVE-2025-4877
There's a vulnerability in the libssh package where when a libssh …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/security/cve/CVE-2025-4877
- bugzilla.redhat.com/show_bug.cgi?id=2376193
- git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e91
- www.libssh.org/security/advisories/CVE-2025-4877.txt
- access.redhat.com/errata/RHSA-2026:18683
- nvd.nist.gov/vuln/detail/CVE-2025-4877
- cve.org/CVERecord?id=CVE-2025-4877
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.