CVE-2025-62706

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JWE zip=DEF path performs unbounded DEFLATE decompression. A very small ciphertext can expand into tens or hundreds of megabytes on decrypt, allowing an attacker who can supply decryptable tokens to exhaust memory and CPU and cause denial of service. This issue has been patched in version 1.6.5. Workarounds for this issue involve rejecting or stripping zip=DEF for inbound JWEs at the application boundary, forking and add a bounded decompression guard via decompressobj().decompress(data, MAX_SIZE)) and returning an error when output exceeds a safe limit, or enforcing strict maximum token sizes and fail fast on oversized inputs; combine with rate limiting.
Configurations

Configuration 1 (hide)

cpe:2.3:a:authlib:authlib:*:*:*:*:*:*:*:*

History

19 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) Authlib es una biblioteca Python que construye servidores OAuth y OpenID Connect. Antes de la versión 1.6.5, la ruta JWE zip=DEF de Authlib realiza una descompresión DEFLATE ilimitada. Un texto cifrado muy pequeño puede expandirse a decenas o cientos de megabytes al descifrar, permitiendo a un atacante que puede suministrar tokens descifrables agotar la memoria y la CPU y causar denegación de servicio. Este problema ha sido parcheado en la versión 1.6.5. Las soluciones alternativas para este problema implican rechazar o eliminar zip=DEF para los JWE entrantes en el límite de la aplicación, bifurcar y añadir una protección de descompresión limitada a través de decompressobj().decompress(data, MAX_SIZE)) y devolver un error cuando la salida excede un límite seguro, o aplicar tamaños máximos de token estrictos y fallar rápidamente en entradas sobredimensionadas; combinar con la limitación de velocidad.

Information

Published : 2025-10-22 22:15

Updated : 2026-10-19 13:10


NVD link : CVE-2025-62706

Mitre link : CVE-2025-62706

CVE.ORG link : CVE-2025-62706


JSON object : View

Products Affected

authlib

  • authlib
CWE
CWE-400

Uncontrolled Resource Consumption

CWE-770

Allocation of Resources Without Limits or Throttling