---
title: "CWE-640: Weak Password Recovery Mechanism for Forgotten Password"
url: https://radicalnotion.ai/cwe/cwe-640
type: cwe
description: "The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-640: Weak Password Recovery Mechanism for Forgotten Password

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 316
- **Of those, in CISA KEV:** 1
- **New in 2026:** 110
- **CWE catalog version:** 4.21

## Description

The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.

This weakness may be:

the security question is too easy to guess or find an answer to (e.g. because the question is too common, or the answers can be found using social media).

there might be an implementation weakness in the password recovery mechanism code that may for instance trick the system into e-mailing the new password to an e-mail account other than that of the user.

There might be no throttling done on the rate of password resets so that a legitimate user can be denied service by an attacker if an attacker tries to recover their password in a rapid succession.

The system may send the original password to the user rather than generating a new temporary password.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic. |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism, Gain Privileges or Assume Identity | Weak password recovery schemes completely undermine a strong password authentication scheme. An attacker could gain unauthorized access to the system by retrieving a legitimate user's authentication credentials. |
| Availability | DoS: Resource Consumption (Other) | An attacker could deny service to legitimate system users by launching a brute force attack on the password recovery mechanism using user ids of legitimate users. |
| Integrity, Other | Other | The system's security functionality is turned against the system by the attacker. |

## Potential 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.

## Demonstrative examples

### Example 1

A famous example of this type of weakness being exploited is the eBay attack. eBay always displays the user id of the highest bidder. In the final minutes of the auction, one of the bidders could try to log in as the highest bidder three times. After three incorrect log in attempts, eBay password throttling would kick in and lock out the highest bidder's account for some time. An attacker could then make their own bid and their victim would not have a chance to place the counter bid because they would be locked out. Thus an attacker could win the auction.

## Observed examples

| CVE | Description |
| --- | --- |
| 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 |

## Real CVEs with this weakness (sample of 12 of 316)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-7028 | Weak Password Recovery Mechanism for Forgotten Password in GitLab | critical | 9.9 | - | Yes | 2024-01-12 |
| CVE-2025-63314 | - | critical | 10.0 | - | No | 2026-01-12 |
| CVE-2024-8878 | Unauthenticated Password Reset | critical | 10.0 | - | No | 2024-09-24 |
| CVE-2026-102115 | Kiteworks Core Authentication Bypass in the Password Reset Workflow | critical | 9.8 | - | No | 2026-09-30 |
| CVE-2026-19632 | TranslatePress – Multilingual \<= 3.3.1 - Unauthenticated Account Takeover via Password Reset Link Disclosure | critical | 9.8 | - | No | 2026-08-26 |
| CVE-2026-77264 | Automation Web Platform \<= 4.8.6 - Unauthenticated Authentication Bypass via 'otp\_transient' Token Disclosure | critical | 9.8 | - | No | 2026-08-21 |
| CVE-2026-15689 | Dancer2::Plugin::Auth::Extensible versions through 0.713 for Perl allow password reset link poisoning via the request Host header in \_default\_email\_password\_reset and \_default\_welcome\_send | critical | 9.8 | - | No | 2026-08-15 |
| CVE-2026-12949 | Wishlist Member X \<= 3.34.1 - Unauthenticated Account Takeover via 'mergewith' Parameter | critical | 9.8 | - | No | 2026-08-14 |
| CVE-2026-66691 | WordPress Nokri theme \<= 1.6.6 - Broken Access Control vulnerability | critical | 9.8 | - | No | 2026-08-13 |
| CVE-2026-61967 | WordPress miniorange otp verification plugin \<= 5.5.1 - Privilege Escalation vulnerability | critical | 9.8 | - | No | 2026-08-13 |
| CVE-2026-14364 | TrueBooker \<= 1.2.3 - Missing Authorization to Unauthenticated Arbitrary Password Reset via 'tbab-userid' | critical | 9.8 | - | No | 2026-08-07 |
| CVE-2026-13019 | Missing Authentication | critical | 9.8 | - | No | 2026-07-07 |

## Related attack patterns (CAPEC)

- [CAPEC-50](https://radicalnotion.ai/capec/capec-50): Password Recovery Exploitation

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-287](https://radicalnotion.ai/cwe/cwe-287) | Improper Authentication |
| Parent | [CWE-1390](https://radicalnotion.ai/cwe/cwe-1390) | Weak Authentication |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| WASC | Insufficient Password Recovery | 49 | - |

## Frequently asked questions

### What is CWE-640?

The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.

### What CVEs are caused by CWE-640?

316 recorded CVEs are attributed to CWE-640, including CVE-2023-7028, CVE-2025-63314 and CVE-2024-8878. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-640?

Make sure that all input supplied by the user to the password recovery mechanism is thoroughly filtered and validated.

### What are the consequences of CWE-640?

Exploiting CWE-640 can lead to: Bypass Protection Mechanism, Gain Privileges or Assume Identity, DoS: Resource Consumption (Other), Other.

### Is CWE-640 actively exploited?

Yes. 1 CWE-640 vulnerability is in CISA's KEV catalog of actively exploited flaws, out of 316 recorded CVEs.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/640.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-640). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
