Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply attacker-controlled URL to fetch_url
-
DeliveryServe failing/benign DNS for preflight check
-
ExploitRebind hostname to internal IP for fetch
-
ExecutionCodeWhale requests internal endpoint server-side
-
ImpactExfiltrate internal/metadata response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the attacker can (a) influence the target URL/hostname passed to CodeWhale's fetch_url tool and (b) manipulate DNS resolution for that hostname so the initial validation check and the subsequent HTTP request resolve differently - i.e., control of authoritative DNS or the ability to race/rebind responses (the TOCTOU window). The specific vulnerable condition is the pre-patch behavior where a failed preflight DNS lookup caused the target to proceed without a pinned validated IP. Limiting factors: the flaw only matters on versions before 0.8.64 with the fetch_url tool reachable by attacker-influenced input; it does not require authentication per the CVSS vector (PR:N), but reliable exploitation is bounded by the attacker's ability to control DNS timing, and impact is confidentiality-oriented (VC:H/SC:H) with no integrity or availability effect. |
| Impact | This is a genuinely high-impact SSRF given its context: the vendor CVSS 4.0 rates it 9.2 with AV:N/AC:L/PR:N/UI:N and confidentiality impact on both the vulnerable system (VC:H) and a subsequent system (SC:H), reflecting that reaching internal services can expose sensitive data such as cloud metadata endpoints or internal APIs. I would temper attack complexity slightly - reliable exploitation depends on controlling or racing DNS responses (TOCTOU), which argues for AC:H rather than AC:L, though an attacker who supplies the URL generally controls the authoritative DNS for their own host, keeping exploitation practical. There is no EPSS score, no CISA KEV listing, and no public proof-of-concept in the provided data, so the raw 9.2 reflects potential impact rather than observed mass exploitation; SSRF-to-internal-network is exactly the class defenders should prioritize whenever the affected component is exposed to attacker-influenced URLs. Anyone running CodeWhale where untrusted input can drive the fetch_url tool should treat patching as urgent and not wait on external exploitation signals. |
| Exploit ScenarioDerived | An attacker feeds CodeWhale's fetch_url tool a URL on a hostname whose authoritative DNS they control (or can spoof), timing responses so the pre-fetch validation sees a failing or public answer while the subsequent actual request resolves to an internal address like 169.254.169.254. The agent then issues the request server-side, returning internal-only content (e.g., cloud metadata or internal service responses) to the attacker. No public proof-of-concept is identified in the provided data, but the fix commit ships regression tests demonstrating the preflight gap. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through the agent's fetch_url tool by exploiting a time-of-check-time-of-use gap in its DNS-pinning defense. Because the pre-fetch validator treated a failed DNS lookup as a pass-through ('let the HTTP request proceed and fail naturally'), an attacker who controls DNS responses can make the safety check see a non-resolving or benign answer while the real request resolves to an internal address, bypassing the SSRF allow/deny policy. No public exploit identified at time of analysis; a vendor patch and fix commit exist, and the issue was reported by VulnCheck.
RemediationAI
Vendor-released patch: upgrade to CodeWhale 0.8.64 or later, which changes validate_fetch_target to reject hosts that fail DNS preflight and to require a validated resolved address before any fetch (fix commit 26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e; advisory GHSA-6v2g-fpxh-pmmh). If you cannot upgrade immediately, restrict the agent's outbound network path: run CodeWhale behind an egress proxy or firewall that denies traffic to RFC1918/link-local ranges (notably 169.254.169.254 cloud metadata, 127.0.0.0/8, 10/8, 172.16/12, 192.168/16), which neutralizes the SSRF target set at the cost of blocking any legitimate internal fetches; and constrain or disable the fetch_url tool for untrusted sessions, accepting reduced functionality. These controls compensate for the TOCTOU by enforcing the internal-IP block at the network boundary rather than inside the resolver.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in cargo, npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CodeWhale is a Rust-based terminal AI coding agent (code under crates/tui). Its fetch_url tool is supposed to prevent SSRF by resolving the target host and validating each resolved IP against a network policy (validate_dns_resolved_ip) before making the outbound HTTP request - a DNS-pinning pattern. The root cause is CWE-918 (SSRF) manifesting as a TOCTOU flaw: the vulnerable validate_fetch_target wrapped resolution in if let Ok(addrs), so when the preflight lookup failed it fell through and returned an un-pinned target (Ok(None)), and the comment explicitly deferred to letting the HTTP layer resolve again later. Between the check and the use, DNS can return different data (classic DNS rebinding / response manipulation), so the enforced IP need not match the fetched IP. The patched code makes a failed lookup a hard permission_denied error and requires at least one validated address before proceeding.
Know when Codewhale gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Network-reachable and unauthenticated (PR:N), but reliable exploitation needs DNS control and a TOCTOU race (AC:H); SSRF reaches other internal systems (S:C) exposing data (C:H) with no integrity/availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
CodeWhale before 0.8.64 contains a server-side request forgery bypass vulnerability in DNS pinning logic that fails to prevent time-of-check-time-of-use attacks. Attackers can manipulate DNS responses to fail initial resolution checks and succeed on secondary requests, allowing requests to internal IP addresses and bypassing SSRF mitigations.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
CodeWhale versions before 0.8.64 contain a critical vulnerability allowing remote attackers to bypass DNS security controls and access internal-only services and databases. Any organization deploying CodeWhale agents faces immediate risk of data breaches, unauthorized backend access, and infrastructure reconnaissance. Emergency patching to version 0.8.64 or later is critical to prevent exploitation.
Apply vendor patch to version 0.8.64 or later.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl
Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'
Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta
Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ
Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attac
Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach
Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz
Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr
Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin
CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat
EUVD-2026-60963
GHSA-6v2g-fpxh-pmmh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB