Skip to content
OpenAdvisories
Medium · 6.8 CVE-2024-28102 EUVD-2024-0946GHSA-j857-7rvv-vj97PYSEC-2026-1484

JWCrypto vulnerable to JWT bomb Attack in `deserialize` function

Published Mar 6, 2024 · Updated Sep 9, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
latchset jwcrypto < 1.5.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-jwcrypto 1.5.6-1 —
Debian 13 python-jwcrypto 1.5.6-1 —
Debian 12 python-jwcrypto 1.1.0-1+deb12u1 —
Debian 11 python-jwcrypto 0.8.0-1+deb11u1 DLA-3883-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-jwcrypto No fix yet —
Ubuntu 26.04 LTS python-jwcrypto No fix yet —
Ubuntu 25.10 python-jwcrypto No fix yet —
Ubuntu 24.04 LTS python-jwcrypto No fix yet —
Ubuntu 22.04 LTS python-jwcrypto No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-jwcrypto No fix yet —
Ubuntu 18.04 LTS python-jwcrypto No fix yet —
Ubuntu 16.04 LTS python-jwcrypto No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 python-jwcrypto +1 0.8-5.el9_4 RHSA-2024:2559
RHEL 8 bind-dyndb-ldap 11.6-5.module+el8.10.0+21691+df63127d RHSA-2024:3267
RHEL 8 custodia +1 0.6.0-3.module+el8.9.0+18911+94941f82 RHSA-2024:3267
RHEL 8 ipa +9 4.9.13-9.module+el8.10.0+21692+c9b201bc RHSA-2024:3267
RHEL 8 ipa-healthcheck +1 0.12-3.module+el8.9.0+19692+fac39a03 RHSA-2024:3267
RHEL 8 ipa-server +5 4.9.13-9.module+el8.10.0+21691+df63127d RHSA-2024:3267
RHEL 8 opendnssec 2.1.7-1.module+el8.9.0+18911+94941f82 RHSA-2024:3267
RHEL 8 python-jwcrypto +1 0.5.0-2.module+el8.10.0+21692+c9b201bc RHSA-2024:3267
RHEL 8 python-kdcproxy +1 0.4-5.module+el8.9.0+18911+94941f82 RHSA-2024:3267
RHEL 8 python-qrcode +2 5.1-12.module+el8.9.0+18920+2223d05e RHSA-2024:3267
RHEL 8 python-yubico +1 1.3.2-9.1.module+el8.9.0+18920+2223d05e RHSA-2024:3267
RHEL 8 pyusb +1 1.0.0-9.1.module+el8.9.0+18920+2223d05e RHSA-2024:3267
RHEL 8 slapi-nis 0.60.0-4.module+el8.10.0+20723+03062ebd RHSA-2024:3267
RHEL 8 softhsm +1 2.6.0-5.module+el8.9.0+18911+94941f82 RHSA-2024:3267
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.5.8-1.el8ap RHSA-2024:4522

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 python3-jwcrypto 0.8-5.el9_4 ALSA-2024:2559

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 bind-dyndb-ldap 11.6-5.module+el8.10.0+1819+0aeba2f1 RLSA-2024:3267
Rocky Linux 8 custodia 0.6.0-3.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
Rocky Linux 8 ipa 4.9.13-9.module+el8.10.0+1818+2dfda7a6 RLSA-2024:3267
Rocky Linux 8 ipa-healthcheck 0.12-3.module+el8.9.0+1433+5bd2f890 RLSA-2024:3267
Rocky Linux 8 opendnssec 2.1.7-1.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
Rocky Linux 8 python-jwcrypto 0.5.0-2.module+el8.10.0+1818+2dfda7a6 RLSA-2024:3267
Rocky Linux 8 python-kdcproxy 0.4-5.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
Rocky Linux 8 python-qrcode 5.1-12.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
Rocky Linux 8 python-yubico 1.3.2-9.1.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
Rocky Linux 8 pyusb 1.0.0-9.1.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
Rocky Linux 8 slapi-nis 0.60.0-4.module+el8.9.0+1573+39ab85f4 RLSA-2024:3267
Rocky Linux 8 softhsm 2.6.0-5.module+el8.9.0+1371+ffa84eb9 RLSA-2024:3267
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-jwcrypto 1.6.0-1.1 openSUSE-SU-2026:11712-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python-jwcrypto 0.4.2-1.amzn2.0.2 ALAS2-2025-2763

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-jwcrypto No fix yet —
Azure Linux 2 (CBL-Mariner) python-jwcrypto No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 python3-jwcrypto 0.8-5.el9_4 ELSA-2024-2559
Oracle Linux 8 bind-dyndb-ldap 11.6-5.module+el8.10.0+90339+985471f7 ELSA-2024-3267
Oracle Linux 8 custodia +1 0.6.0-3.module+el8.9.0+90094+20819f5a ELSA-2024-3267
Oracle Linux 8 ipa-client +8 4.9.13-9.0.1.module+el8.10.0+90340+9faa45ba ELSA-2024-3267
Oracle Linux 8 ipa-healthcheck 0.12-3.module+el8.9.0+90094+20819f5a ELSA-2024-3267
Oracle Linux 8 ipa-healthcheck-core 0.12-3.module+el8.9.0+90095+d672673c ELSA-2024-3267
Oracle Linux 8 ipa-server +5 4.9.13-9.0.1.module+el8.10.0+90339+985471f7 ELSA-2024-3267
Oracle Linux 8 opendnssec 2.1.7-1.module+el8.9.0+90094+20819f5a ELSA-2024-3267
Oracle Linux 8 python3-jwcrypto 0.5.0-2.module+el8.10.0+90340+9faa45ba ELSA-2024-3267
Oracle Linux 8 python3-kdcproxy 0.4-5.module+el8.9.0+90122+3305dc1d ELSA-2024-3267
Oracle Linux 8 python3-pyusb 1.0.0-9.1.module+el8.9.0+90095+d672673c ELSA-2024-3267
Oracle Linux 8 python3-qrcode +1 5.1-12.module+el8.9.0+90095+d672673c ELSA-2024-3267
Oracle Linux 8 python3-yubico 1.3.2-9.1.module+el8.9.0+90095+d672673c ELSA-2024-3267
Oracle Linux 8 slapi-nis 0.60.0-4.module+el8.10.0+90297+bfe93ccc ELSA-2024-3267
Oracle Linux 8 softhsm +1 2.6.0-5.module+el8.9.0+90094+20819f5a ELSA-2024-3267

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-jwcrypto 1.5.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI jwcrypto < 1.5.6 1.5.6 GHSA-j857-7rvv-vj97

Advisories 11

References