CVE-2025-4878
A vulnerability was found in libssh, where an uninitialized …
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.
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-4878
- bugzilla.redhat.com/show_bug.cgi?id=2376184
- git.libssh.org/projects/libssh.git/commit/?id=697650caa97eaf7623924c75f9fcfec6dd423cd1
- git.libssh.org/projects/libssh.git/commit/?id=b35ee876adc92a208d47194772e99f9c71e0bedb
- www.libssh.org/security/advisories/CVE-2025-4878.txt
- access.redhat.com/errata/RHSA-2026:18683
- nvd.nist.gov/vuln/detail/CVE-2025-4878
- cve.org/CVERecord?id=CVE-2025-4878
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.