# CVE-2023-49290: Malicious parameters can cause a denial of service in lestrrat-go/jwx

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-04T23:42:53.061Z
- Modified: 2026-09-10T03:49:59.444Z
- Also known as: GHSA-7f9x-gw85-8grf, GO-2023-2379
- Related: CGA-h464-jmqf-3pxp
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lestrrat-go jwx: < 1.2.27; >= 2.0.0, < 2.0.18; before 1.2.27; from 2.0.0 before 2.0.18
- github.com/lestrrat-go/jwx (Go): before 1.2.27
- github.com/lestrrat-go/jwx/v2 (Go): before 2.0.18

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf> (exploit, advisory, vendor-advisory, web)
- <https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49290> (advisory)
- <https://github.com/lestrrat-go/jwx> (package)

## Sources

- CVE List: [CVE-2023-49290](https://www.cve.org/CVERecord?id=CVE-2023-49290), CVE Terms of Use, modified 2025-05-29
- GitHub Advisory Database: [GHSA-7f9x-gw85-8grf](https://github.com/advisories/GHSA-7f9x-gw85-8grf), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2379](https://pkg.go.dev/vuln/GO-2023-2379), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-49290](https://nvd.nist.gov/vuln/detail/CVE-2023-49290), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-49290 · Whole record: https://cve.day/CVE-2023-49290.json · Rebuilt by cve.day 2026-11-25T22:58:30.946Z
