CVE-2024-28176 jose vulnerable to resource exhaustion via specifically crafted JWE with compressed plaintext

Medium 4.9 Published Updated

Attackers can cause resource exhaustion via crafted JWE tokens, leading to denial of service in applications using the jose library.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-28176?

CVE-2024-28176 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 9 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

jose is JavaScript module for JSON Object Signing and Encryption, providing support for JSON Web Tokens (JWT), JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), JSON Web Key Set (JWKS), and more. A vulnerability has been identified in the JSON Web Encryption (JWE) decryption interfaces, specifically related to the support for decompressing plaintext after its decryption. Under certain conditions it is possible to have the user's environment consume unreasonable amount of CPU time or memory during JWE Decryption operations. This issue has been patched in versions 2.0.7 and 4.15.5.

Weakness: CWE-400

Which versions are affected by CVE-2024-28176?

8 open source packages ship an affected version, including jose, jose-node-cjs-runtime and jose-node-esm-runtime. It affects 2 products.

PackageAffectedFixed in
jose npmAll versions2.0.7
jose npmAll versions2.0.7
jose npmFrom 3.0.04.15.5
jose npmFrom 3.0.04.15.5
jose-node-cjs-runtime npmAll versions4.15.5
jose-node-cjs-runtime npmAll versions4.15.5
2 more packages
jose-node-esm-runtime npmAll versions4.15.5
jose-node-esm-runtime npmAll versions4.15.5

Products include Fedoraproject Fedora, Jose Project Jose.

How do I fix CVE-2024-28176?

Upgrade jose to a fixed version for your release line: 2.0.7 or 4.15.5.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-28176 being exploited?

There is no known exploitation of CVE-2024-28176 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as CLSA-2026-1792163458, GHSA-hhhv-q57g-882q, UBUNTU-CVE-2024-28176.

Is CVE-2024-28176 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free