CVE-2025-4878

Libssh: use of uninitialized variable in privatekey_from_file()

At a glance

Severity
LOW 3.6
EPSS
EPSS 0.23 % · percentile 14 (2026-10-28)
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Scores

VersionScoreVectorScored by
CVSS 3.1LOW 3.6CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:Nredhat
CVSS 3.1LOW 3.6CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NNVD · secalert@redhat.com (Secondary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected products

ProductVersions
libsshaffected 0 < 0.11.2
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-18.el9 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:0.10.4-18.el9 < *
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
Red Hat · Red Hat OpenShift Container Platform 4

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD