Mallory.Ai iTerm2 Flaw Enables Command Execution via Crafted File Display (Fixed in 3.7.9)
Article Content
- •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.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (2)
Common questions
Which iTerm2 versions are affected?
Is this being exploited in the wild?
What should we do first?
Continue Reading
CVE-2026-123890: Auth bypass in VMware vCenter exploited by Armory Castle before patch CVE-2026-123890, a flaw in VMware vCenter Server rated CVSS 9.8, allows an unauthenticated remote attacker to obtain an administrator session on the platform. According to the Google Threat Intelligence Group, the flaw was exploited by the espionage group Armory Castle (formerly UNC5221), which has suspected China…
North Korea's TraderTraitor linked to $6.3B Binance breach via compromised DevOps laptop The FBI, with the U.S. Secret Service and IRS, attributes a security incident at the Binance cryptocurrency exchange to North Korea's TraderTraitor group, which the FBI says converted stolen assets primarily into Ethereum. Binance estimates the total financial impact at $6.3 billion and says it has worked with…