Security Experts:

Connect with us

Hi, what are you looking for?



Audit Finds Critical Vulnerability in iTerm2 macOS Terminal Emulator

A security audit funded by Mozilla has led to the discovery of a critical remote command execution vulnerability in the popular iTerm2 macOS terminal emulator.

A security audit funded by Mozilla has led to the discovery of a critical remote command execution vulnerability in the popular iTerm2 macOS terminal emulator.

The audit was conducted by Radically Open Security as part of Mozilla’s Open Source Support program (MOSS), which aims to ensure that the open source ecosystem is “healthy and secure.” iTerm2 was selected for an audit due to its popularity and the fact that it processes untrusted data.

The identified vulnerability has been patched by iTerm2’s developer, George Nachman, with the release of version 3.3.6.

According to Mozilla, the flaw could impact over a hundred thousand users, including developers, system administrators and others that may be seen as a valuable target to threat actors.

The vulnerability, tracked as CVE-2019-9535, exists in the way iTerm2 integrates with tmux, a terminal multiplexer for Unix-like operating systems. An attacker who can provide malicious output to the terminal could remotely execute arbitrary commands with the privileges of the targeted user.

In the case of developers and system admins, the vulnerability can pose a serious risk considering that they often have elevated privileges and access to sensitive information.

Nachman explained that the flaw can be exploited using specially crafted files or malicious input. The CERT Coordination Center noted in an advisory that “potential attack vectors include connecting via SSH to a malicious server, using curl to fetch a malicious website, or using tail -f to follow a logfile containing some malicious content.”

Mozilla says the vulnerability appears to have been present in iTerm2 for at least 7 years. The organization has published a video showing an exploit in action.

“Typically this vulnerability would require some degree of user interaction or trickery; but because it can be exploited via commands generally considered safe there is a high degree of concern about the potential impact,” Mozilla’s Tom Ritter explained.

Related: Code Execution Vulnerability Impacts NSA Reverse Engineering Tool

Related: ProFTPD Vulnerability Can Expose Servers to Attacks

Related: Several Vulnerabilities Patched in nginx

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Expert Insights

Related Content

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

IoT Security

Lexmark warns of a remote code execution (RCE) vulnerability impacting over 120 printer models, for which PoC code has been published.

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Email Security

Microsoft is urging customers to install the latest Exchange Server updates and harden their environments to prevent malicious attacks.

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.

Application Security

Drupal released updates that resolve four vulnerabilities in Drupal core and three plugins.


Security researchers have observed an uptick in attacks targeting CVE-2021-35394, an RCE vulnerability in Realtek Jungle SDK.


Google has awarded more than $25,000 to the researchers who reported the vulnerabilities patched with the release of the latest Chrome update.