
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (CVE-2025-4878) affects libssh, specifically related to the use of an uninitialized variable in the privatekeyfromfile() function. The issue was discovered and disclosed in June 2025, affecting all libssh versions. The privatekeyfromfile() function, which is now deprecated, can return an invalid private key under certain conditions, such as when the specified filename doesn't exist (LibSSH Advisory).
The vulnerability stems from the use of an uninitialized variable in the privatekeyfromfile() function. When specific conditions are met, such as the non-existence of the specified filename, the function returns an invalid private key. This defect could potentially lead to signing failures, Use-After-Free conditions, or heap corruption. The vulnerability has been assigned a CVSS v3.1 score of 3.3 (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C) (LibSSH Advisory).
The vulnerability can result in signing failures and potentially lead to more severe issues such as Use-After-Free conditions or heap corruption. The impact is considered relatively low due to the local access requirement and high complexity of exploitation, as reflected in the CVSS score (LibSSH Advisory).
The vulnerability has been patched in libssh version 0.11.2. System administrators are advised to upgrade to this version as soon as possible. No workarounds are available for this vulnerability. The affected privatekeyfromfile() function is deprecated and should not be used in new implementations (LibSSH Advisory, Debian Tracker).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."