Vulnerability · Published Mar 6, 2024 · Assigned by GitHub_M
CVE-2024-28102JWCrypto vulnerable to JWT bomb Attack in `deserialize` function
Medium 6.8
In plain English
A medium-severity resource allocation without limits in jwcrypto from latchset. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | python3-jwcrypto | 0.8-5.el9_4 | ALSA-2024:2559 |
| Debian:12 | python-jwcrypto | 1.1.0-1+deb12u1 | DEBIAN-CVE-2024-28102 |
| Debian:13 | python-jwcrypto | 1.5.6-1 | DEBIAN-CVE-2024-28102 |
| Debian:14 | python-jwcrypto | 1.5.6-1 | DEBIAN-CVE-2024-28102 |
| PyPI | jwcrypto | 1.5.6 | PYSEC-2026-1484 |
| PyPI | jwcrypto | 1.5.6 | GHSA-j857-7rvv-vj97 |
| Rocky Linux:8 | bind-dyndb-ldap | 0:11.6-5.module+el8.10.0+1819+0aeba2f1 | RLSA-2024:3267 |
| Rocky Linux:8 | custodia | 0:0.6.0-3.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Rocky Linux:8 | ipa | 0:4.9.13-9.module+el8.10.0+1818+2dfda7a6 | RLSA-2024:3267 |
| Rocky Linux:8 | ipa-healthcheck | 0:0.12-3.module+el8.9.0+1433+5bd2f890 | RLSA-2024:3267 |
| Rocky Linux:8 | opendnssec | 0:2.1.7-1.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Rocky Linux:8 | python-jwcrypto | 0:0.5.0-2.module+el8.10.0+1818+2dfda7a6 | RLSA-2024:3267 |
| Rocky Linux:8 | python-kdcproxy | 0:0.4-5.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Rocky Linux:8 | python-qrcode | 0:5.1-12.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Rocky Linux:8 | python-yubico | 0:1.3.2-9.1.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Rocky Linux:8 | pyusb | 0:1.0.0-9.1.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Rocky Linux:8 | slapi-nis | 0:0.60.0-4.module+el8.9.0+1573+39ab85f4 | RLSA-2024:3267 |
| Rocky Linux:8 | softhsm | 0:2.6.0-5.module+el8.9.0+1371+ffa84eb9 | RLSA-2024:3267 |
| Ubuntu:22.04:LTS | python-jwcrypto | no fix listed | UBUNTU-CVE-2024-28102 |
| Ubuntu:24.04:LTS | python-jwcrypto | no fix listed | UBUNTU-CVE-2024-28102 |
| Ubuntu:25.10 | python-jwcrypto | no fix listed | UBUNTU-CVE-2024-28102 |
| Ubuntu:26.04:LTS | python-jwcrypto | no fix listed | UBUNTU-CVE-2024-28102 |
| Ubuntu:26.10 | python-jwcrypto | no fix listed | UBUNTU-CVE-2024-28102 |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H
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://www.vicarius.io/vsociety/posts/denial-of-service-vulnerability-discovered-in-jwcrypto-cve-2024-28102-28103
- https://lists.debian.org/debian-lts-announce/2024/09/msg00026.html