{"id":"CVE-2026-45374","state":"PUBLISHED","title":"CodeWhale: task_create Insecure Defaults Enable RCE via Prompt Injection in Project Files","description":"CodeWhale is a DeepSeek + MiMo coding agent in terminal. Prior to 0.8.26, the task_create tool spawns durable sub-agents that inherit two insecure defaults, allow_shell defaults to true (config.rs:1499: self.allow_shell.unwrap_or(true)) and auto_approve defaults to true (task_manager.rs:297: auto_approve: Some(true)). When a user approves a task_create call (which requires ApprovalRequirement::Required), they approve what appears to be a benign work prompt. However, the spawned sub-agent silently receives unrestricted, unapproved shell access. This vulnerability is fixed in 0.8.26.","publishedAt":"2026-05-28T17:26:42.979Z","updatedAt":"2026-05-30T02:04:52.694Z","severity":{"score":9.6,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["Hmbown CodeWhale"],"affected":[{"vendor":"Hmbown","product":"CodeWhale","versions":[{"version":"< 0.8.26","status":"affected"}]}],"references":["https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-72w5-pf8h-xfp4","https://github.com/Hmbown/DeepSeek-TUI/releases/tag/v0.8.26"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45374.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45374","state":"PUBLISHED","datePublished":"2026-05-28T17:26:42.979Z","dateUpdated":"2026-05-30T02:04:52.694Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-12T00:51:29.086Z"},"containers":{"cna":{"title":"CodeWhale: task_create Insecure Defaults Enable RCE via Prompt Injection in Project Files","descriptions":[{"lang":"en","value":"CodeWhale is a DeepSeek + MiMo coding agent in terminal. Prior to 0.8.26, the task_create tool spawns durable sub-agents that inherit two insecure defaults, allow_shell defaults to true (config.rs:1499: self.allow_shell.unwrap_or(true)) and auto_approve defaults to true (task_manager.rs:297: auto_approve: Some(true)). When a user approves a task_create call (which requires ApprovalRequirement::Required), they approve what appears to be a benign work prompt. However, the spawned sub-agent silently receives unrestricted, unapproved shell access. This vulnerability is fixed in 0.8.26."}],"affected":[{"vendor":"Hmbown","product":"CodeWhale","versions":[{"version":"< 0.8.26","status":"affected"}]}],"references":[{"url":"https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-72w5-pf8h-xfp4","name":"https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-72w5-pf8h-xfp4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Hmbown/DeepSeek-TUI/releases/tag/v0.8.26","name":"https://github.com/Hmbown/DeepSeek-TUI/releases/tag/v0.8.26","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.6,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-28T17:29:11.005Z"},"source":{"advisory":"GHSA-72w5-pf8h-xfp4","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-72w5-pf8h-xfp4","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-30T02:04:28.787540Z","id":"CVE-2026-45374","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-30T02:04:52.694Z"}}]}}}