CVE-2023-49290: lestrrat-go jwx · Uncontrolled Resource Consumption
Affects lestrrat-go jwxSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 1.2.27 when convenient.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.2.27
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade github.com/lestrrat-go/jwx to 1.2.27.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gogithub.com/lestrrat-go/jwxpkg:golang/github.com/lestrrat-go/jwxOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The primary and only effective mitigation is to upgrade lestrrat-go/jwx to version 1.2.27 or later, or 2.0.18 or later, depending on the version line in use. Organizations should audit their codebases and dependencies to identify usage of lestrrat-go/jwx and confirm the version deployed. Additionally, implement input validation to restrict or sanitize the 'p2c' parameter in incoming JWE tokens if feasible, rejecting tokens with suspiciously high iteration counts. Monitoring CPU usage and implementing rate limiting or throttling on endpoints that process JWE tokens can help detect and mitigate potential DoS attempts. Employing Web Application Firewalls (WAFs) with custom rules to detect anomalous JWE payloads may provide additional protection. Finally, maintain an inventory of cryptographic libraries and ensure timely patching of dependencies to reduce exposure to similar vulnerabilities.
Description
lestrrat-go/jwx is a Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. A p2c parameter set too high in JWE's algorithm PBES2-* could lead to a denial of service. The JWE key management algorithms based on PBKDF2 require a JOSE Header Parameter called p2c (PBES2 Count). This parameter dictates the number of PBKDF2 iterations needed to derive a CEK wrapping key. Its primary purpose is to intentionally slow down the key derivation function, making password brute-force and dictionary attacks more resource- intensive. Therefore, if an attacker sets the p2c parameter in JWE to a very large number, it can cause a lot of computational consumption, resulting in a denial of service. This vulnerability has been addressed in commit `64f2a229b` which has been included in release version 1.2.27 and 2.0.18. Users are advised to upgrade. There are no known workarounds for this vulnerability.