CVE-2026-39821
JSON

9.6critical

Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna

Severity
9.6critical CVSS:3.1 by CISA-ADP
Exploit likelihood
1.83% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-5026

Description

The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode("xn--example-.com") incorrectly returns the name "example.com" rather than an error. This behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs privilege checks on the ASCII hostname may reject "example.com" but permit "xn--example-.com". If that program subsequently converts the ASCII hostname to Unicode, it will inadvertently permits access to the Unicode name "example.com".

Affected

Product or packageVersionsReported by
net/httpbefore 1.25.13, from 1.26.0-0 before 1.26.6, from 1.27.0-0 before 1.27.0-rc.3CVE List
net/http/internal/http2before 1.25.13, from 1.26.0-0 before 1.26.6, from 1.27.0-0 before 1.27.0-rc.3CVE List
golang.org/x/net/idnabefore 0.57.0CVE List
receptorNot specified
Not affected: from 0:1.6.6-1.el8ap before *, from 0:1.6.6-1.el9ap before *, from 0:1.6.6-1.el10ap before *
CVE List
git-lfsNot specified
Not affected: from 0:3.7.1-5.el10_2.5 before *, from 0:3.6.1-2.el10_0.7 before *, from 0:3.4.1-11.el8_10 before *, from 0:3.7.1-4.el9_8.1 before *, from 0:3.2.0-2.el9_2.10 before *, from 0:3.6.1-2.el9_6.7 before *
CVE List
opentelemetry-collectorNot specified
Not affected: from 0:0.152.1-1.el10_2 before *, from 0:0.152.1-1.el10_0 before *, from 0:0.152.1-1.el9_8 before *, from 0:0.152.1-1.el9_4 before *, from 0:0.152.1-1.el9_6 before *
CVE List
grafana-pcpNot specified
Not affected: from 0:5.3.0-7.el10_2 before *, from 0:5.3.0-1.el10_0 before *, from 0:5.1.1-16.el8_10 before *, from 0:5.1.1-17.el9_8 before *, from 0:5.1.1-5.el9_2.2 before *, from 0:5.1.1-9.el9_4 before *
CVE List
grafanaNot specified
Not affected: from 0:10.2.6-27.el10_2 before *, from 0:10.2.6-26.el10_0 before *, from 0:9.2.10-31.el8_10 before *, from 0:10.2.6-23.el9_8 before *, from 0:10.2.6-22.el9_6 before *
CVE List
golangNot specified
Not affected: from 0:1.26.5-1.el10_2 before *, from 0:1.26.5-1.el10_0 before *, from 0:1.26.5-1.el9_8 before *, from 0:1.26.5-1.el9_2 before *, from 0:1.26.5-1.el9_4 before *, from 0:1.26.5-1.el9_6 before *
CVE List
rhcNot specified
Not affected: from 1:0.3.8-6.el10_2 before *, from 1:0.3.2-5.el10_0 before *, from 1:0.2.5-9.el8_10 before *, from 1:0.2.7-8.el9_8 before *, from 1:0.2.2-1.el9_2.4 before *, from 1:0.2.4-9.el9_4 before *
CVE List
yggdrasilNot specified
Not affected: from 0:0.4.9.2-1.el10_2 before *, from 0:0.4.7-5.el10_0 before *
CVE List
go-fdo-serverNot specified
Not affected: from 0:1.0.1-2.el10_2.3 before *
CVE List

All scores

CISA-ADP9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
redhat-SADP8.2high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Classification

CWE-1289

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode("xn--example-.com") incorrectly returns the name "example.com" rather than an error. This behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs privilege checks on the ASCII hostname may reject "example.com" but permit "xn--example-.com". If that program subsequently converts the ASCII hostname to Unicode, it will inadvertently permits access to the Unicode name "example.com".

NVD (es)

Las funciones ToASCII y ToUnicode aceptan incorrectamente etiquetas codificadas en Punycode que se decodifican a una etiqueta solo ASCII. Por ejemplo, ToUnicode('xn--example-.com') devuelve incorrectamente el nombre 'example.com' en lugar de un error. Este comportamiento puede conducir a una escalada de privilegios en programas que utilizan el paquete idna. Por ejemplo, un programa que realiza comprobaciones de privilegios en el nombre de host ASCII puede rechazar 'example.com' pero permitir 'xn--example-.com'. Si ese programa convierte posteriormente el nombre de host ASCII a Unicode, permitirá el acceso inadvertidamente al nombre Unicode 'example.com'.

References

https://go.dev/cl/767220fix, issue-tracking
https://go.dev/cl/796421fix
https://go.dev/issue/78760issue-tracking, report
https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8mailing-list, web
https://groups.google.com/g/golang-announce/c/94pEornpRlIweb
https://pkg.go.dev/vuln/GO-2026-5026vendor-advisory
https://access.redhat.com/security/cve/CVE-2026-39821vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2480756issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39821.json
https://access.redhat.com/errata/RHSA-2026:42079vendor-advisory
https://access.redhat.com/errata/RHSA-2026:42080vendor-advisory
https://access.redhat.com/errata/RHSA-2026:41019vendor-advisory

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39821 changed 2026-11-23CVE Terms of Use
Go Vulnerability DatabaseGO-2026-5026 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-39821 changed 2026-11-23Public domain