CVE-2025-6545 pbkdf2 returns predictable uninitialized/zero-filled memory for non-normalized or unimplemented algos

Critical 9.1 Published Updated

The pbkdf2 library returns predictable zero-filled memory for unsupported algorithms, enabling signature spoofing in Node.js applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-6545?

CVE-2025-6545 is a critical vulnerability in pbkdf2, published on 23 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Input Validation vulnerability in pbkdf2 allows Signature Spoofing by Improper Validation. This vulnerability is associated with program files lib/to-buffer.Js.

This issue affects pbkdf2: from 3.0.10 through 3.1.2.

Weakness: CWE-20

Which versions are affected by CVE-2025-6545?

2 open source packages ship an affected version, including pbkdf2.

PackageAffectedFixed in
pbkdf2 npmFrom 3.0.103.1.3
pbkdf2 npmFrom 3.0.103.1.3

How do I fix CVE-2025-6545?

Upgrade pbkdf2 to 3.1.3 or later.

Is CVE-2025-6545 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6545 exists.

Sources

Also known as DEBIAN-CVE-2025-6545, GHSA-h7cp-r72f-jxh6, ROOT-APP-NPM-CVE-2025-6545, UBUNTU-CVE-2025-6545, USN-8452-1.

Is CVE-2025-6545 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free