# CVE-2023-6506: WP 2FA <= 2.5.0 - Insecure Direct Object Reference to Arbitrary Email Sending

- Severity: Medium 4.3 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-02)
- Published: 2024-01-11T06:49:33.842Z
- Modified: 2026-06-17T06:50:52.920Z
- Weaknesses: CWE-639, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

The WP 2FA – Two-factor authentication for WordPress plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.5.0 via the send_backup_codes_email due to missing validation on a user controlled key. This makes it possible for subscriber-level attackers to email arbitrary users on the site.

(As written by CVE List.)

## Affected

- melapress WP 2FA – Two-factor authentication for WordPress: up to 2.5.0
- wpwhitesecurity wp_2fa: up to 2.5.0

## Every score

- Wordfence: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/caff9be6-4161-47a0-ba47-6c8fc0c4ab40?source=cve> (product, third-party-advisory)
- <https://plugins.trac.wordpress.org/browser/wp-2fa/trunk/includes/classes/Admin/class-setup-wizard.php?rev=2940688#L606> (third-party-advisory)
- <https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3009922%40wp-2fa&new=3009922%40wp-2fa&sfp_email=&sfph_mail=> (patch)

## Sources

- CVE List: [CVE-2023-6506](https://www.cve.org/CVERecord?id=CVE-2023-6506), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2023-6506](https://nvd.nist.gov/vuln/detail/CVE-2023-6506), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-6506 · Whole record: https://cve.day/CVE-2023-6506.json · Rebuilt by cve.day 2026-11-25T22:58:32.052Z
