Skip to content
Threat Brief

← All advisories

CVE-2025-5351

Medium 6.5No known exploitationFix available

Libssh: double free vulnerability in libssh key export functions

Record last updated

CVSS score

6.5

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.6%

Higher than 51% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

Description

A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.

Weakness: CWE-415

Patching and mitigation

Patch status
Fix available (source: CVE record (redhat))
Fix documented (source date)
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Administrators should apply vendor-supplied patches as soon as they become available. Source (opens in a new tab)
Vendor guidance
access.redhat.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Red HatRed Hat Enterprise Linux 10Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 8Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4Not documentedNot documentedCVE Program
libsshlibsshfrom 0.10.0 before 0.11.20.11.2CVE Program
libsshlibsshfrom 0.10.0 before 0.11.20.11.2NIST NVD
redhatenterprise_linux10.0Not documentedNIST NVD
redhatenterprise_linux6.0Not documentedNIST NVD
redhatenterprise_linux7.0Not documentedNIST NVD
redhatenterprise_linux8.0Not documentedNIST NVD
redhatenterprise_linux9.0Not documentedNIST NVD
redhatopenshift_container_platform4.0Not documentedNIST NVD
Red HatRed Hat Enterprise Linux 6 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 9 (unaffected)0:0.10.4-18.el9Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9 (unaffected)0:0.10.4-18.el9Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (redhat)

    Source: CVE record (redhat) (opens in a new tab)

Vendor guidance and references