Descrizione

In Valkey before 7.2.15, 8.0.x before 8.0.12, 8.1.x before 8.1.11, 9.0.x before 9.0.7, 9.1.x before 9.1.3 and 9.2.0-rc1, running in cluster mode, clusterCreatePublishMsgBlock computes the length of the cluster bus message for a PUBLISH or SPUBLISH as a size_t but passes it to createClusterMsgSendBlock as a uint32_t. When the channel and message together exceed 4 GiB, the length is truncated, a buffer far smaller than the message is allocated, and the full channel and message are then copied into it. An authenticated user who can publish, for example by building the arguments in a script, can overflow the heap with attacker-controlled bytes. This reliably crashes the server and may lead to remote code execution. Servers that do not run in cluster mode are not affected.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.8, EPSS 1.0% (percentile 61).

Versioni da aggiornare

  • Valkey Valkey: vulnerabili le versioni precedenti alla 7.2.15 → aggiornare alla 7.2.15 o successiva.
  • Valkey Valkey: vulnerabili le versioni dalla 8.0.0 precedenti alla 8.0.12 → aggiornare alla 8.0.12 o successiva.
  • Valkey Valkey: vulnerabili le versioni dalla 8.1.0 precedenti alla 8.1.11 → aggiornare alla 8.1.11 o successiva.
  • Valkey Valkey: vulnerabili le versioni dalla 9.0.0 precedenti alla 9.0.7 → aggiornare alla 9.0.7 o successiva.
  • Valkey Valkey: vulnerabili le versioni dalla 9.1.0 precedenti alla 9.1.3 → aggiornare alla 9.1.3 o successiva.
  • Valkey Valkey: vulnerabili le versioni dalla 9.2.0-rc1 precedenti alla 9.2.0-rc2 → aggiornare alla 9.2.0-rc2 o successiva.

Indicazioni del vendor

Soluzione (testo originale del vendor):

Upgrade to Valkey 7.2.15, 8.0.12, 8.1.11, 9.0.7, 9.1.3, 9.2.0-rc2 or later.

Workaround (testo originale del vendor):

Use Valkey ACLs to restrict the scripting commands (EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, FCALL, FCALL_RO and FUNCTION) if your application does not use them, and do not raise proto-max-bulk-len above its default.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.

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
Valkey Valkey < 7.2.15 7.2.15
Valkey Valkey ≥ 8.0.0 < 8.0.12 8.0.12
Valkey Valkey ≥ 8.1.0 < 8.1.11 8.1.11
Valkey Valkey ≥ 9.0.0 < 9.0.7 9.0.7
Valkey Valkey ≥ 9.1.0 < 9.1.3 9.1.3
Valkey Valkey ≥ 9.2.0-rc1 < 9.2.0-rc2 9.2.0-rc2

Riferimenti