CVE-2025-8114
Medium · 4.7CVSS
4.7
EPSS
0.3%
Published
Jul 24, 2025
CISA due date
—
Cloudanix analysis
A bug in software used for secure network connections can make programs crash when certain rare memory conditions occur.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Null pointer dereference during libssh session ID calculation in KEX when cryptographic allocation fails, resulting in client or server process crash.
Why it matters to the business
Causes denial-of-service against SSH-dependent services and tools, leading to connection failures and operational disruption in environments using the affected library; low exploit probability but affects container credential helpers.
How an attack unfolds
An attacker with local low-privileged access crafts conditions to induce memory allocation failure inside libssh cryptographic routines during key exchange; the resulting NULL dereference terminates the SSH process.
How to fix it
Upgrade docker-credential-gcr-fips (Chainguard) to version 2.1.30-r3 or later; rebuild or redeploy any images depending on the vulnerable package.
How to confirm the fix worked
Confirm installed package version meets or exceeds the fixed release; test SSH connectivity and monitor for absence of crashes during KEX under memory pressure.
Typical attack path
- Obtain local access to the target system
- Initiate or observe an SSH key exchange that triggers allocation failure in libssh crypto functions
- Trigger NULL pointer dereference causing process termination
How to detect it
Inspect system and application logs for segmentation faults or abrupt terminations in libssh-using processes during key exchange; correlate with memory allocation events.
What your security team should do
- Apply the listed package upgrade immediately in all Chainguard-based environments
- Scan container images and runtime instances for the vulnerable version
- Review SSH service logs for unexpected crashes coinciding with key exchange
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | libssh | 0 | 0.11.3-r0 |
| Chainguard | libssh-dev | 0 | 0.11.3-r0 |
| Debian:11 | libssh | 0 | No fix |
| Debian:12 | libssh | 0 | No fix |
| Debian:13 | libssh | 0 | No fix |
| Debian:14 | libssh | 0 | No fix |
| SUSE:Linux Enterprise Micro 5.1 | libssh | 0 | 0.9.8-150200.13.12.1 |
| SUSE:Linux Enterprise Micro 5.2 | libssh | 0 | 0.9.8-150200.13.12.1 |
| SUSE:Linux Enterprise Micro 5.3 | libssh | 0 | 0.9.8-150400.3.12.1 |
| SUSE:Linux Enterprise Micro 5.4 | libssh | 0 | 0.9.8-150400.3.12.1 |
| SUSE:Linux Enterprise Micro 5.5 | libssh | 0 | 0.9.8-150400.3.12.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | libssh | 0 | 0.9.8-150600.11.6.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | libssh | 0 | 0.9.8-150600.11.6.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | libssh | 0 | 0.9.8-3.18.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | libssh | 0 | 0.6.3-12.21.1 |
| Wolfi | libssh | 0 | 0.11.3-r0 |
| Wolfi | libssh-dev | 0 | 0.11.3-r0 |
| openSUSE:Leap 15.6 | libssh | 0 | 0.9.8-150600.11.6.1 |
| openSUSE:Tumbleweed | libssh | 0 | 0.11.3-1.1 |
Related vulnerabilities
- CVE-2025-5987 A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. Also affects libssh
- CVE-2025-5318 A flaw was found in the libssh library in versions less than 0.11.2. Also affects libssh
- CVE-2025-8277 A flaw was found in libssh's handling of key exchange (KEX) processes when a client… Also affects libssh
- CVE-2025-4877 There's a vulnerability in the libssh package where when a libssh consumer passes in an… Also affects libssh
- CVE-2025-4878 A vulnerability was found in libssh, where an uninitialized variable exists under certain… Also affects libssh
- CVE-2025-5351 A flaw was found in the key export functionality of libssh. Also affects libssh
- CVE-2025-5372 A flaw was found in libssh versions built with OpenSSL versions older than 3.0… Also affects libssh
- CVE-2015-3146 The (1) SSH_MSG_NEWKEYS and (2) SSH_MSG_KEXDH_REPLY packet handlers in package_cb.c in… Also affects libssh