云虫漏洞情报

CVE-2026-63311 - NLTK before 3.10.0 (affected versions <= 3.9.4) contains a server-side request forgery (SSRF) vulnerability in the validate_network_url() function in nltk/pathsec.py. The _resolve_hostname() helper catches OSError and ValueError during socket.getaddrinfo() and returns an empty list; when DNS resolution fails, the validation loop executes no IP checks and the function fails open, allowing urlopen() to proceed without validation. An attacker who can trigger DNS resolution failures - 漏洞详情

漏洞编号:CVE-2026-63311

风险等级:中危

漏洞来源:CVE

CVE 编号:CVE-2026-63311

CNNVD 编号:-

厂商/产品:nltk / nltk

影响范围:cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*

CWE:CWE-918

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

漏洞描述

NLTK before 3.10.0 (affected versions <= 3.9.4) contains a server-side request forgery (SSRF) vulnerability in the validate_network_url() function in nltk/pathsec.py. The _resolve_hostname() helper catches OSError and ValueError during socket.getaddrinfo() and returns an empty list; when DNS resolution fails, the validation loop executes no IP checks and the function fails open, allowing urlopen() to proceed without validation. An attacker who can trigger DNS resolution failures or use DNS rebinding can bypass SSRF protections and reach restricted network resources, including cloud metadata endpoints (e.g., 169.254.169.254).

相关链接

相关漏洞

« 返回首页