Descrizione
Svelte devalue is a JavaScript library that serializes values into strings when JSON.stringify isn't sufficient for the job. From 5.3.0 to 5.6.1, certain inputs can cause devalue.parse to consume excessive CPU time and/or memory, potentially leading to denial of service in systems that parse input from untrusted sources. This affects applications using devalue.parse on externally-supplied data. The root cause is the typed array hydration expecting an ArrayBuffer as input, but not checking the assumption before creating the typed array. This vulnerability is fixed in 5.6.2.
Tipo di vulnerabilità
CWE-405
Asymmetric Resource Consumption (Amplification)
The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is asymmetric.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità |
Interruzione del servizio: amplificazione, Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria, Interruzione del servizio: esaurimento di risorse |
Come si previene
Architettura e progettazione
An application must make resources available to a client commensurate with the client's access level.
Architettura e progettazione
An application must, at all times, keep track of allocated resources and meter their usage appropriately.
Configurazione del sistema
Consider disabling resource-intensive algorithms on the server side, such as Diffie-Hellman key exchange.
Tutte le 74 CVE di tipo CWE-405, con andamento e prevenzione