Quick answers
- Is CVE-2025-8114 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-8114 being exploited in the wild.
- How severe is CVE-2025-8114?
- Medium severity, with a CVSS score of 4.7, published 24 July 2025.
- Which products and versions are affected?
- Libssh up to and including 0.11.2.
- Is there a fix for CVE-2025-8114?
- A patch was published on 2025-08-14: Fixes committed to libssh git repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-8114 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2025-8114?
- Check whether you run Libssh at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A vulnerability exists in libssh within the `ssh_make_sessionid` function in `src/kex.c`. During the Key Exchange (KEX) process, the library fails to properly handle memory allocation failures when calculating the session ID. Specifically, if `malloc` fails for `session->next_crypto->session_id`, the code may proceed to dereference the resulting NULL pointer. This issue can be triggered by a local attacker with low privileges under conditions of high memory pressure or specific resource constraints. The flaw results in a crash (Denial of Service) of either the SSH client or server process. Patches have been released in libssh version 0.11.3 and backported to various distribution packages.
Affected products
- libssh libssh up to and including 0.11.2
Timeline
- 2025-07-24: disclosed: Initial report and CVE assignment
- 2025-07-24: advisory: NVD and Red Hat published advisory details
- 2025-08-14: patched: Fixes committed to libssh git repository
- 2026-05-19: patched: Red Hat released security updates for RHEL 9
References
- https://access.redhat.com/errata/RHSA-2026:18683
- https://access.redhat.com/security/cve/CVE-2025-8114
- https://bugzilla.redhat.com/show_bug.cgi?id=2383220
- 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