Amenazas en vivo

Todas las CVE / golang-jwt

CVE-2025-30204golang-jwt jwt

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
—
Requiere autenticación
No
Publicada
21 mar 2025
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-405
SSVC (CISA)
Explotación: ninguna · Automatizable: sí · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Qué pasa

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.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para jwt.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
Go github.com/golang-jwt/jwt ≥ 3.2.0 ≤ 3.2.2 sin versión corregida —
Go github.com/golang-jwt/jwt todas sin versión corregida —
Go github.com/golang-jwt/jwt/v4 < 4.5.2 4.5.2 go get github.com/golang-jwt/jwt/v4@v4.5.2
Go github.com/golang-jwt/jwt/v4 < 4.5.2 4.5.2 go get github.com/golang-jwt/jwt/v4@v4.5.2
Go github.com/golang-jwt/jwt/v5 ≥ 5.0.0-rc.1 < 5.2.2 5.2.2 go get github.com/golang-jwt/jwt/v5@v5.2.2
Go github.com/golang-jwt/jwt/v5 ≥ 5.0.0-rc.1 < 5.2.2 5.2.2 go get github.com/golang-jwt/jwt/v5@v5.2.2

Según OSV / GitHub Advisories (GHSA-mh63-6h87-95cp, GO-2025-3553). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados

Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.

Boletines oficiales

Además: Red Hat (+15), SUSE (+11)

Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.