Vulnerability · CVE-2025-5351
A flaw was found in the key export functionality of libssh.
Published Jul 4, 2025 · catalog updated Sep 1, 2026 · Red Hat
Check this week
CVE-2025-5351 is not in CISA KEV. FIRST estimates a 62.00% chance of exploitation in the next 30 days. Check whether you run Red Hat.
Gaps on this record
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium6.5
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 62.00%
- Remediation
- Version ranges on file
- Affected products
- vendor Red Hat libssh 0.10.0 <0.11.2
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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- vendor Red Hat libssh 0.10.0 <0.11.20.10.0 <0.11.2
How to fix CVE-2025-5351
Recommended remediation
Affected version ranges suggest a fixed boundary. Verify against the vendor advisory for your release.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2025-5351 is not in CISA KEV. FIRST estimates a 62.00% chance of exploitation in the next 30 days. Check whether you run Red Hat.
Which versions are affected?
Compare what you have installed with Red Hat libssh 0.10.0 <0.11.2 0.10.0 <0.11.2. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 62.00%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Jul 4, 2025 · EUVD
Detected
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 ins
Sep 1, 2026 · EUVD
Updated
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 ins
Sources
- EUVDVulnerability recordEUVD-2025-19935
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 issu
euvd.enisa.europa.eu
References
Freshness
Last verified in this catalog Sep 1, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.