CVE-2023-46233
crypto-js: PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than current standard
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Ubuntu (medium).
Description
crypto-js is a JavaScript library of crypto standards. Prior to version 4.2.0, crypto-js PBKDF2 is 1,000 times weaker than originally specified in 1993, and at least 1,300,000 times weaker than current industry standard. This is because it both defaults to SHA1, a cryptographic hash algorithm considered insecure since at least 2005, and defaults to one single iteration, a 'strength' or 'difficulty' value specified at 1,000 when specified in 1993. PBKDF2 relies on iteration count as a countermeasure to preimage and collision attacks. If used to protect passwords, the impact is high. If used to generate signatures, the impact is high. Version 4.2.0 contains a patch for this issue. As a workaround, configure crypto-js to use SHA256 with at least 250,000 iterations.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | crypto-js | 4.2.0 |
| chainguard | arangodb-3.11 | 3.11.14.4-r13 |
| debian 10 | cryptojs | 3.1.2+dfsg-2+deb10u1 |
| debian 11 | cryptojs | no fix listed |
| debian 12 | cryptojs | no fix listed |
| echo | cryptojs | no fix listed |
| minimos | trigger-dev | 4.6.0-r0 |
| rapidfort debian 12 | cryptojs | no fix listed |
| rapidfort debian 13 | cryptojs | no fix listed |
| rapidfort rocky 9 | dotnet6.0, dotnet7.0 | 0:6.0.126-1.el9_3 and 1 more |
| Red Hat | rh-dotnet60-aspnetcore-runtime-6.0, rh-dotnet60-aspnetcore-targeting-pack-6.0, rh-dotnet60-dotnet and 9 more | no fix listed |
| ubuntu 16.04-ESM | cryptojs | 3.1.2+dfsg-2ubuntu0.16.04.1~esm1 |
Show all 29 entries from 17 sources
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | crypto-js | 4.2.0 |
| chainguard | arangodb-3.11 | 3.11.14.4-r13 |
| debian 10 | cryptojs | 3.1.2+dfsg-2+deb10u1 |
| debian 11 | cryptojs | no fix listed |
| debian 12 | cryptojs | no fix listed |
| echo | cryptojs | no fix listed |
| minimos | trigger-dev | 4.6.0-r0 |
| rapidfort debian 12 | cryptojs | no fix listed |
| rapidfort debian 13 | cryptojs | no fix listed |
| rapidfort rocky 9 | dotnet6.0 | 0:6.0.126-1.el9_3 |
| rapidfort rocky 9 | dotnet7.0 | 0:7.0.116-1.el9_3 |
| Red Hat | rh-dotnet60-aspnetcore-runtime-6.0 | no fix listed |
| Red Hat | rh-dotnet60-aspnetcore-targeting-pack-6.0 | no fix listed |
| Red Hat | rh-dotnet60-dotnet | no fix listed |
| Red Hat | rh-dotnet60-dotnet-apphost-pack-6.0 | no fix listed |
| Red Hat | rh-dotnet60-dotnet-host | no fix listed |
| Red Hat | rh-dotnet60-dotnet-hostfxr-6.0 | no fix listed |
| Red Hat | rh-dotnet60-dotnet-runtime-6.0 | no fix listed |
| Red Hat | rh-dotnet60-dotnet-sdk-6.0 | no fix listed |
| Red Hat | rh-dotnet60-dotnet-sdk-6.0-source-built-artifacts | no fix listed |
| Red Hat | rh-dotnet60-dotnet-targeting-pack-6.0 | no fix listed |
| Red Hat | rh-dotnet60-dotnet-templates-6.0 | no fix listed |
| Red Hat | rh-dotnet60-netstandard-targeting-pack-2.1 | no fix listed |
| ubuntu 16.04-ESM | cryptojs | 3.1.2+dfsg-2ubuntu0.16.04.1~esm1 |
| ubuntu 18.04-ESM | cryptojs | 3.1.2+dfsg-2ubuntu0.18.04.1~esm1 |
| ubuntu 20.04 | cryptojs | 3.1.2+dfsg-2ubuntu0.20.04.1 |
| ubuntu 20.04-ESM | cryptojs | 3.1.2+dfsg-2ubuntu0.20.04.1 |
| ubuntu 22.04 | cryptojs | no fix listed |
| ubuntu 24.04 | cryptojs | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2023-46233
- https://github.com/brix/crypto-js
- https://github.com/brix/crypto-js/commit/421dd538b2d34e7c24a5b72cc64dc2b9167db40a
- https://github.com/brix/crypto-js/security/advisories/GHSA-xwcq-pm8m-c4vf
- https://lists.debian.org/debian-lts-announce/2023/11/msg00025.html
- https://nvd.nist.gov/vuln/detail/CVE-2023-46233
- https://ubuntu.com/security/notices/USN-6753-1
- https://www.cve.org/CVERecord?id=CVE-2023-46233