Disclosed weakness · no CVE recorded

Claude Code could leave Windows commands running after stopping their session

Anthropic · Claude Code Windows Bash and VS Code command lifecycle

First documented disclosure · Review checkpoint

Summary

Stopping a Bash command could leave its script and child programs running on Windows.

Severity and exploitation evidence

No CVSS score recorded in this review.

Exploitation not established: The reviewed public originals establish a reported correction or author-controlled demonstration, not malicious exploitation or identified victims. No product, model, package, exploit or proof of concept was executed in this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

Anthropic describes a script and programs it launched continuing after a Bash command was stopped. Its VS Code notes separately describe commands continuing, and sometimes running twice, after reload, extension restart, quit or tab closure during a response. A December 4 follow-up also identifies commands outliving application exit on a heavily loaded Windows machine.

Conditions required

A Windows session has a running command and the user stops it or triggers one of the named VS Code lifecycle transitions.

Potential impact

Previously started processes may continue making changes after the user expects them to stop. The notes do not establish attacker initiation, additional operating-system privileges or a particular destructive outcome.

Affected versions and configurations

Windows behavior is identified; complete package-version bounds are not disclosed.

Fix and mitigation status

Anthropic lists the original corrections in stable 2.1.336 on December 3. Stable 2.1.337 on December 4 additionally fixes Windows commands outliving Claude Code when it exits on a heavily loaded machine.

Practical next steps

Update and confirm that child processes have ended before treating a stopped Windows session as inactive.

Operating lesson

Cancellation must cover the process tree and the host application lifecycle.

Evidence and limits

Full maintainer release notes were read. This is release-note evidence; implementation, precise introduction and complete affected range were not independently established. No CVE or numeric severity is assigned. The correction does not establish malicious exploitation or an identified victim. This is distinct from the existing pending-approval-after-restart record; the newly described commands were already running. December 5 review reuses the frozen December 4 originals with their original retrieval timestamps; selected release/remediation states were checked again.

Sources