Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Authlib | Authlib | * | 1.6.5 (excluding) |
| Red Hat Quay 3.1 | RedHat | quay/quay-rhel8:sha256:fe48d48bb338329da213a0a21d2ac706b4b731593f154d554bfd420ad21a2912 | * |
| Red Hat Quay 3.1 | RedHat | quay/quay-rhel8:sha256:d0ad53575ddce599c11e959d3590300ab325633951003db4ef2d82a133c8ef19 | * |
| Red Hat Quay 3.12 | RedHat | quay/quay-rhel8:sha256:38f094f62eed92d88eae0e7a9be410ef908bd0194b30240d49087ae76250e0ee | * |
| Red Hat Quay 3.12 | RedHat | quay/quay-rhel8:sha256:38f094f62eed92d88eae0e7a9be410ef908bd0194b30240d49087ae76250e0ee | * |
| Red Hat Quay 3.12 | RedHat | quay/quay-rhel8:sha256:38f094f62eed92d88eae0e7a9be410ef908bd0194b30240d49087ae76250e0ee | * |
| Red Hat Quay 3.13 | RedHat | quay/quay-rhel8:sha256:3d24fd39236e7f3180ff2cbef7a28e2e30d9609f6ec0538a41ad4a602eabd12e | * |
| Red Hat Quay 3.9 | RedHat | quay/quay-rhel8:sha256:c7c6fe7ff2592c0fdf51d6e3b0ce657dffcd131c60c00ce680acd89c5c286cee | * |
| Red Hat Quay 3.9 | RedHat | quay/quay-rhel8:sha256:2336ad8d4b4874a92c6cfcbc8458b6d26f7f6dde300ca0e159f2b73d7e6839cd | * |
| Python-authlib | Ubuntu | esm-apps/jammy | * |
| Python-authlib | Ubuntu | esm-apps/noble | * |
| Python-authlib | Ubuntu | jammy | * |
| Python-authlib | Ubuntu | noble | * |
| Python-authlib | Ubuntu | plucky | * |
| Python-authlib | Ubuntu | questing | * |
| Python-authlib | Ubuntu | upstream | * |
Input validation is a frequently-used technique for checking potentially dangerous inputs in order to ensure that the inputs are safe for processing within the code, or when communicating with other components. Input can consist of:
Data can be simple or structured. Structured data can be composed of many nested layers, composed of combinations of metadata and raw data, with other simple or structured data. Many properties of raw data or metadata may need to be validated upon entry into the code, such as:
Implied or derived properties of data must often be calculated or inferred by the code itself. Errors in deriving properties may be considered a contributing factor to improper input validation.