iTerm2 Code Execution Vulnerability via DCS 2000p and OSC 135

Vulnerability

A code execution vulnerability has been identified in iTerm2 versions through 3.6.9. The issue arises when a .txt file is displayed, allowing for execution of arbitrary code through DCS 2000p and OSC 135 data. This exploitation occurs if the working directory contains a malicious file with a name that can be generated by the conductor encoding path, such as one starting with 'ace/c+'. The vulnerability exists because iTerm2 improperly handles the SSH conductor protocol, accepting unverified data that can trigger code execution.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the affected system.

Reproduction

To reproduce this vulnerability, place a malicious file in the working directory that has a name valid under the conductor encoding path, such as one starting with 'ace/c+'. Then, open a .txt file in iTerm2 version 3.6.9 or earlier. The terminal will process the DCS 2000p and OSC 135 data from the text file, executing the code from the maliciously named file.

Remediation

Users can update to iTerm2 version 3.6.10beta1, which includes a fix for this vulnerability. This beta version can be downloaded from the iTerm2 website.

Added: Apr 18, 2026, 6:18 AM
Updated: Apr 18, 2026, 6:18 AM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
7.5
exploitability
4.3
remediation
7.7
relevance
6.4
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.