Descrizione

iTerm2 before 3.7.7beta2 has an argument injection vulnerability in the x-man-page: URL handler, allowing an attacker to execute arbitrary commands with the privileges of the logged-in user by inducing the user to open a crafted URL in iTerm2. Percent-encoded NUL characters survive input sanitization and are subsequently converted to whitespace during command-line parsing, allowing injection of additional arguments to /usr/bin/man. An attacker can inject the -P option to select an attacker-controlled pager command. NOTE: this issue exists because of an incomplete fix for CVE-2023-46321.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 0.5% (percentile 41).

Versioni da aggiornare

  • iTerm2 iTerm2: vulnerabili le versioni precedenti alla 3.7.7beta2 → aggiornare alla 3.7.7beta2 o successiva.

Indicazioni del vendor

Soluzione (testo originale del vendor):

The maintainer confirms that the fix first shipped in iTerm2 3.7.7beta2 and will be included in the 3.7.7 stable release. The x-man-page: handler now validates manual-page sections and page names against an allowlist of characters. URLs containing NUL or other disallowed characters are rejected with a warning. Users should upgrade to a release containing this fix.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Limitare l'accesso all'interfaccia vulnerabile (VPN o allowlist IP), disabilitare le funzionalità non necessarie e monitorare processi anomali avviati dal servizio.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
iTerm2 iTerm2 < 3.7.7beta2 3.7.7beta2

Riferimenti