CVE-2023-46233crypto-js PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than…
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.
What to do
Fixed builds are available from Red Hat, Ubuntu, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | cryptojs | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | cryptojs | Fix pending | 3.1.2+dfsg-3ubuntu0.22.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-46233 |
| Ubuntu 20.04 | cryptojs | Fixed | 3.1.2+dfsg-2ubuntu0.20.04.1 | UBUNTU-CVE-2023-46233 |
| Ubuntu 18.04 | cryptojs | Fix pending | 3.1.2+dfsg-2ubuntu0.18.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-46233 |
| Ubuntu 16.04 | cryptojs | Fix pending | 3.1.2+dfsg-2ubuntu0.16.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-46233 |
| Debian 12 | cryptojs | Fix pending | DEBIAN-CVE-2023-46233 | |
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-6.0 | Fixed | 0:6.0.26-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-7.0 | Fixed | 0:7.0.16-1.el9_3 | RHSA-2024:0151 |
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-6.0 | Fixed | 0:6.0.26-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-7.0 | Fixed | 0:7.0.15-1.el9_3 | RHSA-2024:0805 |
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-6.0 | Fixed | 0:6.0.26-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-7.0 | Fixed | 0:7.0.16-1.el9_3 | RHSA-2024:0151 |
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-6.0 | Fixed | 0:6.0.26-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-7.0 | Fixed | 0:7.0.16-1.el9_3 | RHSA-2024:0151 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-6.0 | Fixed | 0:6.0.26-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-7.0 | Fixed | 0:7.0.15-1.el9_3 | RHSA-2024:0805 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0 | Fixed | 0:6.0.126-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0-source-built-artifacts | Fixed | 0:6.0.126-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0 | Fixed | 0:7.0.116-1.el9_3 | RHSA-2024:0151 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0-source-built-artifacts | Fixed | 0:7.0.115-1.el9_3 | RHSA-2024:0805 |
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-6.0 | Fixed | 0:6.0.26-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-7.0 | Fixed | 0:7.0.15-1.el9_3 | RHSA-2024:0805 |
| Red Hat Enterprise Linux 9 | dotnet-templates-6.0 | Fixed | 0:6.0.126-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet-templates-7.0 | Fixed | 0:7.0.116-1.el9_3 | RHSA-2024:0151 |
| Red Hat Enterprise Linux 9 | dotnet6.0 | Fixed | 0:6.0.126-1.el9_3 | RHSA-2024:0156 |
| Red Hat Enterprise Linux 9 | dotnet7.0 | Fixed | 0:7.0.115-1.el9_3 | RHSA-2024:0805 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-6.0 | Fixed | 0:6.0.26-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-7.0 | Fixed | 0:7.0.16-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-6.0 | Fixed | 0:6.0.26-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-7.0 | Fixed | 0:7.0.16-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-6.0 | Fixed | 0:6.0.26-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-7.0 | Fixed | 0:7.0.16-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-6.0 | Fixed | 0:6.0.26-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-7.0 | Fixed | 0:7.0.16-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-6.0 | Fixed | 0:6.0.26-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-7.0 | Fixed | 0:7.0.16-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-6.0 | Fixed | 0:6.0.126-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-6.0-source-built-artifacts | Fixed | 0:6.0.126-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-7.0 | Fixed | 0:7.0.116-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-7.0-source-built-artifacts | Fixed | 0:7.0.115-1.el8_9 | RHSA-2024:0806 |
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-6.0 | Fixed | 0:6.0.26-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-7.0 | Fixed | 0:7.0.16-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet-templates-6.0 | Fixed | 0:6.0.126-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet-templates-7.0 | Fixed | 0:7.0.116-1.el8_9 | RHSA-2024:0157 |
| Red Hat Enterprise Linux 8 | dotnet6.0 | Fixed | 0:6.0.126-1.el8_9 | RHSA-2024:0158 |
| Red Hat Enterprise Linux 8 | dotnet7.0 | Fixed | 0:7.0.115-1.el8_9 | RHSA-2024:0806 |
| npm library | crypto-js | Fixed | 4.2.0 | GHSA-xwcq-pm8m-c4vf |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- brix crypto-js: affected: < 4.2.0
References
- https://github.com/brix/crypto-js/security/advisories/GHSA-xwcq-pm8m-c4vf
- https://github.com/brix/crypto-js/commit/421dd538b2d34e7c24a5b72cc64dc2b9167db40a
- https://lists.debian.org/debian-lts-announce/2023/11/msg00025.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.