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.
References6
- access.redhat.com/errata/RHSA-2026:18683
- access.redhat.com/security/cve/CVE-2025-4878
- bugzilla.redhat.com/show_bug.cgi?id=2376184
- git.libssh.org/projects/libssh.git/commit/?id=697650caa97eaf762…
- git.libssh.org/projects/libssh.git/commit/?id=b35ee876adc92a208…
- www.libssh.org/security/advisories/CVE-2025-4878.txt
Metrics
- CVSS 3.1
-
3.6
LOW
Score source: CNA
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 14 · as of 8 November 2026
- CWE
- CWE-416
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.