CVE-2026-42012
GnuTLS vulnerability analysis and mitigation

Overview

CVE-2026-42012 is a certificate validation bypass vulnerability in GnuTLS (the GNU Transport Layer Security library) classified as Improper Certificate Validation (CWE-295). A remote attacker can exploit this flaw by presenting a specially crafted certificate containing URI or Service (SRV) Subject Alternative Names (SANs), causing the validation process to incorrectly fall back to checking DNS hostnames against the certificate's Common Name (CN), potentially enabling service spoofing or interception of sensitive information. The vulnerability was reported on May 6, 2026 (via Red Hat Bugzilla) and publicly disclosed on May 26, 2026. It carries a CVSS v3.1 base score of 7.1 (High) (Github Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper certificate validation (CWE-295): when a certificate contains URI or SRV SAN extensions, GnuTLS's hostname verification logic incorrectly falls back to comparing DNS hostnames against the certificate's Common Name (CN) field rather than strictly enforcing SAN-based validation. Per RFC standards, the presence of any SAN extension should suppress CN-based hostname checking entirely. The fix suppresses CN fallback whenever URI or SRV SANs are present in the certificate. Exploitation requires network access and user interaction (e.g., a user or application initiating a TLS connection to an attacker-controlled server presenting the malicious certificate). No public proof-of-concept code has been identified (Github Advisory, Red Hat Bugzilla).

Impact

Successful exploitation allows an unauthenticated remote attacker to spoof legitimate TLS-secured services or perform man-in-the-middle attacks against clients using vulnerable GnuTLS versions. The primary impacts are high integrity loss (an attacker can impersonate trusted services) and low confidentiality loss (sensitive data transmitted over the spoofed connection may be intercepted). Availability is not directly impacted. Any application or system relying on GnuTLS for TLS/SSL/DTLS certificate validation — including those on RHEL 8 and 9, Debian, Ubuntu, SUSE, openSUSE, and Amazon Linux 2023 — is potentially affected (Github Advisory, Red Hat RHSA-2026:20611).

Exploitability

No public proof-of-concept exploit code is known, and there is no evidence of active in-the-wild exploitation as of the time of disclosure (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.031–0.044%, placing it in the 14th percentile for exploitation probability within 30 days (Github Advisory). The vulnerability is detectable by multiple commercial scanners including Nessus and Qualys, which have published detection plugins.

Exploitation steps

  1. Setup a rogue TLS server: Configure a server with a crafted X.509 certificate that includes URI or SRV Subject Alternative Name (SAN) extensions alongside a CN value matching the target legitimate domain (e.g., CN=legitimate.example.com with a URI SAN pointing to an unrelated resource).
  2. Position for interception: Use DNS spoofing, ARP poisoning, or BGP hijacking to redirect victim traffic destined for the legitimate service to the attacker-controlled server.
  3. Trigger client connection: Wait for or socially engineer a user or application using a vulnerable GnuTLS version to initiate a TLS connection to the target hostname.
  4. Exploit CN fallback: The vulnerable GnuTLS library, upon encountering the URI/SRV SAN in the certificate, incorrectly falls back to validating the hostname against the CN field rather than rejecting the certificate outright, causing the connection to be accepted as valid.
  5. Intercept or spoof: With the TLS handshake accepted, the attacker can decrypt, read, or modify traffic intended for the legitimate service, or fully impersonate the service to the victim (Github Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Network: Unexpected TLS connections to servers presenting certificates with URI or SRV SAN extensions where the CN matches a known legitimate domain; TLS handshakes completing to IP addresses not associated with the expected service's DNS resolution.
  • Logs: TLS/SSL connection logs showing successful certificate validation for certificates with unusual SAN types (URI, SRV) combined with CN-based hostname matches; GnuTLS debug logs indicating CN fallback during hostname verification.
  • Certificate Artifacts: Certificates in use containing both URI or SRV SANs and a CN field that matches a monitored domain — inspect with openssl x509 -text or gnutls-cli --print-cert to identify anomalous SAN combinations.

Mitigation and workarounds

Vendor patches are available as of May 26, 2026. Red Hat has released updated packages for RHEL 8 (gnutls-3.6.16-8.el8_10.6) via RHSA-2026:20611 and for RHEL 9 (gnutls-3.8.10-4.el9_8) via RHSA-2026:20612. Patches have also been issued for Debian (LTS and stable), Ubuntu (USN-8284-1), SUSE/openSUSE (SUSE-SU-2026:2087-1, SUSE-SU-2026:2115-1), and Amazon Linux 2023 (ALAS2023-2026-1808). The recommended remediation is to update GnuTLS to the patched version for your distribution as soon as possible. No configuration-based workaround is available; upgrading is the only effective mitigation (Red Hat RHSA-2026:20611, Red Hat RHSA-2026:20612, Github Advisory).

Community reactions

Red Hat assigned this vulnerability a security impact of "Important" and issued multiple errata (RHSA-2026:20611, RHSA-2026:20612, RHSA-2026:20613) covering RHEL 8 and 9 on the same day as public disclosure (May 26, 2026), indicating coordinated disclosure and rapid vendor response (Red Hat RHSA-2026:20611). The vulnerability was also quickly picked up by downstream distributions including Debian, Ubuntu, SUSE, and Amazon Linux, all releasing patches within days. Coverage appeared on Linux security news aggregators and German security news site pro-linux.de, reflecting broad community awareness. No notable independent researcher commentary or social media discussion beyond standard advisory tracking has been identified.

Additional resources


SourceThis report was generated using AI

Related GnuTLS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-5260HIGH8.2
  • GnuTLS logoGnuTLS
  • gnutls-debuginfo
NoYesMay 26, 2026
CVE-2026-42013HIGH8.2
  • GnuTLS logoGnuTLS
  • libgnutls30-hmac
NoYesMay 26, 2026
CVE-2026-42014MEDIUM6.6
  • GnuTLS logoGnuTLS
  • libgnutls-devel
NoYesJun 16, 2026
CVE-2026-42015MEDIUM5.3
  • GnuTLS logoGnuTLS
  • libgnutlsxx28
NoYesMay 26, 2026
CVE-2026-5419LOW3.7
  • GnuTLS logoGnuTLS
  • gnutls-dane-debuginfo
NoYesJun 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management