云虫漏洞情报

CVE-2026-39821 - 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 AS - 漏洞详情

漏洞编号:CVE-2026-39821

风险等级:危急

漏洞来源:CVE

CVE 编号:CVE-2026-39821

CNNVD 编号:-

厂商/产品:golang / net

影响范围:cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*

CWE:CWE-1289

发布/更新时间:2026-05-22 / 2026-08-28

漏洞描述

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".

相关链接

相关漏洞

« 返回首页