CVE-2025-4878: Libssh: use of uninitialized variable in privatekey_from_file()
Vulnerability summary
CVE-2025-4878 is a low (CVSS 3.6) Use After Free vulnerability in libssh. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 15.3% of scored vulnerabilities.
Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 10Timeline
- 22-07-2025PublishedVulnerability first disclosed.
- 25-11-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- NVDNIST3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.23% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- libssh< 0.11.2-r0
Debian1 product
- libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Ubuntu1 product
- libssh< 0.6.3-4.3ubuntu0.6+esm2 | < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 | < 0.9.3-2ubuntu2.5+esm1 | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1
3 vendors · 3 products