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.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)1.0%top 37.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:9python3-jwcrypto0.8-5.el9_4ALSA-2024:2559
Debian:12python-jwcrypto1.1.0-1+deb12u1DEBIAN-CVE-2024-28102
Debian:13python-jwcrypto1.5.6-1DEBIAN-CVE-2024-28102
Debian:14python-jwcrypto1.5.6-1DEBIAN-CVE-2024-28102
PyPIjwcrypto1.5.6PYSEC-2026-1484
PyPIjwcrypto1.5.6GHSA-j857-7rvv-vj97
Rocky Linux:8bind-dyndb-ldap0:11.6-5.module+el8.10.0+1819+0aeba2f1RLSA-2024:3267
Rocky Linux:8custodia0:0.6.0-3.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Rocky Linux:8ipa0:4.9.13-9.module+el8.10.0+1818+2dfda7a6RLSA-2024:3267
Rocky Linux:8ipa-healthcheck0:0.12-3.module+el8.9.0+1433+5bd2f890RLSA-2024:3267
Rocky Linux:8opendnssec0:2.1.7-1.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Rocky Linux:8python-jwcrypto0:0.5.0-2.module+el8.10.0+1818+2dfda7a6RLSA-2024:3267
Rocky Linux:8python-kdcproxy0:0.4-5.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Rocky Linux:8python-qrcode0:5.1-12.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Rocky Linux:8python-yubico0:1.3.2-9.1.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Rocky Linux:8pyusb0:1.0.0-9.1.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Rocky Linux:8slapi-nis0:0.60.0-4.module+el8.9.0+1573+39ab85f4RLSA-2024:3267
Rocky Linux:8softhsm0:2.6.0-5.module+el8.9.0+1371+ffa84eb9RLSA-2024:3267
Ubuntu:22.04:LTSpython-jwcryptono fix listedUBUNTU-CVE-2024-28102
Ubuntu:24.04:LTSpython-jwcryptono fix listedUBUNTU-CVE-2024-28102
Ubuntu:25.10python-jwcryptono fix listedUBUNTU-CVE-2024-28102
Ubuntu:26.04:LTSpython-jwcryptono fix listedUBUNTU-CVE-2024-28102
Ubuntu:26.10python-jwcryptono fix listedUBUNTU-CVE-2024-28102

Affected products (as reported)

VendorProductVersions
latchset jwcrypto < 1.5.6

Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H

References