Security mailing lists by PureSourceCode

CVE-2025-5351

MEDIUM 6.5CVSS 3.1

Libssh: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD libssh libssh
cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
>= 0.10.0, < 0.11.2 0.11.2
NVD redhat openshift_container_platform
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
= 4.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
= 6.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD redhat enterprise_linux
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD redhat enterprise_linux
cpe: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/ libssh
cpe:/a:redhat:enterprise_linux:9::appstream
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux:10
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh2
cpe:/o:redhat:rhel_els:6
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh2
cpe:/o:redhat:rhel_els:7
CVE List https://access.redhat.com/downloads/content/package-browser/ libssh
cpe:/o:redhat:enterprise_linux:8
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-8
cpe:/a:redhat:openshift:4
all versions
CVE List https://access.redhat.com/downloads/content/package-browser/ openshift/ose-rhel-coreos-9
cpe:/a:redhat:openshift:4
all versions

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.