CVE-2025-4878
Libssh: use of uninitialized variable in privatekey_from_file()
- State
- Published
- Severity
- 3.6 Low
- Published
- Jul 22, 2025
- Updated
- Sep 1, 2026
- Reserved
- May 16, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 3.6 Low | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N | redhat |
Weaknesses
- CWE-416 Use After Free
Affected Products
| Product | Versions |
|---|---|
libssh |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 10Red Hat | |
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat |
References
- RHSA-2026:18683vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-4878vdb-entry
- RHBZ#2376184issue-tracking
- 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
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.