CVE-2023-46322

iTermSessionLauncher.m in iTerm2 before 3.5.0beta12 does not sanitize ssh hostnames in URLs

published October 22, 2023

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

⚠️ A sneaky oversight in iTerm2 allows non-alphanumeric characters in SSH hostnames! It's like letting a party crasher into your VIP section — it could lead to some unexpected chaos. 😲 Think of an online delivery service that accepts any address format without checking for accuracy. Just as a poorly formatted address could send your package to the wrong place, unvalidated hostname characters in iTerm2 might route your SSH sessions to unintended destinations. This vulnerability could potentially allow malicious actors to manipulate SSH connections, leading to unauthorized access to sensitive systems or data. While it's not actively exploited, the risk remains concerning, especially if your environment relies heavily on SSH for secure communications.

Put simply

Think of an online delivery service that accepts any address format without checking for accuracy. Just as a poorly formatted address could send your package to the wrong place, unvalidated hostname characters in iTerm2 might route your SSH sessions to unintended destinations. In iTerm2 before version 3.5.0beta12, the iTermSessionLauncher.m file does not properly sanitize SSH hostnames in URLs. This oversight permits initial characters to be non-alphanumeric and allows other characters outside the safe set of alphanumeric, dash, and period.

What to do

This vulnerability could potentially allow malicious actors to manipulate SSH connections, leading to unauthorized access to sensitive systems or data. While it's not actively exploited, the risk remains concerning, especially if your environment relies heavily on SSH for secure communications. To mitigate this vulnerability, update iTerm2 to version 3.5.0beta12 or later. Always validate and sanitize any user-inputted SSH hostnames to ensure they adhere to proper standards before use in your applications. You've got this! Keep your systems secure by applying the update and validating inputs. 🛡️

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 ssh hostnames in URLs
    cvelistv5