Resource Exhaustion Affecting python-jwcrypto package, versions <0:0.4.2-1.amzn2.0.2


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.98% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PYTHONJWCRYPTO-8747530
  • published26 Feb 2025
  • disclosed21 Mar 2024

Introduced: 21 Mar 2024

CVE-2024-28102  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python-jwcrypto to version 0:0.4.2-1.amzn2.0.2 or higher.
This issue was patched in ALAS2-2025-2763.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-jwcrypto package and not the python-jwcrypto package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1