Vulnerabilities / CVE-2023-46233

critical

CVE-2023-46233

crypto-js: PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than current standard

Published Modified CWE 328, 916, 327
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GHSA9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

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

SourcePackageFixed in
npm::GitHub Security Advisory npmcrypto-js4.2.0
chainguardarangodb-3.113.11.14.4-r13
debian 10cryptojs3.1.2+dfsg-2+deb10u1
debian 11cryptojsno fix listed
debian 12cryptojsno fix listed
echocryptojsno fix listed
minimostrigger-dev4.6.0-r0
rapidfort debian 12cryptojsno fix listed
rapidfort debian 13cryptojsno fix listed
rapidfort rocky 9dotnet6.0, dotnet7.00:6.0.126-1.el9_3 and 1 more
Red Hatrh-dotnet60-aspnetcore-runtime-6.0, rh-dotnet60-aspnetcore-targeting-pack-6.0, rh-dotnet60-dotnet and 9 moreno fix listed
ubuntu 16.04-ESMcryptojs3.1.2+dfsg-2ubuntu0.16.04.1~esm1
Show all 29 entries from 17 sources
SourcePackageFixed in
npm::GitHub Security Advisory npmcrypto-js4.2.0
chainguardarangodb-3.113.11.14.4-r13
debian 10cryptojs3.1.2+dfsg-2+deb10u1
debian 11cryptojsno fix listed
debian 12cryptojsno fix listed
echocryptojsno fix listed
minimostrigger-dev4.6.0-r0
rapidfort debian 12cryptojsno fix listed
rapidfort debian 13cryptojsno fix listed
rapidfort rocky 9dotnet6.00:6.0.126-1.el9_3
rapidfort rocky 9dotnet7.00:7.0.116-1.el9_3
Red Hatrh-dotnet60-aspnetcore-runtime-6.0no fix listed
Red Hatrh-dotnet60-aspnetcore-targeting-pack-6.0no fix listed
Red Hatrh-dotnet60-dotnetno fix listed
Red Hatrh-dotnet60-dotnet-apphost-pack-6.0no fix listed
Red Hatrh-dotnet60-dotnet-hostno fix listed
Red Hatrh-dotnet60-dotnet-hostfxr-6.0no fix listed
Red Hatrh-dotnet60-dotnet-runtime-6.0no fix listed
Red Hatrh-dotnet60-dotnet-sdk-6.0no fix listed
Red Hatrh-dotnet60-dotnet-sdk-6.0-source-built-artifactsno fix listed
Red Hatrh-dotnet60-dotnet-targeting-pack-6.0no fix listed
Red Hatrh-dotnet60-dotnet-templates-6.0no fix listed
Red Hatrh-dotnet60-netstandard-targeting-pack-2.1no fix listed
ubuntu 16.04-ESMcryptojs3.1.2+dfsg-2ubuntu0.16.04.1~esm1
ubuntu 18.04-ESMcryptojs3.1.2+dfsg-2ubuntu0.18.04.1~esm1
ubuntu 20.04cryptojs3.1.2+dfsg-2ubuntu0.20.04.1
ubuntu 20.04-ESMcryptojs3.1.2+dfsg-2ubuntu0.20.04.1
ubuntu 22.04cryptojsno fix listed
ubuntu 24.04cryptojsno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.