CVE-2024-28102
JWCrypto vulnerable to JWT bomb Attack in `deserialize` function
Reported by github_m · Published March 6, 2024
jwcrypto is fixed in 1.5.6 (PyPI)
JWCrypto implements JWK, JWS, and JWE specifications using python-cryptography. Prior to version 1.5.6, an attacker can cause a denial of service attack by passing in a malicious JWE Token with a high compression ratio. When the server processes this token, it will consume a lot of memory and processing time. Version 1.5.6 fixes this vulnerability by limiting the maximum token length.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| jwcrypto | PyPI | 1.5.6 |
| py3-jwcrypto | Chainguard | 1.5.6-r0 |
| py3-jwcrypto | Wolfi | 1.5.6-r0 |
| python-jwcrypto | Amazon Linux | 0.4.2-1.amzn2.0.2 |
| jwcrypto | latchset | 1.5.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| latchset | jwcrypto | < 1.5.6 |
| latchset | jwcrypto | 0 |
| chainguard | py3-jwcrypto | 0 |
| wolfi | py3-jwcrypto | 0 |
| amazon:2 | python-jwcrypto | 0 |
| latchset | jwcrypto | 0 |
| PyPI | jwcrypto | 0 |
Timeline
- Mar 6, 2024 CVE Published
- Mar 7, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (10 in total, the first dated here)
- Jan 14, 2026 Security Advisory (29 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (24 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-28102
vulnetix vdb fixes CVE-2024-28102
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-28102/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/latchset/jwcrypto/security/advisories/GHSA-j857-7rvv-vj97 x_refsource_CONFIRM
- https://github.com/latchset/jwcrypto/commit/90477a3b6e73da69740e00b8161f53fea19b831f x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-28102 advisory
- https://github.com/advisories/GHSA-j857-7rvv-vj97 advisory
- https://github.com/latchset/jwcrypto url
- https://www.vicarius.io/vsociety/posts/denial-of-service-vulnerability-discovered-in-jwcrypto-cve-2024-28102-28103 url
- https://lists.debian.org/debian-lts-announce/2024/09/msg00026.html url