cve.bz

CVE-2025-8114 libssh libssh: NULL Pointer Dereference

4.7 mediumEPSS 0.3%Fix available

Medium (4.7) in libssh libssh. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-07-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:0.10.4-18.el9
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-8114 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-8114?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-8114?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-8114 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 90:0.10.4-18.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libssh0.9.8-0+deb11u2DLA-4385-1
Debian12libssh0.10.6-0+deb12u2DEBIAN-CVE-2025-8114
Debian13libssh0.11.2-1+deb13u1DEBIAN-CVE-2025-8114
Debian14libssh0.11.3-1DEBIAN-CVE-2025-8114
Ubuntu22.04:LTSlibssh0.9.6-2ubuntu0.22.04.5UBUNTU-CVE-2025-8114 USN-7849-1
Ubuntu24.04:LTSlibssh0.10.6-2ubuntu0.2UBUNTU-CVE-2025-8114 USN-7849-1
Ubuntu25.10libssh0.11.2-1ubuntu0.1UBUNTU-CVE-2025-8114 USN-7849-1
UbuntuPro:16.04:LTSlibssh0.6.3-4.3ubuntu0.6+esm3UBUNTU-CVE-2025-8114 USN-7849-1
UbuntuPro:18.04:LTSlibssh0.8.0~20170825.94fa1e38-1ubuntu0.7+esm5UBUNTU-CVE-2025-8114 USN-7849-1
UbuntuPro:20.04:LTSlibssh0.9.3-2ubuntu2.5+esm2UBUNTU-CVE-2025-8114 USN-7849-1
Red Hatenterprise_linux:9::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.10.4-18.el9RHSA-2026:18683
Red Hatenterprise_linux:9::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.10.4-18.el9RHSA-2026:18683
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2libssh0.9.8-150200.13.12.1SUSE-SU-2025:3787-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5libssh0.9.8-150400.3.12.1SUSE-SU-2025:3788-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7libssh0.9.8-150600.11.6.1SUSE-SU-2025:03369-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libssh0.6.3-12.21.1SUSE-SU-2025:4408-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libssh0.9.8-3.18.1SUSE-SU-2025:03368-1
SUSELinux Micro 6.0libssh0.10.6-3.1SUSE-SU-2025:20847-1
SUSELinux Micro 6.1libssh0.10.6-slfo.1.1_3.1SUSE-SU-2025:20894-1
openSUSELeap 15.6libssh0.9.8-150600.11.6.1SUSE-SU-2025:03369-1
openSUSETumbleweedlibssh0.11.3-1.1openSUSE-SU-2025:15545-1
AlmaLinux9libssh, libssh-devel, libssh-config0.10.4-18.el9ALSA-2026:18683
Rocky Linux9libssh0:0.10.4-18.el9RLSA-2026:18683
Alpinev3.23, v3.24libssh0.11.3-r0ALPINE-CVE-2025-8114
Azure Linux2libssh0.10.6-5AZL-66267
Azure Linux3libssh0.10.6-5AZL-66255
Alpaquita23, 25, streamlibssh0.11.3-r0BELL-CVE-2025-8114

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The Red Hat Product Security team has assessed the severity of this vulnerability as Moderate, due to its local attack vector and high complexity of exploitation. Although it requires specific allocation failure scenarios, successful exploitation can result in a crash of SSH clients or servers using libssh. This is caused by a NULL pointer dereference during the calculation of the KEX session ID.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9libssh-0:0.10.4-18.el9Fixed 2026-05-19RHSA-2026:18683
Red Hat Enterprise Linux 10libsshFix deferred
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 8libsshFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-8114.

References

Check your stackJSON