{"id":"CVE-2024-28122","published":"2024-03-09T00:45:50Z","modified":"2025-04-16T15:49:42Z","title":"JWX vulnerable to a denial of service attack using compressed JWE message","vendor":"lestrrat-go","product":"jwx","tier":"tail","description":{"text":" JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00677,"percentile":0.47422,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/lestrrat-go/jwx/security/advisories/GHSA-hj3v-m684-v259","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lestrrat-go/jwx/releases/tag/v1.2.29","tags":["x_refsource_MISC"]},{"url":"https://github.com/lestrrat-go/jwx/releases/tag/v2.0.21","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":9.48},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"lestrrat-go","affectedVersions":[{"vendor":"lestrrat-go","product":"jwx","versions":[">= 2.0.0, < 2.0.21",">= 1.2.0, < 1.2.29"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-11T16:48:06.985221Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/lestrrat-go/jwx/v2","vulnerableRanges":["<2.0.21"],"patched":["2.0.21"],"from":["GHSA-hj3v-m684-v259","GO-2024-2632"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/lestrrat-go/jwx","vulnerableRanges":["<1.2.29"],"patched":["1.2.29"],"from":["GHSA-hj3v-m684-v259","GO-2024-2632"],"provenance":"source"}],"summary":{"text":"The JWX Go module (lestrrat-go/jwx), which implements JOSE technologies including JWE, contains a flaw in how it handles compressed JWE tokens. An attacker who holds a trusted public key can trigger a denial-of-service condition by sending a crafted JWE token with an extremely high compression ratio, provided they can reach the service over the network and possess the required key, with no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:21Z"},"euvd":{"id":"EUVD-2024-0939","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-lestrrat-go-jwx-cve-2023-49290","parents":[{"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-2024-21664","to":"CVE-2024-28122","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx","fromFixed":"1.2.28","toFixed":"1.2.29","daysApart":60},{"kind":"version-step","provenance":"source","package":"Go:github.com/lestrrat-go/jwx/v2","fromFixed":"2.0.19","toFixed":"2.0.21","daysApart":60}]}},{"cve":"CVE-2024-28122","published":"2024-03-09","fixed":"1.2.29","kev":false}],"package":"Go:github.com/lestrrat-go/jwx"}}