REDHAT-BUG-2456187: Low severity pypi/jwcrypto vulnerability

Published Apr 7, 2026
·
Updated

JWCrypto implements JWK, JWS, and JWE specifications using python-cryptography. Prior to 1.5.7, an unauthenticated attacker can exhaust server memory by sending crafted JWE tokens with ZIP compression. The existing patch for CVE-2024-28102 limits input token size to 250KB but does not validate the decompressed output size. An unauthenticated attacker can cause memory exhaustion on memory-constrained systems. A token under the 250KB input limit can decompress to approximately 100MB. This vulnerability is fixed in 1.5.7.

Affected Software

1 affected component
pypi/jwcrypto<1.5.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade JWCrypto to a version that resolves this vulnerability.

    Fixed in 1.5.7
  2. Compensating control

    Use the existing patch for CVE-2024-28102 to limit unauthenticated input JWE token size to 250KB (note: this patch alone does not validate decompressed output size).

Event History

Apr 7, 2026
Data Sourced
via Red Hat·08:03 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

An attacker only needs to send a crafted JWE token using ZIP compression. No authentication is required.

2

Are systems with the earlier 250KB token-size limit still affected?

Yes. The 250KB limit restricts compressed input size but does not limit decompressed output; a token below that limit can expand to approximately 100MB in memory.

3

Which deployments are most at risk?

Memory-constrained systems processing attacker-supplied JWE tokens are most exposed, because repeated crafted tokens can exhaust available server memory.

4

What version fixes the vulnerability?

The issue is fixed in jwcrypto version 1.5.7.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203