CVE-2026-63311 NLTK before 3.10.0 SSRF via DNS Resolution Failure
설명
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).
영향 받는 제품 제품 1개
-
해결 버전 있음
nltk
nltk
영향 받는 버전
- 3.10.0 미만
해결 버전
- 3.10.0 이상
- 3.10.0