Vulnerability · Published Jul 24, 2025 · Assigned by redhat
CVE-2025-8114Libssh: null pointer dereference in libssh kex session id calculation
Medium 4.7
In plain English
A medium-severity null pointer dereference in libssh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)0.3%top 82.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
A flaw was found in libssh, a library that implements the SSH protocol. When calculating the session ID during the key exchange (KEX) process, an allocation failure in cryptographic functions may lead to a NULL pointer dereference. This issue can cause the client or server to crash.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | libssh | 0.10.4-18.el9 | ALSA-2026:18683 |
| AlmaLinux:9 | libssh-config | 0.10.4-18.el9 | ALSA-2026:18683 |
| AlmaLinux:9 | libssh-devel | 0.10.4-18.el9 | ALSA-2026:18683 |
| Alpine:v3.23 | libssh | 0.11.3-r0 | ALPINE-CVE-2025-8114 |
| Alpine:v3.24 | libssh | 0.11.3-r0 | ALPINE-CVE-2025-8114 |
| Debian:12 | libssh | 0.10.6-0+deb12u2 | DEBIAN-CVE-2025-8114 |
| Debian:13 | libssh | 0.11.2-1+deb13u1 | DEBIAN-CVE-2025-8114 |
| Debian:14 | libssh | 0.11.3-1 | DEBIAN-CVE-2025-8114 |
| Rocky Linux:9 | libssh | 0:0.10.4-18.el9 | RLSA-2026:18683 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.5 | USN-7849-1 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.5 | UBUNTU-CVE-2025-8114 |
| Ubuntu:24.04:LTS | libssh | 0.10.6-2ubuntu0.2 | USN-7849-1 |
| Ubuntu:24.04:LTS | libssh | 0.10.6-2ubuntu0.2 | UBUNTU-CVE-2025-8114 |
| Ubuntu:25.10 | libssh | 0.11.2-1ubuntu0.1 | UBUNTU-CVE-2025-8114 |
| Ubuntu:25.10 | libssh | 0.11.2-1ubuntu0.1 | USN-7849-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libssh | 0 – before 0.11.3 | |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2026:18683 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-8114 vdb-entry, x_refsource_REDHAT
- RHBZ#2383220 issue-tracking, x_refsource_REDHAT
- https://git.libssh.org/projects/libssh.git/commit/?id=53ac23ded4cb2c5463f6c4cd1525331bd578812d
- https://git.libssh.org/projects/libssh.git/commit/?id=65f363c9
- https://www.libssh.org/security/advisories/CVE-2025-8114.txt