# CVE-2025-8114: Libssh: null pointer dereference in libssh kex session id calculation

> An allocation failure during SSH key exchange causes a null pointer dereference, crashing the client or server.

- **Severity:** Medium 4.7 (`CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 24 Jul 2025
- **Updated:** 1 Sep 2026
- **Also known as:** AZL-66255, AZL-66267, BELL-CVE-2025-8114, DEBIAN-CVE-2025-8114, GHSA-fpr2-pgq7-qwg4, JLSEC-2025-99, MINI-h2jw-w98c-7x44, OESA-2025-2301, SUSE-SU-2025:4408-1, UBUNTU-CVE-2025-8114, USN-7849-1

## What is CVE-2025-8114?

CVE-2025-8114 is a medium-severity vulnerability in Red Hat Enterprise Linux 10, published on 24 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

### 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.

Weakness: CWE-476 (NULL Pointer Dereference)

## Which versions are affected by CVE-2025-8114?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libssh` | SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 0.6.3-12.21.1 |

Products: Libssh Libssh.

## How do I fix CVE-2025-8114?

Apply the vendor's patch.

## Is CVE-2025-8114 being exploited?

There is no known exploitation of CVE-2025-8114 in the wild and no public exploit code.

## Other vulnerabilities in Red Hat Enterprise Linux 10

- [CVE-2026-59851](https://insights.sbomify.com/CVE-2026-59851/): Libssh: libssh: authentication bypass via missing gssapi principal check (high 8.8)
- [CVE-2025-5987](https://insights.sbomify.com/CVE-2025-5987/): Libssh: invalid return code for chacha20 poly1305 with openssl backend (high 8.1)
- [CVE-2025-14821](https://insights.sbomify.com/CVE-2025-14821/): Libssh: libssh: insecure default configuration leads to local man-in-the-middle attacks on windows (high 7.8)
- [CVE-2012-4560](https://insights.sbomify.com/CVE-2012-4560/): Memory corruption in n/a (high 7.5)
- [CVE-2012-4562](https://insights.sbomify.com/CVE-2012-4562/): Integer overflow in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-8114 and fix it if it is affected.

What it is: CVE-2025-8114 is a medium-severity vulnerability in Red Hat Enterprise Linux 10, published on 24 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-8114 in the wild and no public exploit code.

Affected product: Red Hat Enterprise Linux 10. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-8114/ (Markdown: https://insights.sbomify.com/CVE-2025-8114/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-8114
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-8114
- OSV: https://osv.dev/vulnerability/CVE-2025-8114

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-8114/
Summaries are generated and may contain mistakes; the official description above is the record.
