CVE-2020-7689 Insecure Encryption
The bcrypt library incorrectly truncates data longer than 255 bytes, potentially weakening password hashes and allowing security bypasses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7689?
CVE-2020-7689 is a medium-severity vulnerability in bcrypt, published on 1 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Data is truncated wrong when its length is greater than 255 bytes.
Which versions are affected by CVE-2020-7689?
2 open source packages ship an affected version, including bcrypt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bcrypt npm | All versions | 5.0.0 |
bcrypt npm | All versions | 5.0.0 |
Products include Node.bcrypt.js Project Node.bcrypt.js.
How do I fix CVE-2020-7689?
Upgrade bcrypt to 5.0.0 or later.
Is CVE-2020-7689 being exploited?
There is no known exploitation of CVE-2020-7689 in the wild and no public exploit code.
Sources
Also known as GHSA-5wg4-74h6-q47v, SNYK-JS-BCRYPT-572911.