jwt-frameworkとjwt-libraryに、認証前にサーバーのCPUを使い果たされる脆弱性
Summary
認証なしで細工したJWEを送られると、サーバーがPBKDF2の計算を延々と行い、CPUを使い切られるおそれがあります。影響するのはjwt-libraryとjwt-frameworkの4.1.0以降4.1.7未満で、4.1.7で修正されています。すぐに4.1.7へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
認証なしで細工したJWEを送られると、サーバーがPBKDF2の計算を延々と行い、CPUを使い切られるおそれがあります。影響するのはjwt-libraryとjwt-frameworkの4.1.0以降4.1.7未満で、4.1.7で修正されています。すぐに4.1.7へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| web-tokenjwt-library |
≥ 4.1.0, < 4.1.7→ 4.1.7 |
4.1.7 |
| web-tokenjwt-framework |
≥ 4.1.0, < 4.1.7→ 4.1.7 |
4.1.7 |
| Packagistweb-token/jwt-library |
≥ 4.1.0, < 4.1.7→ 4.1.7 |
4.1.7 |
| Packagistweb-token/jwt-framework |
≥ 4.1.0, < 4.1.7→ 4.1.7 |
4.1.7 |
Original description The description as published by the source.
Web-Token jwt-framework and jwt-library before 3.4.10, 4.0.0 before 4.0.7, and 4.1.0 before 4.1.7 contain an uncontrolled resource consumption vulnerability in PBES2AESKW::unwrapKey(), which passes the attacker-controlled p2c JWE header value to hash_pbkdf2() without an upper bound. Unauthenticated attackers can send a JWE using a PBES2-HS*+A*KW algorithm with a huge p2c iteration count to force lengthy PBKDF2 computations and exhaust server CPU.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com