CVE-2026-42012: Gnutls: gnutls: certificate validation bypass due to improper handling of uri and srv sans

Published May 6, 2026
·
Updated

A flaw was found in gnutls. A remote attacker could exploit this vulnerability by presenting a specially crafted certificate that contains Uniform Resource Identifier (URI) or Service (SRV) Subject Alternative Names (SANs). This could cause the certificate validation process to incorrectly fall back to checking DNS hostnames against the Common Name (CN), potentially allowing the attacker to spoof legitimate services or intercept sensitive information.

Other sources

Gnutls: gnutls: certificate validation bypass due to improper handling of uri and srv sans

Microsoft

libgnutls: Suppress CN fallback in presence of URI and SRV SAN Certificates containing URI or SRV Subject Alternative Names no longer fall back to checking DNS hostnames against Common Name to avoid potential misuse of such certificates beyond their original purpose.

Red Hat

Affected Software

2 affected componentsFixes available
Microsoft azl3 gnutls 3.8.3-11<3.8.13-1
3.8.13-1
debian/gnutls28<=3.7.1-5+deb11u5
3.7.1-5+deb11u103.7.9-2+deb12u73.8.9-3+deb13u43.8.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.8.13-1
  2. Upgrade

    Upgrade debian/gnutls28 to a version that resolves this vulnerability.

    Fixed in 3.7.1-5+deb11u10Fixed in 3.7.9-2+deb12u7Fixed in 3.8.9-3+deb13u4Fixed in 3.8.13-1

Event History

May 6, 2026
Data Sourced
via Red Hat·07:17 PM
DescriptionSeverityAffected Software
May 26, 2026
CVE Published
via MITRE·09:29 PM
Data Sourced
via MITRE·09:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
May 31, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:02 AM
Affected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Jul 15, 2026
Data Sourced
via Ubuntu·05:31 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·05:32 PM
DescriptionAffected Software
Data Sourced
via Launchpad·05:32 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2026-42012?

CVE-2026-42012 is a vulnerability in gnutls that allows for certificate validation bypass due to improper handling of URI and SRV Subject Alternative Names.

2

What is the severity of CVE-2026-42012?

CVE-2026-42012 has a high severity rating of 7.1.

3

How can I fix CVE-2026-42012?

To fix CVE-2026-42012, upgrade to the latest version of gnutls that addresses this vulnerability.

4

What could an attacker do with CVE-2026-42012?

An attacker could exploit CVE-2026-42012 by presenting a specially crafted certificate that may bypass the certificate validation process.

5

Who is affected by CVE-2026-42012?

Users of debian/gnutls28 are potentially affected by CVE-2026-42012.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203