Descrizione

A flaw was found in Samba. A remote attacker can exploit a misconfiguration in Samba file servers and classic domain controllers that use the "check password script" feature. If this script is configured with the %u substitution character, the client-controlled username is passed without proper escaping of shell meta-characters. This vulnerability allows an attacker to achieve remote command execution on the affected system. This issue primarily affects non-standard configurations where the "check password script" is used with %u and the samba-dcerpcd service is started as a system service.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.8.

Versioni da aggiornare

  • Samba Samba: vulnerabili le versioni dalla 4.1.0 precedenti alla 4.21.0 → aggiornare alla 4.21.0 o successiva.
  • Redhat Openshift Container Platform: vulnerabile la versione 4.0 → installare l'ultima release supportata dal vendor.
  • Redhat Enterprise Linux: vulnerabile la versione 6.0 → installare l'ultima release supportata dal vendor.
  • Redhat Enterprise Linux: vulnerabile la versione 7.0 → installare l'ultima release supportata dal vendor.
  • Redhat Enterprise Linux: vulnerabile la versione 9.0 → installare l'ultima release supportata dal vendor.

Patch e advisory

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
Samba Samba ≥ 4.1.0 < 4.21.0 4.21.0
Redhat Openshift Container Platform 4.0 —
Redhat Enterprise Linux 6.0 —
Redhat Enterprise Linux 7.0 —
Redhat Enterprise Linux 9.0 —

Riferimenti