1. Archivio CVE
  2. 2025
  3. CVE-2025-30204

CVE-2025-30204

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – Alta

Descrizione

golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
golang-jwt jwt >= 3.2.0, < 4.5.2 –
golang-jwt jwt >= 5.0.0-rc.1, < 5.2.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

AmbitoImpatto
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.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 74 CVE di tipo CWE-405, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org