{"id":"GHSA-7f9x-gw85-8grf","revision":null,"records":[{"revision":"2a08835641624eda81c9a7d869335908","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-49290","aliases":[],"title":"Malicious parameters can cause a denial of service in lestrrat-go/jwx","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.","state":0,"publishedAt":"2023-12-04T23:42:53.061+00:00","modifiedAt":"2025-05-29T13:39:54.272+00:00","affected":[{"ecosystem":"Vendor product","name":"jwx","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"lestrrat-go\",\n                    \"product\": \"jwx\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.2.27\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 2.0.0, < 2.0.18\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf","https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-49290","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-49290","identifiers":["CVE-2023-49290"]},"retained":false,"historicalAffected":[]},{"revision":"397dccee42bf4c47800b5eac9b9e5450","observedAt":"2026-11-15T00:36:53.614+00:00","statement":{"source":"euvd","id":"EUVD-2023-3143","aliases":["CVE-2023-49290","GHSA-7f9x-gw85-8grf"],"title":"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 algorithm…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":null}],"references":["https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf","https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-3143","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Dec 4, 2023, 11:42:53 PM","dateUpdated":"May 29, 2025, 1:39:54 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2023-3143","identifiers":["EUVD-2023-3143","CVE-2023-49290","GHSA-7f9x-gw85-8grf"]},"retained":false,"historicalAffected":[]},{"revision":"c65bf3c45b314523a9e3cbcfb5cc1b82","observedAt":"2026-10-24T23:17:11.096+00:00","statement":{"source":"nvd","id":"CVE-2023-49290","aliases":[],"title":"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 algorithm…","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.","state":0,"publishedAt":"2023-12-05T00:15:09.19+00:00","modifiedAt":"2026-06-17T06:35:46.787+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c","https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-49290","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-400"],"productCriteria":["cpe:2.3:a:lestrrat-go:jwx:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2023-12-05T00:15:09.190","lastModified":"2026-06-17T06:35:46.787"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2023-49290","identifiers":["CVE-2023-49290"]},"retained":false,"historicalAffected":[]},{"revision":"11b8a11960e5410cbe3be331fcdf34fb","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-7f9x-gw85-8grf","aliases":["CVE-2023-49290","GO-2023-2379"],"title":"lestrrat-go/jwx's malicious parameters in JWE can cause a DOS","description":"### Summary\ntoo high p2c parameter in JWE's alg PBES2-* could lead to a DOS attack\n\n### Details\nThe 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.\nTherefore, 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 DOS attack\n\n### PoC\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/lestrrat-go/jwx/v2/jwa\"\n\t\"github.com/lestrrat-go/jwx/v2/jwe\"\n\t\"github.com/lestrrat-go/jwx/v2/jwk\"\n)\n\nfunc main() {\n\ttoken := []byte(\"eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJlbmMiOiJBMjU2R0NNIiwicDJjIjoyMDAwMDAwMDAwLCJwMnMiOiJNNzczSnlmV2xlX2FsSXNrc0NOTU9BIn0=.S8B1kXdIR7BM6i_TaGsgqEOxU-1Sgdakp4mHq7UVhn-_REzOiGz2gg.gU_LfzhBXtQdwYjh.9QUIS-RWkLc.m9TudmzUoCzDhHsGGfzmCA\")\n\tkey, err := jwk.FromRaw([]byte(`abcdefg`))\n\tpayload, err := jwe.Decrypt(token, jwe.WithKey(jwa.PBES2_HS256_A128KW, key))\n\tif err == nil {\n\t\tfmt.Println(string(payload))\n\t}\n}\n\n```\n\n### Impact\nIt's a kind of Dos attack, the user's environment could potentially utilize an excessive amount of CPU resources.\n","state":0,"publishedAt":"2023-12-05T23:29:26+00:00","modifiedAt":"2026-09-10T03:49:59.4446036+00:00","affected":[{"ecosystem":"Go","name":"github.com/lestrrat-go/jwx","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.2.27"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/lestrrat-go/jwx/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.18"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf","https://nvd.nist.gov/vuln/detail/CVE-2023-49290","https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c","https://github.com/lestrrat-go/jwx"],"sourceUrl":"https://github.com/advisories/GHSA-7f9x-gw85-8grf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7f9x-gw85-8grf","identifiers":["GHSA-7f9x-gw85-8grf","CVE-2023-49290","GO-2023-2379"]},"retained":false,"historicalAffected":[]},{"revision":"50483540eba946b1bc03298be184a375","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2023-2379","aliases":["CVE-2023-49290","GHSA-7f9x-gw85-8grf"],"title":"Denial of service due to malicious parameters in github.com/lestrrat-go/jwx","description":"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.","state":0,"publishedAt":"2023-12-11T15:08:59+00:00","modifiedAt":"2026-02-04T02:20:17.017357+00:00","affected":[{"ecosystem":"Go","name":"github.com/lestrrat-go/jwx","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.2.27"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/lestrrat-go/jwx/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.18"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/lestrrat-go/jwx/security/advisories/GHSA-7f9x-gw85-8grf","https://github.com/lestrrat-go/jwx/commit/64f2a229b8e18605f47361d292b526bdc4aee01c"],"sourceUrl":"https://osv.dev/vulnerability/GO-2023-2379","license":"OSV · upstream source license applies","key":"osv:GO-2023-2379","identifiers":["GO-2023-2379","CVE-2023-49290","GHSA-7f9x-gw85-8grf"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T17:50:33.0489747+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T17:50:33.0489747+00:00","lastSuccessAt":"2026-11-16T17:50:33.2117758+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:33.2117767+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-5b5b992da2316e50415088e271a61a5a7b3b1ba305843116b4783c1ec86d58fa","complete":true,"records":426108,"lastAttemptAt":"2026-11-16T17:44:52.1128297+00:00","lastSuccessAt":"2026-11-16T17:44:52.0341248+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:44:52.1128297+00:00","snapshotPublishedAt":"2026-11-16T17:27:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-984340aa647d443f854924f0852ab319","complete":true,"records":13830,"lastAttemptAt":"2026-11-16T17:51:18.1027612+00:00","lastSuccessAt":"2026-11-16T17:51:18.097+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:51:18.097+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13883,"expectedIdentifiers":13883,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T17:50:33.0489747+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T17:50:33.0489747+00:00","lastSuccessAt":"2026-11-16T17:50:33.2125903+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:33.2125908+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-62158c3b10d140c88161da87af98dd6f","complete":false,"records":13842,"lastAttemptAt":"2026-11-16T17:50:59.5110915+00:00","lastSuccessAt":"2026-11-16T17:50:59.505+00:00","error":"209 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T17:50:59.505+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13474,"expectedIdentifiers":13883,"failedIdentifiers":209},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T17:50:32.8950504+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:32.8950504+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T17:44:52.338834+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:44:52.338834+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T17:50:33.0056326+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:33.0056326+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-3da619381c9f1c87f7b45518cd7541780ba25dac78a9f5cb3562eee84c7eac8f","complete":true,"records":232512,"lastAttemptAt":"2026-11-16T17:50:32.6652455+00:00","lastSuccessAt":"2026-11-16T17:50:31.6385672+00:00","error":null,"lastVerifiedAt":"2026-11-16T17:50:32.6652455+00:00","snapshotPublishedAt":"2026-11-16T17:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}