What’s Vulnerable › Vulnerabilities
CVE-2025-4878: Libssh: use of uninitialized variable in privatekey_from_file()
- Severity: low (CVSS 3.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-07-22 · updated 2026-09-01
- Weakness: CWE-416
Description
A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.
Affected products
- Red Hat OpenShift Container Platform 4.18: all versions
- Red Hat Enterprise Linux 10: all versions
- Red Hat Enterprise Linux 8: all versions
- Red Hat Enterprise Linux 9: all versions — fixed in 0:0.10.4-18.el9
How to fix
Upgrade to a fixed version: Red Hat Enterprise Linux 9 0:0.10.4-18.el9. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2026:18683
- https://access.redhat.com/security/cve/CVE-2025-4878
- https://bugzilla.redhat.com/show_bug.cgi?id=2376184
- https://git.libssh.org/projects/libssh.git/commit/?id=697650caa97eaf7623924c75f9fcfec6dd423cd1
- https://git.libssh.org/projects/libssh.git/commit/?id=b35ee876adc92a208d47194772e99f9c71e0bedb
- https://www.libssh.org/security/advisories/CVE-2025-4878.txt
Get alerted when CVE-2025-4878 or the next vulnerability affects your stack