CWE-640: Weak Password Recovery Mechanism for Forgotten Password
306 CVEs have CWE-640 as their primary weakness. 1 of them are in the CISA KEV catalog. The highest EPSS score among them is 97.476%.
The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.
Child of CWE-1390: Weak Authentication
Mitigations
- Architecture and Design: Make sure that all input supplied by the user to the password recovery mechanism is thoroughly filtered and validated.
- Architecture and Design: Do not use standard weak security questions and use several security questions.
- Architecture and Design: Make sure that there is throttling on the number of incorrect answers to a security question. Disable the password recovery functionality after a certain (small) number of incorrect guesses.
- Architecture and Design: Require that the user properly answers the security question prior to resetting their password and sending the new password to the e-mail address of record.
- Architecture and Design: Never allow the user to control what e-mail address the new password will be sent to in the password recovery mechanism.
- Architecture and Design: Assign a new temporary password rather than revealing the original password.
Observed examples
- CVE-2025-1570: password reset functionality for a WordPress plugin allows a brute force attack of the one-time password
- CVE-2024-9302: password reset functionality for a WordPress plugin allows a brute force attack of the one-time password
- CVE-2024-5277: password recovery mechanism for AI developer toolkit does not invalidate the reset password token after it is used, allowing attackers to reuse the token to change passwords of victims
- CVE-2024-38287: web conference product resets passwords to random 8-digit values, allowing brute force attacks by retrieving the hash
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2023-7028 | 2024-01-12 | CRITICAL | 10.0 | 94.458% | An issue has been discovered in GitLab CE/EE affecting all versions from 16.1 prior to 16.1.6, 16.2 prior to 16.2.9, 16.3 prior to 16.3.7, 16.4 prior to… |
| CVE-2026-130347 | 2026-11-17 | MEDIUM | 4.8 | 0.257% | phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains an authentication bypass in password reset, letting external-identity accounts receive local… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-640'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-640'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).