CVE-2023-49290
lestrrat-go/jwx's malicious parameters in JWE can cause a DOS
Record from NVD · Published December 4, 2023
github.com/lestrrat-go/jwx/v2/jwe is fixed in 2.0.18 (Go Modules)
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.
EPSS 0.73% · 55.2th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/lestrrat-go/jwx/v2/jwe | Go Modules | 2.0.18 |
| github.com/lestrrat-go/jwx/jwe | Go Modules | v1.2.27, 1.2.27 |
| github.com/lestrrat-go/jwx | Go Modules | 1.2.27 |
| github.com/lestrrat-go/jwx/v2 | Go Modules | 2.0.18 |
| istio-pilot-discovery-1.20 | Chainguard | 1.20.2-r2 |
| external-secrets-0.7 | Chainguard | 0.7.1-r8 |
| istio-pilot-discovery-1.18 | Chainguard | 1.18.7-r1 |
| istio-pilot-discovery-1.18 | Wolfi | 1.18.7-r1 |
| istio-pilot-agent-fips-1.19 | Chainguard | 1.19.6-r1 |
| tekton-chains | Chainguard | 0.19.0-r6 |
| falco | Wolfi | 0.37.1-r0 |
| istio-pilot-agent-1.19 | Wolfi | 1.19.6-r1 |
17 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lestrrat-go | jwx | 0, 2.0.0 |
Timeline
- Dec 4, 2023 CVE Published
- Dec 5, 2023 EPSS Score (30 in total, the first dated here)
- Jan 27, 2026 Security Advisory
- Jul 31, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-49290
vulnetix vdb fixes CVE-2023-49290
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-49290/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart