iTerm2
iTerm2 cat RCE
Patch nowPublic exploit: cat a file, run code. Update to 3.7.9.
In iTerm2 3.6.1 through 3.7.8, displaying a crafted file in the terminal, for example with cat README.md, runs commands on your Mac. The trap is hidden in the file (you only see some shell errors when it runs), and it works on a default install in bash, zsh and fish. The researcher published a complete exploit; iTerm2 fixed it in 3.7.9 on 20 Nov 2026. No attacks are reported. There's no fixed release for macOS 12.4 to 12.x, whose newest iTerm2 is 3.6.11.
How scary is it?
Are you affected? only if all are true
1iTerm2 3.6.1 to 3.7.8command
The exploit uses Kitty image file transfer, which arrived in 3.6.1 (18 Sep 2025); in 3.6.0 the code for it still returns "Unimplemented". The researcher says every version with Kitty image support is affected, but we found this path only from 3.6.1 on. iTerm2 3.6.11, the newest release for macOS 12.4 and later, came out on 2 Jun 2026, before the fix, and has the same flawed code.1,2,5,7
defaults read /Applications/iTerm.app/Contents/Info.plist CFBundleShortVersionString2It shows files from others
The file's raw contents have to reach iTerm2: cat on a README from a cloned repo or a download is the researcher's example, and any file you might print counts. The hidden part doesn't appear in the output; you only see shell errors when it fires. No setting needs to be changed for it to work.1
What to do
1Update to 3.7.9
2On macOS 12? No fixed release
3.7.9 needs macOS 13 or later, and the 3.6 line (macOS 12.4 and later) hasn't had a release since 3.6.11 (2 Jun 2026). Upgrade macOS if you can; until then, don't print files from others in iTerm2.2
3The escape-sequence setting won't help
The "Disable potentially insecure escape sequences" setting doesn't cover the escape sequence this uses, per the researcher. Updating is the fix.1
This page shows you how to check. It can't tell you you're safe.
Sources (8) and changelog
- ii4gsp (Minseong Kim): write-up, affected versions, full exploit 21 Nov
- iTerm2: downloads, 3.7.9 security update, Kitty file transfer added in 3.6.1, 3.6.11 for macOS 12.4+
- iTerm2 fix: sanitize Kitty graphics responses 20 Nov
- iTerm2 fix: strip control characters from all report paths 20 Nov
- iTerm2 3.6.11 source: same unsanitized error path
- CISA KEV catalog: not listed (as of 20 Nov)
- iTerm2 3.6.0 source: Kitty file transfer still "Unimplemented"
- iTerm2 docs: iTerm2 > Check for Updates
- Published.