Vulnerability
CVE-2023-49290
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.
20 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-3q42-87r2-7889
- CGA-453g-2p88-2wc5
- CGA-6g6r-p39w-4f24
- CGA-6hrw-4hr9-xx74
- CGA-733w-h9r2-fvvg
- CGA-92r8-7j75-2pmw
- CGA-f5ww-r2xq-xqhm
- CGA-g2j9-93rr-326q
- CGA-hp37-vpwv-3c95
- CGA-jf5w-m3j2-mh8g
- CGA-mhw3-83wp-5462
- CGA-mmhc-6cc3-7cp7
- CGA-p256-665h-2grv
- CGA-p93g-qq35-r376
- CGA-q68c-2vmc-9h89
- CGA-r37g-5w72-6r26
- CGA-rxr5-47gr-qcjf
- CGA-w52x-g3fv-8r8f
-
GHSA-7f9x-gw85-8grf
lestrrat-go/jwx's malicious parameters in JWE can cause a DOS
-
GO-2023-2379
Denial of service due to malicious parameters in github.com/lestrrat-go/jwx