# CVE-2025-4878: Libssh: use of uninitialized variable in privatekey\_from\_file()

- Priority: **Routine**
- Reason: Not severe (CVSS 3.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-22 · Modified: 2026-11-25
- Aliases: UBUNTU-CVE-2025-4878, DEBIAN-CVE-2025-4878, ALPINE-CVE-2025-4878
- Record: https://cvemate.com/vulnerability/CVE-2025-4878 · JSON: https://cvemate.com/vulnerability/CVE-2025-4878/json

## Description

```text
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.
```

## Signals

- CVSS: 3.6 low (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.234%, percentile 15.333%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libssh (Alpine Linux): \< 0.11.2-r0
- debian libssh (Debian): \< 0.10.6-0+deb12u2 \| \< 0.11.2-1
- ubuntu libssh (Ubuntu): \< 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

## References

- <https://access.redhat.com/errata/RHSA-2026:18683>
- <https://access.redhat.com/security/cve/CVE-2025-4878>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2376184>
- <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>
- <https://ubuntu.com/security/CVE-2025-4878>
- <https://www.cve.org/CVERecord?id=CVE-2025-4878>
- <https://ubuntu.com/security/notices/USN-7619-1>
- <https://ubuntu.com/security/notices/USN-7696-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-4878>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-4878>
- <https://security.alpinelinux.org/vuln/CVE-2025-4878>

---

Data as of 2026-12-05T09:58:36.536Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
