{
  "url": "https://tldrcve.com/iterm2-cat-rce/",
  "json": "https://tldrcve.com/iterm2-cat-rce.json",
  "verdict_label": "Patch now",
  "scare_label": "Check today",
  "slug": "iterm2-cat-rce",
  "name": "iTerm2 cat RCE",
  "aliases": [
    "iterm",
    "iterm2",
    "kitty graphics",
    "kitty image protocol",
    "apc",
    "escape sequence",
    "macos terminal",
    "cat"
  ],
  "cves": [],
  "product": "iTerm2",
  "disclosed": "2026-11-20",
  "news": "2026-11-21",
  "updated": "2026-11-22",
  "verdict": "now",
  "tile_line": "Public exploit: cat a file, run code. Update to 3.7.9.",
  "summary": "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.",
  "affected": [
    {
      "label": "iTerm2 3.6.1 to 3.7.8",
      "text": "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.",
      "cmd": "defaults read /Applications/iTerm.app/Contents/Info.plist CFBundleShortVersionString",
      "cite": [
        1,
        2,
        5,
        7
      ]
    },
    {
      "label": "It shows files from others",
      "text": "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.",
      "cite": [
        1
      ]
    }
  ],
  "do": [
    {
      "label": "Update to 3.7.9",
      "text": "Choose iTerm2 > Check for Updates. 3.7.9 is a security update: replies iTerm2 sends back to programs no longer include control characters that a shell could run.",
      "cite": [
        2,
        3,
        4,
        8
      ],
      "versions": [
        "iterm2"
      ]
    },
    {
      "label": "On macOS 12? No fixed release",
      "text": "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.",
      "cite": [
        2
      ]
    },
    {
      "label": "The escape-sequence setting won't help",
      "text": "The \"Disable potentially insecure escape sequences\" setting doesn't cover the escape sequence this uses, per the researcher. Updating is the fix.",
      "cite": [
        1
      ]
    }
  ],
  "fixed_in": {
    "iterm2": {
      "3.7": "3.7.9"
    }
  },
  "slack": "iTerm2 cat RCE (no CVE yet): in iTerm2 3.6.1 to 3.7.8, displaying a crafted file (e.g. cat README.md) runs commands, on a default install, in any shell. Full exploit public since 21 Nov, no attacks reported, not in KEV. Fix: iTerm2 3.7.9 (20 Nov, Check for Updates). On macOS 12.4 to 12.x the newest iTerm2 is 3.6.11 (June), with no fix.",
  "sources": [
    {
      "title": "ii4gsp (Minseong Kim): write-up, affected versions, full exploit",
      "url": "https://ii4gsp.github.io/iterm2-rce/",
      "date": "21 Nov"
    },
    {
      "title": "iTerm2: downloads, 3.7.9 security update, Kitty file transfer added in 3.6.1, 3.6.11 for macOS 12.4+",
      "url": "https://iterm2.com/downloads.html"
    },
    {
      "title": "iTerm2 fix: sanitize Kitty graphics responses",
      "url": "https://github.com/gnachman/iTerm2/commit/a53b1bc084fe062de44b52d03ccf713c7962ac83",
      "date": "20 Nov"
    },
    {
      "title": "iTerm2 fix: strip control characters from all report paths",
      "url": "https://github.com/gnachman/iTerm2/commit/2a63835ca19bbd20b0d051b33c14341b0b708d5b",
      "date": "20 Nov"
    },
    {
      "title": "iTerm2 3.6.11 source: same unsanitized error path",
      "url": "https://github.com/gnachman/iTerm2/blob/v3.6.11/sources/KittyImageController.swift"
    },
    {
      "title": "CISA KEV catalog: not listed (as of 20 Nov)",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
    },
    {
      "title": "iTerm2 3.6.0 source: Kitty file transfer still \"Unimplemented\"",
      "url": "https://github.com/gnachman/iTerm2/blob/v3.6.0/sources/KittyImageController.swift"
    },
    {
      "title": "iTerm2 docs: iTerm2 > Check for Updates",
      "url": "https://iterm2.com/documentation-menu-items.html"
    }
  ],
  "changes": [
    {
      "date": "2026-11-22",
      "text": "Published."
    }
  ],
  "status": {
    "exploit": "public",
    "attacks": "none",
    "kev": null,
    "scare": 2.6
  },
  "status_cite": {
    "exploit": [
      1
    ],
    "kev": [
      6
    ],
    "attacks": [
      6
    ]
  },
  "safe_versions": [
    {
      "id": "iterm2",
      "name": "iTerm2",
      "url": "https://tldrcve.com/versions/iterm2/",
      "json": "https://tldrcve.com/versions/iterm2.json",
      "checked": "2026-11-22",
      "lines": [
        {
          "line": "3.7 (macOS 13+)",
          "latest": "3.7.9",
          "released": "2026-11-20"
        }
      ]
    }
  ]
}
