Skip to content
iTerm2 Flaw Enables Command Execution via Crafted File Display (Fixed in 3.7.9)

iTerm2 Flaw Enables Command Execution via Crafted File Display (Fixed in 3.7.9)

First seen 23 Nov 2026, 21:19 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 23, 2026 at 21:19 UTC
  • •Displaying a crafted file in a vulnerable iTerm2 session can trigger arbitrary shell commands without the file being executed as a script.
  • •Reported affected versions span 3.6.1 through 3.7.8, including default configurations with Kitty image protocol support.
  • •iTerm2 3.7.9 reportedly fixes the flaw by filtering control characters from replies.
  • •The vendor's release notes reportedly do not report exploitation in the wild.
  • •Defenders should update to 3.7.9 or later and avoid displaying unfamiliar files as raw terminal output until patched.

A command-execution vulnerability in iTerm2, a macOS terminal emulator, allows a malicious file to run arbitrary shell commands when its contents are displayed in a vulnerable session, without the user running it as a script or pasting a command. Mallory.Ai reports the flaw affects installations with Kitty image protocol support, with affected versions reported as 3.6.1 through 3.7.8, including default configurations. Researcher ii4gsp reportedly demonstrated the exploit working across bash, zsh, and fish without memory corruption or a race condition. The exploit chains a missing trust check in Application Program Command (APC) handling with unsafe Kitty file-transfer error responses, in which a crafted file path causes literal newlines to reach pseudoterminal input and be interpreted by the shell as command separators. iTerm2 3.7.9 reportedly fixes the issue by filtering control characters from replies. Cybersecuritynews describes the same behavior, characterising printing the file's contents as sufficient to trigger the commands. Mallory.Ai reports that the vendor's release notes do not mention exploitation in the wild. Organisations are advised to update to 3.7.9 or later and avoid displaying unfamiliar files as raw terminal output until patched.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Timeline

2026-11-23
iTerm2 command-execution flaw reported
Mallory.Ai and Cybersecuritynews both published reports describing shell command execution via crafted file display in iTerm2 3.6.1 through 3.7.8.
Mallory.Ai
Recent
iTerm2 3.7.9 released with fix
Per Mallory.Ai, version 3.7.9 filters control characters from replies to close the newline-injection path.
Mallory.Ai

More articles in this cluster (2)

Common questions

Which iTerm2 versions are affected?
Reported affected versions span 3.6.1 through 3.7.8, including default configurations with Kitty image protocol support. Version 3.7.9 reportedly contains the fix.
Is this being exploited in the wild?
Mallory.Ai reports that the vendor's release notes do not mention exploitation in the wild, and the articles name no confirmed exploitation.
What should we do first?
Update to iTerm2 3.7.9 or later, and avoid displaying unfamiliar files as raw terminal output until patched.