Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-38396: n/a

0
Critical
VulnerabilityCVE-2024-38396cvecve-2024-38396
Published: Sun Jun 16 2024 (06/16/2024, 00:00:00 UTC)
Source: CVE Database V5

Description

An issue was discovered in iTerm2 3.5.x before 3.5.2. Unfiltered use of an escape sequence to report a window title, in combination with the built-in tmux integration feature (enabled by default), allows an attacker to inject arbitrary code into the terminal, a different vulnerability than CVE-2024-38395.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 04:02:02 UTC

Technical Analysis

CVE-2024-38396 is a critical vulnerability affecting iTerm2 versions before 3.5.2, specifically in the handling of escape sequences used to report window titles. The issue stems from the unfiltered use of these escape sequences in conjunction with the built-in tmux integration feature, which is enabled by default. This combination allows an attacker to inject arbitrary code directly into the terminal session. The vulnerability is a form of code injection related to CWE-94, where untrusted input is improperly handled, enabling remote code execution (RCE). The attack vector is network-based (AV:N), requiring no privileges (PR:N) or user interaction (UI:N), and affects the confidentiality, integrity, and availability of the system (C:H/I:H/A:H). The tmux integration feature, designed to enhance terminal multiplexing, inadvertently introduces this risk by not sanitizing escape sequences that can manipulate terminal behavior. Although no public exploits have been reported yet, the vulnerability's critical severity and ease of exploitation make it a significant threat to users of iTerm2, particularly developers and system administrators who rely on this terminal emulator on macOS platforms.

Potential Impact

The impact of CVE-2024-38396 is severe, as it allows remote attackers to execute arbitrary code on affected systems without authentication or user interaction. This can lead to full system compromise, including unauthorized access to sensitive data, modification or destruction of data, and disruption of system availability. Since iTerm2 is widely used by developers, IT professionals, and system administrators on macOS, exploitation could facilitate lateral movement within corporate networks, data exfiltration, or deployment of further malware. The vulnerability undermines the trust in terminal sessions, which are critical for secure system management and development workflows. Organizations relying on iTerm2 for remote access or local terminal emulation face increased risk of targeted attacks, especially in environments where tmux integration is actively used. The lack of known exploits in the wild provides a window for proactive mitigation, but the high CVSS score underscores the urgency of addressing this flaw.

Mitigation Recommendations

To mitigate CVE-2024-38396, organizations should immediately upgrade iTerm2 to version 3.5.2 or later, where the vulnerability has been patched. If upgrading is not immediately feasible, temporarily disabling the tmux integration feature can reduce exposure, as this feature is integral to the exploit path. Additionally, users should restrict terminal access to trusted networks and employ network segmentation to limit potential attack vectors. Monitoring terminal logs for unusual escape sequences or unexpected terminal behavior can help detect exploitation attempts. Implementing endpoint detection and response (EDR) solutions with capabilities to identify anomalous code execution in terminal processes is advisable. Security teams should also educate users about the risks of using untrusted terminal sessions and avoid opening terminal windows or sessions from unknown sources. Regularly reviewing and updating terminal emulator configurations to minimize unnecessary features can further reduce attack surfaces.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-06-16T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6c79b7ef31ef0b564c43

Added to database: 2/25/2026, 9:41:13 PM

Last enriched: 2/28/2026, 4:02:02 AM

Last updated: 4/12/2026, 2:02:19 AM

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses