CVE record · CVE-2025-5351

Libssh: double free vulnerability in libssh key export functions

CVSS 6.5 MediumEPSS 0.0062 · 49th percentile

Published by the CVE Program (CNA: redhat) at 4 Jul 2025, 08:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

Affected products, as the CNA wrote them
VendorProductVersions
libssh libssh Package name: libssh https://git.libssh.org/projects/libssh.git/
  • affected 0.10.0 to before 0.11.2 semver
Other versions: unaffected
Red Hat Red Hat Enterprise Linux 9 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-18.el9 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 9 Package name: libssh https://access.redhat.com/downloads/content/package-browser/
  • unaffected 0:0.10.4-18.el9 to before * rpm
Other versions: affected
Red Hat Red Hat Enterprise Linux 10 Package name: libssh https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: affected
Red Hat Red Hat Enterprise Linux 6 Package name: libssh2 https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: unknown
Red Hat Red Hat Enterprise Linux 7 Package name: libssh2 https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: unknown
Red Hat Red Hat Enterprise Linux 8 Package name: libssh https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4 Package name: openshift/ose-rhel-coreos-8 https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: affected
Red Hat Red Hat OpenShift Container Platform 4 Package name: openshift/ose-rhel-coreos-9 https://access.redhat.com/downloads/content/package-browser/ No versions given Other versions: affected
Identifiers
CVE-2025-5351
CNA
redhat
Weakness (CWE)
CWE-415
Published
4 Jul 2025
Updated
5 Nov 2026

Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CNA (redhat)
  • CISA KEV Not listed.
  • EPSS 0.0062, the 49th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 4 Jul 2025, 08:16 UTC Confirmed by the CVE List
  2. 4 Jul 2025, 09:15 UTC Confirmed by NVD

Sources

References from the CNA

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.