Skip to content
3.6 Low

CVE-2025-4878 Libssh: use of uninitialized variable in privatekey_from_file()

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.

CVSS 3.1 detail

Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Exploitable with local access to the machine, with an ordinary account and without any user action; the impact on data or service is limited.

Attack vector
Local
Attack complexity
High
Privileges required
Low
Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Affected products and versions

Product Affected versions Fixed in
Red Hat Enterprise Linux 10 Versions not published
Red Hat Enterprise Linux 6 Versions not published
Red Hat Enterprise Linux 7 Versions not published
Red Hat Enterprise Linux 8 Versions not published
Red Hat Enterprise Linux 9 Versions not published
Red Hat OpenShift Container Platform 4 Versions not published
Red Hat In-Vehicle Operating System 1 Versions not published
The 1456 CVEs of Red Hat Enterprise Linux 10 →
Track this CVE