🚨 A newly disclosed iTerm2 vulnerability allows attackers to execute commands on macOS simply by…
Dark Web Informer
Visit on X@DarkWebInformer277K followers
15,522 views
🚨 A newly disclosed iTerm2 vulnerability allows attackers to execute commands on macOS simply by tricking users into viewing a malicious text file.
Security researcher ii4gsp demonstrated how hidden escape sequences embedded in ordinary files, including README.md, .txt, and .log files, can trigger arbitrary command execution when displayed using commands like cat.
The vulnerability abuses iTerm2's Kitty image protocol, allowing specially crafted terminal responses to inject commands directly into the user's shell. The exploit works with default settings across bash, zsh, and fish, without requiring any additional configuration.
A working proof-of-concept has been published, and the developer has confirmed the vulnerability. All versions supporting the Kitty image protocol before 3.7.9 are affected.
iTerm2 3.7.9, released November 20, includes a security fix. Users should update immediately.
Source:
1 Comment
Comments from the original post on X (Twitter)

@REALGIFGAWD
just viewing a text file should never run commands, thats the whole problem. cat a readme and it drops you in a shell, with default settings. if you use iterm2, update to 3.7.9 before you open anything sketchy
