Skip to content
Fencer Vulns
low 3.6

CVE-2025-4878 json

Libssh: use of uninitialized variable in privatekey_from_file()

published 2025-07-22 15 mo ago modified 2026-11-06 2 d ago also EUVD-2025-22335

cvss
3.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 13%
public exploits
0
none known

Summary

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.

Patch / fix

  • Red Hat Red Hat Enterprise Linux 9 0:0.10.4-18.el9
  • libssh Debian 12 0.10.6-0+deb12u2
  • libssh Debian 14, Debian 13 0.11.2-1

debian advisories DEBIAN-CVE-2025-4878

  • libssh Ubuntu 22.04 LTS 0.9.6-2ubuntu0.22.04.4
  • libssh Ubuntu 24.04 LTS 0.10.6-2ubuntu0.1
  • libssh Ubuntu Pro 16.04 LTS 0.6.3-4.3ubuntu0.6+esm2
  • libssh Ubuntu Pro 18.04 LTS 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4
  • libssh Ubuntu Pro 20.04 LTS 0.9.3-2ubuntu2.5+esm1

ubuntu advisories UBUNTU-CVE-2025-4878

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libssh RHEL 9 0.10.4-18.el9
  • libssh-config RHEL 9 0.10.4-18.el9

red hat advisories RHSA-2026:18683

  • libssh Linux Micro 6.1 0.10.6-slfo.1.1_2.1
  • libssh Linux Micro 6.0 0.10.6-2.1
  • libssh SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 0.9.8-150200.13.9.1
  • libssh SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +10 more 0.9.8-150400.3.9.1
  • libssh SLE Module for Basesystem 15 SP7, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 0.9.8-150600.11.3.1
  • libssh SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 0.6.3-12.15.1
  • libssh SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 0.9.8-3.15.1

suse advisories SUSE-SU-2025:20596-1SUSE-SU-2025:20557-1SUSE-SU-2025:02755-1SUSE-SU-2025:02281-1SUSE-SU-2025:02279-1SUSE-SU-2025:02278-1

  • libssh openSUSE Tumbleweed 0.11.2-1.1

opensuse advisories openSUSE-SU-2025:15243-1

  • libssh AlmaLinux 9 0.10.4-18.el9
  • libssh-config AlmaLinux 9 0.10.4-18.el9

almalinux advisories ALSA-2026:18683

  • libssh Rocky Linux 9 0.10.4-18.el9

rocky linux advisories RLSA-2026:18683

  • libssh Alpine 3.24, Alpine 3.23, Alpine 3.22 0.11.2-r0

alpine advisories ALPINE-CVE-2025-4878

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libssh CBL-Mariner 2.0, Azure Linux 3.0 0.10.6-3

azure linux advisories AZL-65643AZL-65646

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-4878 updated cvss 3.6

libssh: Use of uninitialized variable in privatekey_from_file()

  • Red Hat Enterprise Linux 6 libssh2 Red Hat Enterprise Linux 7 libssh2
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 libssh, libssh-config Red Hat Enterprise Linux 10 libssh Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 9) libssh-devel 0.10.4-18.el9, libssh-debuginfo 0.10.4-18.el9, libssh-debugsource 0.10.4-18.el9 Red Hat Enterprise Linux BaseOS (v. 9) libssh 0.10.4-18.el9, libssh-config 0.10.4-18.el9
    fixed: vendor fix RHSA-2026:18683

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
15 mo ago

Exploit prediction

0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 3.6 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected products

  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 6
  • Red Hat Red Hat Enterprise Linux 7
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat OpenShift Container Platform 4

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.