iTerm2 Patches Remote Code Execution Flaw

Version 3.7.9 fixes a bug that lets crafted files trigger commands when displayed in the macOS terminal app.

Updated on Nov. 23, 2026 in Software

iTerm2 Patches Remote Code Execution Flaw

iTerm2 released version 3.7.9 to fix a remote code execution flaw that lets attackers run commands when a user displays a specially crafted file in a vulnerable terminal session. Printing the file's contents triggers the bug without running the file as a script.

Why it matters

The flaw can affect installations using default settings, so users of affected versions face exposure until they update. The vendor's release notes do not report attacks using the flaw in the wild.

The bug sits in iTerm2's implementation of the Kitty graphics protocol and is a logic bug rather than a memory corruption flaw. Reported affected versions run from 3.6.1 through 3.7.8, and the fix ships in 3.7.9.

The players

iTerm2

An open-source terminal emulator for macOS that serves as an alternative to the default Terminal app.

NSHC Red Alert Labs

The security research group whose researcher Minseong Kim is credited with reporting the flaw.

The details

Failed image request error replies carried untrusted text and line breaks to the pseudoterminal, and the shell treated those line breaks like presses of the Return key, running text from the reply as a command. The first fix replaces line breaks and other control characters with spaces in Kitty graphics replies. Minseong Kim of NSHC Red Alert Labs is credited with reporting the issue.

Timeline

  1. November 20, 2026: iTerm2 3.7.9 security update built.

  2. November 23, 2026: Details of the flaw published by cybersecuritynews.com.

The Tech Race

The flaw arises in iTerm2's implementation of the Kitty graphics protocol, an image-display standard that terminal emulators adopt to render graphics inside text sessions. Because the bug is in how one app handles the protocol's error replies, it highlights the security cost of adding protocol features to terminal software.

Anyone running iTerm2 versions 3.6.1 through 3.7.8 on macOS should update to 3.7.9 to close the flaw. Developers who regularly display files or logs in the terminal face the greatest practical exposure to a crafted file.

The takeaway

Updating to iTerm2 3.7.9 removes the flaw, and users should treat unexpected files in terminal output with caution until they do.

Further reading

For related coverage, browse the Software section for other updates on widely used developer tools.

Source note: This article includes information reported by Cyber Security News.