---
id: CVE-2025-8114
title: 'A flaw was found in libssh, a library that implements the SSH protocol'
summary: >-
  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 …
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-476
vendor: libssh
product: libssh
affected:
  - libssh <= 0.11.2
published: '2025-07-24'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-8114'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:18683'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-8114'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2383220'
    label: secalert@redhat.com
  - url: >-
      https://git.libssh.org/projects/libssh.git/commit/?id=53ac23ded4cb2c5463f6c4cd1525331bd578812d
    label: secalert@redhat.com
  - url: 'https://git.libssh.org/projects/libssh.git/commit/?id=65f363c9'
    label: secalert@redhat.com
  - url: 'https://www.libssh.org/security/advisories/CVE-2025-8114.txt'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00222
epssPercentile: 0.11322
ingestedAt: '2026-06-29T13:24:34.398Z'
---

## Overview

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

- `libssh <= 0.11.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
