CVE-2017-8295
WordPress through 4.7.4 relies on the Host HTTP header for a password-reset e-mail message, which makes it easier for remote attackers to reset arbitrary passwords by making a crafted wp-login.php?action=lostpassword request and then arranging for this message to bounce or be resent, leading to transmission of the reset key to a mailbox on an attacker-controlled SMTP server. This is related to problematic use of the SERVER_NAME variable in wp-includes/pluggable.php in conjunction with the PHP mail function. Exploitation is not achievable in all cases because it requires at least one of the following: (1) the attacker can prevent the victim from receiving any e-mail messages for an extended period of time (such as 5 days), (2) the victim's e-mail system sends an autoresponse containing the original message, or (3) the victim manually composes a reply containing the original message.
What to do
Likely to be exploited: EPSS gives a 32% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | wordpress | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | wordpress | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | wordpress | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | wordpress | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | wordpress | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | wordpress | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | wordpress | Fix pending | UBUNTU-CVE-2017-8295 | |
| Ubuntu 14.04 | wordpress | Fix pending | ||
| Debian 14 | wordpress | Fixed | 4.7.5+dfsg-2 | DEBIAN-CVE-2017-8295 |
| Debian 13 | wordpress | Fixed | 4.7.5+dfsg-2 | DEBIAN-CVE-2017-8295 |
| Debian 12 | wordpress | Fixed | 4.7.5+dfsg-2 | DEBIAN-CVE-2017-8295 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2017/dsa-3870 (vendor-advisory)
References
- https://www.exploit-db.com/exploits/41963/
- https://exploitbox.io/vuln/WordPress-Exploit-4-7-Unauth-Password-Reset-0day-CVE-2017-8295.html
- http://www.debian.org/security/2017/dsa-3870
- http://www.securitytracker.com/id/1038403
- http://www.securityfocus.com/bid/98295
- https://wpvulndb.com/vulnerabilities/8807
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.