Piwigo
CVE-2025-62406
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit reset request with spoofed Host header
-
DeliveryVictim emailed attacker-controlled reset URL
-
ExploitVictim clicks poisoned reset link
-
ExecutionAttacker captures leaked reset token
-
ImpactHijack account via password reset
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Password recovery security
|
| Exploitation Conditions | Exploitation requires three concrete prerequisites: (1) the attacker must know or correctly guess an existing Piwigo username or email address to trigger the reset; (2) the attacker must send the password-reset request with a modified Host header, which Piwigo 15.6.0 accepts without any validation (default behavior, no special configuration needed); and (3) the targeted victim must actually click the resulting reset link in the email so that the token is delivered to the attacker-controlled host. The decisive limiting factor is this required user interaction (CVSS UI:R) - the attack fails if the victim does not click the poisoned link - which makes exploitation targeted and per-user rather than mass/automatable. No authentication is required to initiate the reset (PR:N). |
| Impact | This is a host-header injection / password-reset poisoning flaw (CWE-640) in Piwigo 15.6.0 where the reset URL hostname is taken unvalidated from the HTTP Host header. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 8.8) rates it high, but several signals temper real-world urgency: EPSS is only 0.08% (23rd percentile), indicating very low predicted exploitation probability, and the CVE is NOT on CISA KEV, so there is no evidence of active exploitation. Public exploit material exists only in the form of the GitHub Security Advisory (GHSA-9986-w7jf-33f6), which is a disclosure/explanation rather than a weaponized widespread tool. Critically, the CVSS C:H/I:H/A:H impact is contingent on UI:R - the targeted victim must actually click the attacker-poisoned reset link and the attacker must then capture the leaked token; this is realistic but not fire-and-forget, so the effective severity is lower than the 8.8 suggests for most deployments. The 'Information Disclosure' tag understates the true consequence, which is single-account takeover rather than mere data exposure. Net: a legitimate account-takeover issue worth patching, but given low EPSS, no KEV, required user interaction, and a niche product, this is a patch-on-normal-cadence item rather than an emergency. |
| Exploit ScenarioDerived | An attacker who knows or guesses a valid Piwigo username or email submits the password-reset form while spoofing the HTTP Host header to point at a server they control. Piwigo builds the reset link using that attacker-supplied hostname and emails it to the victim; if the victim clicks the link, the one-time reset token is delivered to the attacker's host, who then completes the reset and takes over the account. A public advisory (GHSA-9986-w7jf-33f6) describes the flaw, though no automated weaponized exploit is indicated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 19, 2026
Password-reset poisoning in Piwigo 15.6.0 lets remote attackers who know or can correctly guess an existing username or email address send that user a reset link whose hostname points at an attacker-controlled server, exposing the reset token and enabling account takeover. The reset URL is built from the HTTP request's Host header without any validation, so the attack is a single crafted request plus the victim clicking the emailed link (assessed CVSS 3.1: AV:N/AC:L/PR:N/UI:R, 8.8 - high confidentiality and integrity impact, limited availability impact). Publicly available exploit code exists, but EPSS is low at 0.08% (23rd percentile) and there is no CISA KEV listing, so exploitation is targeted and per-victim rather than mass-automated; Piwigo 15.7.0 contains the fix.
Earlier versions of this analysis (1)
Piwigo is a full featured open source photo gallery application for the web. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
RemediationAI
Upgrade to Piwigo 15.7.0, which is the vendor-released patch and the fix confirmed by the upstream commit https://github.com/Piwigo/Piwigo/commit/9d2565465efc3570963ff431b45cad21610f6692 and the advisory https://github.com/Piwigo/Piwigo/security/advisories/GHSA-9986-w7jf-33f6; the update replaces the single-request reset link with a Base32 verification-code step whose link lifetime is capped by $conf['password_reset_code_duration'] (default 300 seconds, maximum 15 minutes). If upgrading immediately is not possible, the most effective compensating control is to stop Piwigo from trusting the request header: pin the canonical gallery URL in configuration and front the site with a web-server rule that rejects or normalizes requests whose Host header is not on an explicit allow-list (for example a default_server/catch-all virtual host returning 444 in nginx, or a RequireHost/RewriteCond check in Apache) - the trade-off is that reverse proxies, load balancers, and legitimate multi-domain or IP-based access must be added to the allow-list or users will see 400/444 errors on those hostnames. As a secondary reduction, restrict the application to a single canonical HTTPS hostname with HSTS so off-domain links do not resolve usefully, and treat unexpected password-reset emails as an incident signal; neither measure removes the underlying flaw, so patching to 15.7.0 remains the only complete fix.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-640 (weak password recovery mechanism for forgotten password), realized here as Host header injection into an emailed URL. Piwigo's forgotten-password flow generates an absolute password-reset link, and the scheme/host portion of that URL is derived from the incoming HTTP request's Host header, which PHP exposes via $_SERVER['HTTP_HOST'] and which Piwigo 15.6.0 does not compare against any configured canonical gallery URL or allow-list. Any client can set that header arbitrarily, so the server will faithfully email a link such as https://attacker.example.com/… carrying a token that is valid on the real gallery; when the victim clicks it, the token is disclosed to the attacker, who replays it against the legitimate site and sets a new password. The vulnerability class sits in the password-management layer of a PHP/MySQL photo-gallery web application rather than in its media handling, and it requires no privileges on the gallery (PR:N) - only knowledge of a valid account identifier and victim interaction (UI:R). The upstream fix (commit 9d2565465efc3570963ff431b45cad21610f6692) hardens the flow rather than only sanitizing the header: it clears $_SESSION['reset_password_code'] during identification, adds an include/base32.class.php helper (RFC 4648 Base32, chosen for case-insensitive/URL-friendly encoding) used to generate a time-limited verification code, introduces the pwg_generate_code_verification_mail() template and a PwgBase32-based code generator in functions_user.inc.php, and adds a $conf['password_reset_code_duration'] setting defaulting to 300 seconds (capped at 15 minutes) so the emailed link is only issued after the requester proves control of the mailbox with a short-lived code.
Know when Piwigo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Remote unauthenticated trigger (AV:N/PR:N) but victim must click the poisoned link (UI:R); token capture enables account takeover (C:H/I:H), with only partial availability loss from locking out the user (A:L).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
Piwigo is a full featured open source photo gallery application for the web. In Piwigo 15.6.0, using the password reset function allows sending a password-reset URL by entering an existing username or email address. However, the hostname used to construct this URL is taken from the HTTP request's Host header and is not validated at all. Therefore, an attacker can send a password-reset URL with a modified hostname to an existing user whose username or email the attacker knows or guesses. This issue has been patched in version 15.7.0.
Executive ViewAI
Piwigo 15.6.0 carries a high-severity password-reset weakness that can enable account takeover when an attacker knows or guesses a valid username or email and the victim clicks a poisoned reset link; publicly available exploit code exists, and the CVSS vector indicates the attacker is unauthenticated but the victim must interact. Leadership should care because compromised Piwigo accounts, especially administrative ones, could expose or alter stored images and site content, although current exploitation appears targeted rather than mass-automated. Remediation is available in Piwigo 15.7.0, so internet-facing and privileged deployments should be prioritized.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)NVD
Directory traversal vulnerability in install.php in Piwigo before 2.4.7 allows remote attackers to read and delete arbit
Cross-site request forgery (CSRF) vulnerability in the LocalFiles Editor plugin in Piwigo before 2.4.7 allows remote att
SQL injection vulnerability in the administrative backend in Piwigo through 2.9.1 allows remote users to execute arbitra
Piwigo 13.6.0 is vulnerable to SQL Injection via in the "profile" function. Rated critical severity (CVSS 9.8), this vul
Piwigo 13.6.0 is vulnerable to SQL Injection via /admin/permalinks.php. Rated critical severity (CVSS 9.8), this vulnera
Piwigo 11.4.0 allows admin/user_list_backend.php order[0][dir] SQL Injection. Rated critical severity (CVSS 9.8), this v
admin.php?page=account_billing in Piwigo 2.9.5 has XSS via the vat_number, billing_name, company, or billing_
admin.php?page=notification_by_mail in Piwigo 2.9.5 has XSS via the nbm_send_html_mail, nbm_send_mai
Cross-site request forgery (CSRF) vulnerability in Piwigo through 2.9.1 allows remote attackers to hijack the authentica
Cross-site request forgery (CSRF) vulnerability in Piwigo through 2.9.1 allows remote attackers to hijack the authentica
Cross-site request forgery (CSRF) vulnerability in Piwigo through 2.9.1 allows remote attackers to hijack the authentica
admin/configuration.php in Piwigo 2.9.2 has CSRF. Rated high severity (CVSS 8.8), this vulnerability is remotely exploit
NVD
CVE.org
EPSS
GitHub
Exploit-DB