Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27932: CWE-770: Allocation of Resources Without Limits or Throttling in authlib joserfc

0
High
VulnerabilityCVE-2026-27932cvecve-2026-27932cwe-770
Published: Tue Mar 03 2026 (03/03/2026, 22:48:21 UTC)
Source: CVE Database V5
Vendor/Project: authlib
Product: joserfc

Description

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. In 1.6.2 and earlier, a resource exhaustion vulnerability in joserfc allows an unauthenticated attacker to cause a Denial of Service (DoS) via CPU exhaustion. When the library decrypts a JSON Web Encryption (JWE) token using Password-Based Encryption (PBES2) algorithms, it reads the p2c (PBES2 Count) parameter directly from the token's protected header. This parameter defines the number of iterations for the PBKDF2 key derivation function. Because joserfc does not validate or bound this value, an attacker can specify an extremely large iteration count (e.g., 2^31 - 1), forcing the server to expend massive CPU resources processing a single token. This vulnerability exists at the JWA layer and impacts all high-level JWE and JWT decryption interfaces if PBES2 algorithms are allowed by the application's policy.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/11/2026, 20:10:32 UTC

Technical Analysis

The vulnerability CVE-2026-27932 affects the authlib project's joserfc Python library, which provides implementations for JOSE standards including JSON Web Encryption (JWE). Specifically, the issue lies in the handling of the p2c (PBES2 Count) parameter within the protected header of JWE tokens when using PBES2 algorithms for password-based encryption. The p2c parameter defines the iteration count for the PBKDF2 key derivation function, which is computationally expensive. In versions 1.6.2 and earlier, joserfc does not impose any upper limit or validation on this iteration count. Consequently, an attacker can specify an extremely large value (e.g., 2^31 - 1), forcing the library to perform an excessive number of PBKDF2 iterations during token decryption. This leads to significant CPU resource consumption, effectively causing a Denial of Service (DoS) by exhausting server processing capacity. The vulnerability exists at the JSON Web Algorithms (JWA) layer and affects all high-level JWE and JWT decryption interfaces that permit PBES2 algorithms according to the application's policy. Exploitation requires no authentication or user interaction, making it accessible to remote attackers. The vulnerability does not impact confidentiality or integrity but severely affects availability. No patches or fixes are linked yet, and no known exploits have been reported in the wild as of the published date. The CVSS v3.1 score is 7.5, reflecting high severity due to network attack vector, low attack complexity, no privileges required, and no user interaction needed.

Potential Impact

This vulnerability can lead to Denial of Service (DoS) conditions on servers or services that use the vulnerable joserfc library for JWE token decryption with PBES2 algorithms. By sending a single maliciously crafted token with an extremely high iteration count, an attacker can cause the server to consume excessive CPU resources, potentially degrading performance or causing service outages. This can disrupt authentication and authorization workflows relying on JWT/JWE tokens, impacting availability of critical applications and services. Organizations using joserfc in their security infrastructure, especially those processing untrusted tokens from external sources, are at risk. The attack requires no authentication and can be launched remotely, increasing the threat surface. While confidentiality and integrity are not directly compromised, the availability impact can affect business continuity, user access, and downstream systems dependent on these tokens. The lack of current known exploits provides a window for mitigation, but the vulnerability's ease of exploitation and potential for widespread disruption warrant urgent attention.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately upgrade joserfc to a version that enforces limits on the p2c iteration count parameter once such a patch is released by the vendor. Until a patch is available, implement strict input validation and filtering at the application or API gateway level to reject JWE tokens with suspiciously high iteration counts in the PBES2 header. Limit or disable the use of PBES2 algorithms for JWE decryption if feasible, especially in scenarios where tokens originate from untrusted sources. Employ rate limiting and anomaly detection to identify and block repeated attempts to exploit this resource exhaustion. Monitor CPU usage patterns on services handling JWE tokens to detect unusual spikes indicative of exploitation attempts. Consider isolating token processing in dedicated environments with resource quotas to contain potential DoS impact. Engage with the vendor or open-source community for updates and patches, and review cryptographic policy configurations to minimize exposure to this class of vulnerabilities.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-25T03:11:36.688Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69a768b5d1a09e29cb82cc7f

Added to database: 3/3/2026, 11:03:17 PM

Last enriched: 3/11/2026, 8:10:32 PM

Last updated: 4/18/2026, 2:47:06 PM

Views: 230

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses