CVE-2025-4878

Libssh: use of uninitialized variable in privatekey_from_file()

State
Published
Severity
3.6 Low
Published
Jul 22, 2025
Updated
Sep 1, 2026
Reserved
May 16, 2025

Read the record on cve.org

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

CVSSScoreVectorSource
3.13.6 LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:Nredhat

Weaknesses

Affected Products

ProductVersions
libssh
  • before 0.11.2Affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.10.4-18.el9 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 0:0.10.4-18.el9 and laterNot affected
Red Hat Enterprise Linux 10Red Hat
    Red Hat Enterprise Linux 6Red Hat
      Red Hat Enterprise Linux 7Red Hat
        Red Hat Enterprise Linux 8Red Hat
          Red Hat OpenShift Container Platform 4Red Hat
            Red Hat OpenShift Container Platform 4Red Hat

              References

              Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.