{"id":"GO-2023-2379","summary":"Denial of service due to malicious parameters in github.com/lestrrat-go/jwx","details":"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 purpose is to intentionally slow down the key derivation function, making password brute-force and dictionary attacks more resource-intensive. However, if an attacker sets the p2c parameter in JWE to a very large number, it can cause excessive computational consumption.","aliases":["CVE-2023-49290","GHSA-7f9x-gw85-8grf"],"modified":"2026-03-17T04:50:26.903960Z","published":"2023-12-11T15:08:59Z","related":["CGA-h464-jmqf-3pxp"],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2023-2379"},"references":[{"type":"ADVISORY","url":"https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf"},{"type":"FIX","url":"https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c"}],"affected":[{"package":{"name":"github.com/lestrrat-go/jwx","ecosystem":"Go","purl":"pkg:golang/github.com/lestrrat-go/jwx"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.27"}]}],"ecosystem_specific":{"imports":[{"symbols":["Decrypt"],"path":"github.com/lestrrat-go/jwx/jwe"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2023-2379.json"}},{"package":{"name":"github.com/lestrrat-go/jwx/v2","ecosystem":"Go","purl":"pkg:golang/github.com/lestrrat-go/jwx/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.18"}]}],"ecosystem_specific":{"imports":[{"symbols":["Decrypt","decryptCtx.decryptContent"],"path":"github.com/lestrrat-go/jwx/v2/jwe"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2023-2379.json"}}],"schema_version":"1.7.5","credits":[{"name":"@P3ngu1nW"}]}