Patchwire CVEs, their patch status, and feeds to follow them

CVE-2025-5351

Fixed in a distro release EPSS <1%CVSS 6.5

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 2025-07-04 · CVE record · OSV

Products: libssh, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat OpenShift Container Platform 4

Distro releases

ReleasePackageFixed in
AlmaLinux 9libssh0.10.4-18.el9
AlmaLinux 9libssh-config0.10.4-18.el9
AlmaLinux 9libssh-devel0.10.4-18.el9
Amazon Linux 2023libssh0.10.6-1.amzn2023.0.2
Amazon Linux 2023libssh-config0.10.6-1.amzn2023.0.2
Amazon Linux 2023libssh-devel0.10.6-1.amzn2023.0.2
Debian 12libssh0.10.6-0+deb12u2
Debian 13libssh0.11.2-1
Debian 14libssh0.11.2-1
Red Hat Enterprise Linux 9libssh0:0.10.4-18.el9
Red Hat Enterprise Linux 9libssh-config0:0.10.4-18.el9
Red Hat Enterprise Linux 9libssh-debuginfo0:0.10.4-18.el9
Red Hat Enterprise Linux 9libssh-debugsource0:0.10.4-18.el9
Red Hat Enterprise Linux 9libssh-devel0:0.10.4-18.el9
Rocky Linux 9libssh0:0.10.4-18.el9
SUSE Linux Micro 6.0libssh0.10.6-2.1
SUSE Linux Micro 6.1libssh0.10.6-slfo.1.1_2.1
Ubuntu 22.04 LTSlibssh0.9.6-2ubuntu0.22.04.4
Ubuntu 24.04 LTSlibssh0.10.6-2ubuntu0.1
openSUSE Tumbleweedlibssh0.11.2-1.1