cve.bz

CVE-2025-61920 authlib authlib: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 0.6%Fix available

High (7.5) in authlib authlib. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in authlib 1.6.5.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-10-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-400 Uncontrolled Resource Consumption
CWE-770 Allocation of Resources Without Limits or Throttling
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-61920 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-61920?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-61920?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-61920 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
authlib:authlibbefore 1.6.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pq5p-34cr-23v9PyPIauthlib<1.6.51.6.5
PYSEC-2026-1203PyPIauthlib<1.6.51.6.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-authlib0.15.4-1+deb11u1DLA-4352-1
Debian12python-authlib1.2.0-1+deb12u1DEBIAN-CVE-2025-61920
Debian13python-authlib1.6.0-1+deb13u1DEBIAN-CVE-2025-61920
Debian14python-authlib1.6.5-1DEBIAN-CVE-2025-61920
Ubuntu25.10, Pro:26.04:LTSpython-authlibno fix listedUBUNTU-CVE-2025-61920
UbuntuPro:22.04:LTSpython-authlib0.15.5-1ubuntu0.1~esm1UBUNTU-CVE-2025-61920 USN-8065-1
UbuntuPro:24.04:LTSpython-authlib1.3.0-1ubuntu0.1~esm1UBUNTU-CVE-2025-61920 USN-8065-1
SUSELinux Enterprise Module for Python 3 15 SP6, Linux Enterprise Module for Python 3 15 SP7python-Authlib1.3.1-150600.3.6.1SUSE-SU-2025:3754-1
openSUSELeap 15.6python-Authlib1.3.1-150600.3.6.1SUSE-SU-2025:3754-1
openSUSETumbleweedpython-Authlib1.6.5-1.1openSUSE-SU-2025:15629-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Users unable to upgrade may manually enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.

ProductPackageStateAdvisory
Red Hat Quay 3.10quay/quay-rhel8:3.10.17-1764168428Fixed 2025-11-26RHSA-2025:22182
Red Hat Quay 3.10quay/quay-rhel8:3.10.17-1765384144Fixed 2025-12-10RHSA-2025:23064
Red Hat Quay 3.12quay/quay-rhel8:3.12-1765361593Fixed 2025-12-10RHSA-2025:23028
Red Hat Quay 3.12quay/quay-rhel8:3.12-1765381502Fixed 2025-12-10RHSA-2025:23059
Red Hat Quay 3.12quay/quay-rhel8:3.12-1765382602Fixed 2025-12-10RHSA-2025:23060
Red Hat Quay 3.13quay/quay-rhel8:v3.13.10-1765782391Fixed 2025-12-15RHSA-2025:23176
Red Hat Quay 3.14quay/quay-rhel8:1773097621Fixed 2026-03-10RHSA-2026:4215
Red Hat Quay 3.9quay/quay-rhel8:3.9-1764254756Fixed 2025-11-27RHSA-2025:22287
Red Hat Quay 3.9quay/quay-rhel8:3.9-1765382758Fixed 2025-12-10RHSA-2025:23061

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-61920.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20), CWE-20 (51).

References

Check your stackJSON