CVE-2023-49290 json
Malicious parameters can cause a denial of service in lestrrat-go/jwx
published 2023-12-04 2 y ago modified 2026-09-10 1 mo ago also GHSA-7f9x-gw85-8grf , GO-2023-2379 , EUVD-2023-3143
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/lestrrat-go/jwx 1.2.27
- go github.com/lestrrat-go/jwx/v2 2.0.18
- lestrrat-go jwx 1.2.27, 2.0.18
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-49290 updated cvss 5.3
jwx: Malicious parameters in JWE can cause denial of service
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/pilot-rhel8, openshift-service-mesh/proxyv2-rhel8, openshift-service-mesh/istio-cni-rhel8affected: no fix planned “Will not fix”
-
Red Hat Openshift Data Foundation 4 odf4/ocs-rhel9-operator, odf4/odf-rhel8-operator, odf4/ocs-must-gather-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/lestrrat-go/jwx | <1.2.27 |
1.2.27 |
| go | github.com/lestrrat-go/jwx/v2 | <2.0.18 |
2.0.18 |
Affected products
- lestrrat-go jwx
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c
web, patch
-
github.com
/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf
web, exploit, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-49290
advisory
-
github.com
/lestrrat-go/jwx
package
Sources
- CVE List CVE-2023-49290
- GitHub Advisory GHSA-7f9x-gw85-8grf
- NVD CVE-2023-49290
- OSV GO-2023-2379
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.