1. CVE archive
  2. 2026
  3. CVE-2026-42012

CVE-2026-42012

7.1 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N 7.1 – High

Description

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.

Affected products

VendorProductVersionPlatform
– gnutls 0 –
redhat cert manager 1.17 –
redhat cert manager 1.18 –
redhat cert manager 1.20 –
redhat discovery 2 –
redhat enterprise linux 10.2 –
redhat enterprise linux 8 –
redhat enterprise linux 8 –
redhat enterprise linux 9 –
redhat enterprise linux 9 –
redhat enterprise linux eus 10.0 –
redhat hummingbird 1 –
redhat openshift 4.20 –
redhat openshift 4.21 –
redhat openshift 4.22 –
redhat openshift 4 –
redhat openshift 5 –
redhat openshift ai 3.4 –
redhat rhel aus 8.4 –
redhat rhel aus 8.4 –
redhat rhel aus 8.6 –
redhat rhel aus 8.6 –
redhat rhel e4s 8.8 –
redhat rhel e4s 8.8 –
redhat rhel e4s 9.2 –
redhat rhel e4s 9.2 –
redhat rhel e4s 9.4 –
redhat rhel e4s 9.4 –
redhat rhel els 6 –
redhat rhel els 7 –
redhat rhel eus 9.6 –
redhat rhel eus 9.6 –
redhat rhel eus long life 8.4 –
redhat rhel eus long life 8.4 –
redhat rhel eus long life 8.6 –
redhat rhel eus long life 8.6 –
redhat rhel tus 8.8 –
redhat rhel tus 8.8 –
redhat rhui 5 –
All 12 Gnutls vulnerabilities

Vulnerability type

CWE-295 Improper Certificate Validation

The product does not validate, or incorrectly validates, a certificate.

Impact on systems

ScopeImpact
Integrity, Authentication Bypass Protection Mechanism, Gain Privileges or Assume Identity
When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting spoofed data that appears to originate from a trusted host.

How to prevent it

Architecture and Design · Implementation Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key.
Implementation If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.

All 1,816 CWE-295 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org