CVE-2025-4878
July 22, 2025
In libssh before 0.11.2 the privatekey_from_file() uses an uninitialized variable under certain
conditions, such as if the file specified by the filename argument doesn't
exist. This causes the code to return an invalid private key.
This defect, in turn, might cause signing failure. The bug might also cause a
Use-After-Free or corrupt the heap.
Affected Packages
https://git.libssh.org/projects/libssh.git (SCM_GIT):
Affected version(s) >=libssh-0.5.1 <libssh-0.11.2Fix Suggestion:
Update to version libssh-0.11.2Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
1.1
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
POC
CVSS v3
Base Score:
3.6
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Exploit Maturity
PROOF-OF-CONCEPT
Weakness Type (CWE)
Use After Free
EPSS
Base Score:
0.02