Skip to content

CVE-2025-4878 Libssh: use of uninitialized variable in privatekey_from_file()

LowCVSS 3.6 EPSS 0.23%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.

Upgrade path

14 packages: 10 fixed, 2 partially fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat openshift All versions No fix listed No fix yet
cbl-mariner libssh(CBL-Mariner 2.0) < 0.10.6-3; All versions 0.10.6-3 Partially fixed
redhat enterprise linux < 0:0.10.4-18.el9; All versions 0:0.10.4-18.el9 Partially fixed
alpine/libssh(Alpine v3.22) < 0.11.2-r0 0.11.2-r0 Fixed
alpine/libssh(Alpine v3.23) < 0.11.2-r0 0.11.2-r0 Fixed
alpine/libssh(Alpine v3.24) < 0.11.2-r0 0.11.2-r0 Fixed
azure linux libssh(Azure Linux 3.0) < 0.10.6-3 0.10.6-3 Fixed
debian/libssh(Debian 12) < 0.10.6-0+deb12u2; = 0.10.5-2; = 0.10.5-3; = 0.10.5-3+hurd.1 +1 more 0.10.6-0+deb12u2 Fixed
debian/libssh(Debian 13) < 0.11.2-1 0.11.2-1 Fixed
debian/libssh(Debian 14) < 0.11.2-1 0.11.2-1 Fixed
libssh < 0.11.2 0.11.2 Fixed
ubuntu/libssh(Ubuntu 22.04) < 0.9.6-2ubuntu0.22.04.4 0.9.6-2ubuntu0.22.04.4 Fixed
ubuntu/libssh(Ubuntu 24.04) < 0.10.6-2ubuntu0.1 0.10.6-2ubuntu0.1 Fixed
redhat rhel els = 6; = 7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cbl-mariner libssh(CBL-Mariner:2.0) All versions No fix listed
azure linux libssh(Azure Linux:3.0) < 0.10.6-3 0.10.6-3
cbl-mariner libssh(CBL-Mariner:2.0) < 0.10.6-3 0.10.6-3
debian/libssh(Debian:12) < 0.10.6-0+deb12u2 0.10.6-0+deb12u2
debian/libssh(Debian:12) = 0.10.5-2 No fix listed
debian/libssh(Debian:12) = 0.10.5-3 No fix listed
debian/libssh(Debian:12) = 0.10.5-3+hurd.1 No fix listed
debian/libssh(Debian:12) = 0.10.6-0+deb12u1 No fix listed
debian/libssh(Debian:13) < 0.11.2-1 0.11.2-1
debian/libssh(Debian:14) < 0.11.2-1 0.11.2-1
libssh < 0.11.2 0.11.2
redhat enterprise linux < 0:0.10.4-18.el9 0:0.10.4-18.el9
redhat enterprise linux All versions No fix listed
redhat rhel els = 6 No fix listed
redhat rhel els = 7 No fix listed
redhat openshift All versions No fix listed
ubuntu/libssh(Ubuntu:22.04) < 0.9.6-2ubuntu0.22.04.4 0.9.6-2ubuntu0.22.04.4
alpine/libssh(Alpine:v3.22) < 0.11.2-r0 0.11.2-r0
alpine/libssh(Alpine:v3.23) < 0.11.2-r0 0.11.2-r0
alpine/libssh(Alpine:v3.24) < 0.11.2-r0 0.11.2-r0
ubuntu/libssh(Ubuntu:24.04) < 0.10.6-2ubuntu0.1 0.10.6-2ubuntu0.1

References