CVE-2023-46321

iTermSessionLauncher.m in iTerm2 before 3.5.0beta12 does not sanitize paths in x-man-page URLs

published October 22, 2023

CVSS
—
EPSS
1%
Percentile
50.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky path issue lets user inputs slip through without a proper check! iTerm2 before 3.5.0beta12 mishandles x-man-page URLs that could contain shell metacharacters. 🔥 Think of it like a restaurant that takes orders without asking whether customers want their food spicy or mild—the kitchen will just whip up whatever is requested, sometimes leading to a fiery surprise! An attacker could craft a malicious x-man-page URL that exploits this vulnerability, potentially executing unwanted commands on the system. While there’s no known exploit yet, the risk is still chilling, as it could lead to unauthorized access or actions if misused.

Put simply

Think of it like a restaurant that takes orders without asking whether customers want their food spicy or mild—the kitchen will just whip up whatever is requested, sometimes leading to a fiery surprise! This vulnerability in iTerm2 arises from the lack of path sanitization in x-man-page URLs, allowing shell metacharacters to be passed unfiltered to the `/usr/bin/man` command line, which could result in unexpected command execution.

What to do

An attacker could craft a malicious x-man-page URL that exploits this vulnerability, potentially executing unwanted commands on the system. While there’s no known exploit yet, the risk is still chilling, as it could lead to unauthorized access or actions if misused. To protect yourself, update iTerm2 to version 3.5.0beta12 or later right away. Additionally, consider monitoring and validating any inputs in your environment to prevent similar vulnerabilities in the future. You've got this! With a quick patch, you can keep your terminal safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00656 · 50.8th percentile
Published
2023-10-22T00:00Z
EPSS history
Timeline
  • 22 OCT 00:00Z
    iTermSessionLauncher.m in iTerm2 before 3.5.0beta12 does not sanitize paths in x-man-page URLs
    cvelistv5