{"id":"CVE-2026-42012","summary":"Gnutls: gnutls: certificate validation bypass due to improper handling of uri and srv sans","details":"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.","modified":"2026-11-05T02:35:42.813516848Z","published":"2026-05-26T21:29:26.859Z","related":["ALSA-2026:20611","ALSA-2026:20612","ALSA-2026:20613","SUSE-SU-2026:2087-1","SUSE-SU-2026:2115-1","SUSE-SU-2026:21752-1","SUSE-SU-2026:21784-1","SUSE-SU-2026:21815-1","SUSE-SU-2026:21867-1","SUSE-SU-2026:2822-1","openSUSE-SU-2026:10691-1","openSUSE-SU-2026:20778-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42012.json","unresolved_ranges":[{"extracted_events":[{"strategy":"InverseAffectedRanges","range":[{"fixed":"0:3.8.10-4.el10_2"},{"fixed":"0:3.8.9-9.el10_0.19"},{"fixed":"0:2.12.23-22.el6_10.1"},{"fixed":"0:3.3.29-9.el7_9.2"},{"fixed":"0:3.6.16-8.el8_10.6"},{"fixed":"0:3.6.16-8.el8_10.6"},{"fixed":"0:3.6.14-10.el8_4.1"},{"fixed":"0:4.13-3.el8_4.1"},{"fixed":"0:3.6.14-10.el8_4.1"},{"fixed":"0:4.13-3.el8_4.1"},{"fixed":"0:3.6.16-5.el8_6.5"},{"fixed":"0:4.13-3.el8_6.2"},{"fixed":"0:3.6.16-5.el8_6.5"},{"fixed":"0:4.13-3.el8_6.2"},{"fixed":"0:3.6.16-7.el8_8.4"},{"fixed":"0:4.13-4.el8_8.1"},{"fixed":"0:3.6.16-7.el8_8.4"},{"fixed":"0:4.13-4.el8_8.1"},{"fixed":"0:3.8.10-4.el9_8"},{"fixed":"0:3.8.10-4.el9_8"},{"fixed":"0:3.7.6-21.el9_2.7"},{"fixed":"0:3.8.3-4.el9_4.6"},{"fixed":"0:3.8.3-6.el9_6.4"},{"fixed":"4.20.9.6.202610242033-0"},{"fixed":"4.21.9.6.202610241345-0"},{"fixed":"4.22.9.8.202610241758-0"},{"fixed":"1791371080"},{"fixed":"1791371069"},{"fixed":"1791788287"},{"fixed":"1791970484"},{"fixed":"1791459707"},{"fixed":"1791459711"},{"fixed":"1791459759"},{"fixed":"1789029076"},{"fixed":"1791966259"},{"fixed":"1790598593"},{"fixed":"1782159791"},{"fixed":"1782166952"},{"fixed":"3.8.13-1.hum1"},{"fixed":"1790703542"},{"fixed":"1781525684"},{"fixed":"1781525671"},{"fixed":"1781525693"},{"fixed":"1781525739"},{"fixed":"1787241211"},{"fixed":"1787135742"},{"fixed":"1787241260"}],"source":"AFFECTED_FIELD"}]}],"cna_assigner":"redhat","cwe_ids":["CWE-295"]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"WEB","url":"https://www.gnutls.org/security-new.html#GNUTLS-SA-2026-04-29-7"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:13274"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:20611"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:20612"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:20613"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:26319"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:26409"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:29197"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:30004"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:30849"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:30850"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:32962"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:33125"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:41921"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:43575"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:58981"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:72502"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:74674"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82304"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82322"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82347"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82354"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82372"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82857"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:82888"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:89197"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:89232"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:89333"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:94442"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-42012"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42012.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42012"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467441"},{"type":"PACKAGE","url":"https://gitlab.com/gnutls/gnutls"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gnutls/gnutls","events":[{"introduced":"0"},{"last_affected":"0"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion","range":[{"introduced":"0"},{"last_affected":"0"}]}]}}],"versions":["0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42012.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N"}]}