CVE-2021-41106Lcobucci Jwt
Baja 3.3
Seguir: esta CVE · Lcobucci · Lcobucci Jwt Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 20
- CVSS 3.1
- 3.3
- EPSS
- 0.2% probabilidad de explotación en 30 días · percentil 6
- Requiere autenticación
- Sí
- Publicada
- 28 sep 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-345
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Qué pasa
JWT is a library to work with JSON Web Token and JSON Web Signature. Prior to versions 3.4.6, 4.0.4, and 4.1.5, users of HMAC-based algorithms (HS256, HS384, and HS512) combined with `Lcobucci\JWT\Signer\Key\LocalFileReference` as key are having their tokens issued/validated using the file path as hashing key - instead of the contents. The HMAC hashing functions take any string as input and, since users can issue and validate tokens, users are lead to believe that everything works properly. Versions 3.4.6, 4.0.4, and 4.1.5 have been patched to always load the file contents, deprecated the `Lcobucci\JWT\Signer\Key\LocalFileReference`, and suggest `Lcobucci\JWT\Signer\Key\InMemory` as the alternative. As a workaround, use `Lcobucci\JWT\Signer\Key\InMemory` instead of `Lcobucci\JWT\Signer\Key\LocalFileReference` to create the instances of one's keys.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Jwt.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | lcobucci/jwt |
≥ 3.4.0 < 3.4.6 |
3.4.6 |
composer require "lcobucci/jwt:^3.4.6" |
| Packagist | lcobucci/jwt |
≥ 4.0.0 < 4.0.4 |
4.0.4 |
composer require "lcobucci/jwt:^4.0.4" |
| Packagist | lcobucci/jwt |
≥ 4.1.0 < 4.1.5 |
4.1.5 |
composer require "lcobucci/jwt:^4.1.5" |
Según OSV / GitHub Advisories (GHSA-7322-jrq4-x5hf). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| lcobucci | jwt | ≥ 3.4.0 < 3.4.6 |
| lcobucci | jwt | ≥ 4.0.0 < 4.0.4 |
| lcobucci | jwt | ≥ 4.1.0 < 4.1.5 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory