---
title: iTerm2 runs commands hidden in a file shown with cat (fixed in 3.7.9)
description: >-
  iTerm2 on macOS answered Kitty image protocol requests with an error message that could carry
  newlines from a crafted file path, and wrote that reply back...
url: https://expiredqueues.com/security-advisories/iterm2-kitty-response-injection-2026-11/
markdown: https://expiredqueues.com/security-advisories/iterm2-kitty-response-injection-2026-11/index.md
image: >-
  https://expiredqueues.com/images/og/security-advisories-iterm2-kitty-response-injection-2026-11-40ec4ac0.jpg
---

[Security advisories](https://expiredqueues.com/security-advisories/index.md)

# iTerm2 runs commands hidden in a file shown with cat (fixed in 3.7.9)

First listed 21 November 2026 Updated 21 November 2026

Fix available

iTerm2 on macOS answered Kitty image protocol requests with an error message that could carry newlines from a crafted file path, and wrote that reply back into the shell, which then ran the injected text as commands. A victim only has to display a crafted file in the terminal, for example with cat, on a default install; the researcher says it works with bash, zsh and fish. iTerm2 3.7.9, released on 20 Nov, strips control characters from all replies sent back to programs, covering the Kitty image, Kitty drag-and-drop and title report paths. The researcher, Minseong Kim of NSHC Red Alert Labs, published proof-of-concept code on 21 Nov. No CVE is assigned and no attacks are reported.

- Vendor

  iTerm2

- Type

  Critical

- Status

  Fix available. No exploitation reported.

- Tags

  iterm2, macOS

- History

  - 21 November 2026 First listed. iTerm2 3.7.9 of 20 Nov is a security update for this report; the researcher published proof-of-concept code on 21 Nov. No CVE, no attacks reported.

[Read the source](https://iterm2.com/downloads.html)

## More sources

- [ii4gsp.github.io/iterm2-rce/](https://ii4gsp.github.io/iterm2-rce/)
- [github.com/gnachman/iTerm2/commit/a53b1bc084fe062de44b52d03ccf713c7962...](https://github.com/gnachman/iTerm2/commit/a53b1bc084fe062de44b52d03ccf713c7962ac83)
- [github.com/gnachman/iTerm2/commit/2a63835ca19bbd20b0d051b33c14341b0b70...](https://github.com/gnachman/iTerm2/commit/2a63835ca19bbd20b0d051b33c14341b0b708d5b)

This is one entry in a list I pick by hand. It tells you whether a fix exists. For how to apply it, follow the source. [See all advisories](https://expiredqueues.com/security-advisories/index.md).

**Follow Expired Queues.** We are on X and Instagram.

[](https://x.com/expiredqueues "Expired Queues on X (@expiredqueues)")[](https://www.instagram.com/expiredqueues/ "Expired Queues on Instagram (@expiredqueues)")

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "iTerm2 runs commands hidden in a file shown with cat (fixed in 3.7.9)",
  "description": "iTerm2 on macOS answered Kitty image protocol requests with an error message that could carry newlines from a crafted file path, and wrote that reply back into the shell, which then ran the injected text as commands. A victim only has to display a crafted file in the terminal, for example with cat, on a default install; the researcher says it works with bash, zsh and fish. iTerm2 3.7.9, released on 20 Nov, strips control characters from all replies sent back to programs, covering the Kitty image, Kitty drag-and-drop and title report paths. The researcher, Minseong Kim of NSHC Red Alert Labs, published proof-of-concept code on 21 Nov. No CVE is assigned and no attacks are reported.",
  "datePublished": "2026-11-21",
  "dateModified": "2026-11-21",
  "author": {
    "@type": "Person",
    "name": "Adrian Noel",
    "url": "https://expiredqueues.com/about/"
  },
  "publisher": {
    "@type": "Person",
    "name": "Adrian Noel"
  },
  "mainEntityOfPage": "https://expiredqueues.com/security-advisories/iterm2-kitty-response-injection-2026-11/",
  "isPartOf": {
    "@type": "CollectionPage",
    "@id": "https://expiredqueues.com/security-advisories/"
  },
  "about": "iTerm2",
  "citation": "https://iterm2.com/downloads.html"
}
```
