{"id":"CVE-2023-49290","published":"2023-12-04T23:42:53Z","modified":"2025-05-29T13:39:54Z","title":"Malicious parameters can cause a denial of service in lestrrat-go/jwx","vendor":"lestrrat-go","product":"jwx","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00729,"percentile":0.55159,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c","tags":["x_refsource_MISC"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":11.03},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"lestrrat-go","affectedVersions":[{"vendor":"lestrrat-go","product":"jwx","versions":["< 1.2.27",">= 2.0.0, < 2.0.18"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-29T13:39:14.855916Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/lestrrat-go/jwx","vulnerableRanges":["<1.2.27"],"patched":["1.2.27"],"from":["GHSA-7f9x-gw85-8grf","GO-2023-2379"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/lestrrat-go/jwx/v2","vulnerableRanges":["<2.0.18"],"patched":["2.0.18"],"from":["GHSA-7f9x-gw85-8grf","GO-2023-2379"],"provenance":"source"}],"summary":{"text":"The lestrrat-go/jwx Go module, which implements the JOSE standards (JWA, JWE, JWK, JWS, JWT), mishandles the p2c (PBES2 Count) header parameter in JWE's PBES2-* key management algorithms, where the parameter sets the number of PBKDF2 iterations used to derive a key-wrapping key. An attacker with network access and no authentication or user interaction can supply a very large p2c value in a crafted JWE, forcing excessive key-derivation computation and causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:58Z"},"euvd":{"id":"EUVD-2023-3143","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-lestrrat-go-jwx-cve-2023-49290","children":[{"from":"CVE-2023-49290","to":"CVE-2024-28122","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jwe/jwe.go","jwe/options_gen.go"],"commits":["https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c","https://github.com/lestrrat-go/jwx/commit/d01027d74c7376d66037a10f4f64af9af26a7e34","https://github.com/lestrrat-go/jwx/commit/d43f2ceb7f0c13714dfe8854d6439766e86faa76"],"basis":"shared function","functions":["String","WithKeyUsed","decryptContent"]},{"kind":"similar","provenance":"machine","score":0.5,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2023-49290","published":"2023-12-04","fixed":"1.2.27","kev":false},{"cve":"CVE-2024-21664","published":"2024-01-09","fixed":"1.2.28","kev":false,"link":{"from":"CVE-2023-49290","to":"CVE-2024-21664","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx","fromFixed":"1.2.27","toFixed":"1.2.28","daysApart":36},{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx/v2","fromFixed":"2.0.18","toFixed":"2.0.19","daysApart":36}]}},{"cve":"CVE-2024-28122","published":"2024-03-09","fixed":"1.2.29","kev":false}],"package":"Go:github.com/lestrrat-go/jwx"}}