PT-2025-43412 · Oauthlib+3 · Oauthlib+3

Published

2025-10-10

·

Updated

2026-06-03

·

CVE-2025-62706

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Authlib versions prior to 1.6.5
Description Authlib’s JWE implementation, specifically when handling the zip=DEF option, is susceptible to a denial of service. A small ciphertext can expand to a very large plaintext during decompression due to unbounded DEFLATE decompression. An attacker who can supply decryptable tokens can exploit this to exhaust memory and CPU resources, leading to a denial of service. The issue stems from the use of zlib.decompress without a maximum output limit in the DeflateZipAlgorithm.decompress function. The JWE decode flow applies this decompression without any size restrictions. The vulnerability can be reproduced by crafting a small zip=DEF ciphertext that inflates to a very large plaintext during decryption. The impact is high availability disruption, but there is no direct confidentiality or integrity impact.
Recommendations Versions prior to 1.6.5: Reject or strip zip=DEF for inbound JWEs at the application boundary. Versions prior to 1.6.5: Add a bounded decompression guard, returning an error when output exceeds a safe limit. Versions prior to 1.6.5: Enforce strict maximum token sizes and fail fast on oversized inputs, combining this with rate limiting.

Exploit

Fix

DoS

Resource Exhaustion

Allocation of Resources Without Limits

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2025-62706
DLA-4352-1
GHSA-G7F3-828F-7H7M
SUSE-SU-2025:3842-1
USN-8065-1

Affected Products

Oauthlib
Debian
Linuxmint
Ubuntu