The Go ProjectのNetにおける安全でない等式による入力の不適切な検証に関する脆弱性
| Title |
The Go ProjectのNetにおける安全でない等式による入力の不適切な検証に関する脆弱性
|
| Summary |
ToASCII関数とToUnicode関数は、ASCIIのみのラベルにデコードされるPunycodeエンコードされたラベルを誤って受け入れます。たとえば、ToUnicode("xn--example-.com")は誤って名前"example.com"を返し、エラーを返しません。この動作は、idnaパッケージを使用するプログラムで特権昇格を引き起こす可能性があります。たとえば、プログラムがASCIIホスト名に基づいて特権をチェックし、「example.com」を拒否しつつ「xn--example-.com」を許可する場合、その後ASCIIホスト名をUnicodeに変換すると、意図せずUnicode名の"example.com"へのアクセスを許可してしまいます。
|
| Possible impacts |
・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| Solution |
ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
May 22, 2026, midnight |
| Registration Date |
June 3, 2026, 5:05 p.m. |
| Last Update |
June 3, 2026, 5:05 p.m. |
|
CVSS3.0 : 緊急
|
| Score |
9.6
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
Affected System
| The Go Project |
|
Net 0.55.0 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年06月03日] 掲載 |
June 3, 2026, 5:05 p.m. |
NVD Vulnerability Information
CVE-2026-39821
| Summary |
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".
|
| Publication Date |
May 23, 2026, 1:16 a.m. |
| Registration Date |
May 27, 2026, 4:05 a.m. |
| Last Update |
May 30, 2026, 12:26 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:golang:net:*:*:*:*:*:go:*:* |
|
|
|
0.55.0 |
Related information, measures and tools
Common Vulnerabilities List