CVE-2025-5351
MEDIUM 6.5CVSS 3.1Libssh: double free vulnerability in libssh key export functions
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.
- Published
- 4 Jul 2025
- Last modified
- 24 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-415
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CVE List | redhat | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | libssh | libsshcpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* |
>= 0.10.0, < 0.11.2 | 0.11.2 |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:* |
= 4.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| CVE List | https://git.libssh.org/projects/libssh.git/ | libssh | >= 0.10.0, < 0.11.2 | 0.11.2 |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:enterprise_linux:9::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/o:redhat:enterprise_linux:10 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libssh2cpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libssh2cpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/o:redhat:enterprise_linux:8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-8cpe:/a:redhat:openshift:4 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-9cpe:/a:redhat:openshift:4 |
all versions |
References
- https://access.redhat.com/errata/RHSA-2026:18683 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-5351 · Third Party Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2369367 · Issue Tracking, Third Party Advisory, issue-tracking, x_refsource_REDHAT
History
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 4 Jul 2025)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 4 Jul 2025)