CVE-2026-5260
High · 8.2CVSS
8.2
EPSS
0.9%
Published
May 26, 2026
CISA due date
—
Cloudanix analysis
A flaw in some secure-connection software could let an outsider crash affected services or potentially expose small pieces of sensitive memory if older RSA connection settings are enabled.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Other
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
This is a remotely reachable memory-corruption flaw in libgnutls affecting servers that use RSA key exchange with an RSA private key backed by a PKCS#11 token. A malicious client can send an extremely short premaster secret during the TLS RSA ClientKeyExchange flow, causing GnuTLS to perform a short heap overread. The most likely outcomes are process instability or denial of service, with a lower-confidence but plausible risk of disclosure of adjacent process memory. The weakness is network-exploitable, requires no authentication or user interaction, and is only relevant where vulnerable GnuTLS code paths, RSA key exchange, and PKCS#11-backed RSA keys are in use.
Why it matters to the business
Exposed services may be crashed remotely or may disclose small amounts of sensitive process memory, potentially affecting public-facing applications, VPNs, mail gateways, directory services, appliances, or other TLS-enabled systems that rely on GnuTLS and hardware/security-token-backed RSA keys. Operationally, this can cause service outages and incident response activity; confidentiality impact is more limited but could still expose session-related data or application memory fragments. The CVSS score is high, but current EPSS is low, it is not listed in CISA KEV, and no mature public exploitation is indicated, so remediation should be prioritized for internet-facing and high-availability services rather than treated as confirmed mass exploitation.
How an attack unfolds
An attacker first identifies a TLS service that is implemented with a vulnerable libgnutls version and supports RSA key exchange, particularly one using an RSA certificate whose private key operations are delegated to a PKCS#11 token such as an HSM, smart card, or software token. The attacker initiates a TLS handshake and steers negotiation toward an RSA key exchange cipher suite instead of an ephemeral ECDHE/DHE suite. During the ClientKeyExchange step, the attacker sends a malformed, extremely short premaster secret. When the server processes this value through the vulnerable GnuTLS/PKCS#11 path, the library can read beyond the intended heap buffer. Depending on build options, allocator behavior, service error handling, and surrounding memory contents, the result may be a TLS handshake failure, service crash, repeated denial of service, or limited memory disclosure through observable behavior or error paths.
How to fix it
Upgrade libgnutls and all vendor packages or appliances that bundle it to a version containing the vendor fix as soon as fixed builds are available. No exact fixed versions were provided in the input, so use operating-system, appliance, and application vendor advisories as the source of truth. Give priority to internet-facing services, services using PKCS#11/HSM-backed RSA certificates, and high-availability workloads. As a mitigation, disable static RSA key exchange cipher suites, commonly shown as TLS_RSA_* suites, and require modern ECDHE or DHE cipher suites. If RSA key exchange cannot be disabled immediately, move TLS termination to a patched component, restrict network access to trusted clients, rate-limit TLS handshakes, and consider temporarily avoiding vulnerable PKCS#11-backed RSA configurations where operationally feasible. Restart affected services after package upgrades so patched libraries are actually loaded.
How to confirm the fix worked
Confirm exposure by inventorying systems and containers for GnuTLS/libgnutls use, then checking package versions with the platform package manager or tools such as gnutls-cli --version where applicable. Identify services configured with PKCS#11 URIs, HSM integrations, smart-card-backed keys, or token-backed RSA private keys. Validate that externally reachable TLS endpoints no longer accept static RSA key exchange suites using tools such as testssl.sh, nmap ssl-enum-ciphers, openssl s_client cipher testing, or equivalent scanners; TLS_RSA_* suites should be absent or disabled. After patching, restart services and verify the running process has loaded the updated libgnutls shared library, for example with lsof, /proc mappings, or service restart timestamps. Review vendor advisories to map installed package versions to fixed releases once published.
Typical attack path
- Scan for TLS services that expose GnuTLS-based endpoints or appliances and accept RSA key exchange cipher suites.
- Identify services using RSA certificates and, where possible, PKCS#11-backed private key operations such as HSM or token integrations.
- Open a TLS connection and negotiate a vulnerable RSA key exchange path rather than an ephemeral key exchange suite.
- Send a malformed ClientKeyExchange message containing an extremely short premaster secret.
- Observe whether the server returns abnormal TLS errors, drops the connection, crashes, restarts, or leaks data-dependent behavior.
- Repeat against exposed services to cause instability or to attempt limited information disclosure.
How to detect it
To determine whether exploitation was attempted or successful, review logs from TLS-terminating applications, reverse proxies, VPNs, mail servers, directory services, systemd journals, syslog, container logs, and appliance event logs for unusual TLS handshake failures involving RSA key exchange and PKCS#11-backed keys. Correlate these events with process crashes, core dumps, service restarts, watchdog resets, segmentation faults, allocator errors, or abnormal increases in failed handshakes from the same source IPs. Network teams can inspect packet captures or IDS telemetry for TLS handshakes that negotiate RSA key exchange followed by an anomalously short ClientKeyExchange payload and immediate connection teardown or fatal alert. On hosts, look for new core files from GnuTLS-linked services and examine crash backtraces for libgnutls functions in RSA key exchange, premaster secret handling, or PKCS#11 private key operations. Because public exploit maturity is currently reported as none and no KEV listing is present, absence of known commodity IOCs is expected; detection should focus on behavioral anomalies around TLS negotiation and service instability.
- TLS_RSA_
- ClientKeyExchange
- premaster secret
- PKCS#11
- pkcs11:
- libgnutls
- gnutls
- A TLS fatal alert has been received
- Error in the pull function
- Error in the push function
- Segmentation fault
- segfault
- core dumped
- malloc():
- double free or corruption
- free(): invalid pointer
What your security team should do
- Inventory all externally reachable and business-critical services that use GnuTLS, especially those with PKCS#11, HSM, smart-card, or token-backed RSA private keys.
- Patch libgnutls through vendor-supported packages as soon as fixed versions are available, prioritizing internet-facing services and systems with strict uptime requirements.
- Disable TLS_RSA_* static RSA key exchange suites and enforce ECDHE/DHE-based cipher suites across TLS configurations.
- Add vulnerability scanning checks for GnuTLS version exposure and TLS cipher suite acceptance, including regression tests to prevent RSA key exchange from being re-enabled.
- Monitor for spikes in TLS handshake failures, abnormal process restarts, segmentation faults, or crashes in services linked to libgnutls.
- Where patching is delayed, restrict access with network controls, place patched TLS termination in front of the service, and apply handshake rate limiting.
- Track vendor advisories because the provided data does not include exact fixed versions and the issue may be remediated differently across Linux distributions and embedded products.
The record
A flaw was found in libgnutls. A remote attacker, by sending an extremely short premaster secret during an RSA key exchange to a server using an RSA key backed by a PKCS#11 token, could trigger a short heap overread. This memory corruption vulnerability could lead to information disclosure.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| openSUSE:Tumbleweed | gnutls | 0 | 3.8.13-1.1 |
Related vulnerabilities
- CVE-2026-42014 A flaw was found in GnuTLS. Also affects gnutls
- CVE-2026-5419 A flaw was found in gnutls. Also affects gnutls
- CVE-2026-42015 A flaw was found in gnutls. Also affects gnutls
- CVE-2026-42013 A flaw was found in gnutls. Also affects gnutls
- CVE-2026-42012 A flaw was found in gnutls. Also affects gnutls
- CVE-2026-42009 A flaw was found in gnutls. Also affects gnutls
- CVE-2026-42011 A flaw was found in gnutls. Also affects gnutls
- CVE-2026-42010 A flaw was found in gnutls. Also affects gnutls