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.
Problem types
Product status
Any version before 0.11.2
0:0.10.4-18.el9 (rpm) before *
0:0.10.4-18.el9 (rpm) before *
Timeline
| 2025-07-03: | Reported to Red Hat. |
| 2025-06-24: | Made public. |
References
access.redhat.com/errata/RHSA-2026:18683 (RHSA-2026:18683)
access.redhat.com/security/cve/CVE-2025-4878
bugzilla.redhat.com/show_bug.cgi?id=2376184 (RHBZ#2376184)
git.libssh.org/...d=697650caa97eaf7623924c75f9fcfec6dd423cd1
git.libssh.org/...d=b35ee876adc92a208d47194772e99f9c71e0bedb
www.libssh.org/security/advisories/CVE-2025-4878.txt