Web-Token jwt-framework before 3.4.10 DoS via Unbounded PBES2 p2c Iteration Count
NIST has received this entry but not started reviewing it.
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.
Allocation of Resources Without Limits or Throttling CWE-770
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 6 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Web-token Jwt-library | Software | from 3.3.0, before 3.4.10 | 3.4.10 |
| Web-token Jwt-library | Software | from 4.0.0, before 4.0.7 | 4.0.7 |
| Web-token Jwt-library | Software | from 4.1.0, before 4.1.7 | 4.1.7 |
| Web-token Jwt-framework | Software | from 0, before 3.4.10 | 3.4.10 |
| Web-token Jwt-framework | Software | from 4.0.0, before 4.0.7 | 4.0.7 |
| Web-token Jwt-framework | Software | from 4.1.0, before 4.1.7 | 4.1.7 |
The 8.7 severity score (high) from vulncheck.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Setup needed on the target | None | No special setup on the target is needed. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | None | No data can be read. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | High | The attacker can take the service down completely. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
NIST lists 2 sources for this flaw, none tagged as a vendor patch.