Skip to main content

Piwigo CVE-2025-62406

HIGH
Weak Password Recovery Mechanism for Forgotten Password (CWE-640)
2025-11-18 security-advisories@github.com
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit reset request with spoofed Host header
  2. Delivery
    Victim emailed attacker-controlled reset URL
  3. Exploit
    Victim clicks poisoned reset link
  4. Execution
    Attacker captures leaked reset token
  5. Impact
    Hijack 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 19:22 CVSS 8.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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.3 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 19, 2026 - 13:32 vuln.today
v2 - CVSS changed
CVSS changed
Oct 19, 2026 - 13:23 NVD
8.1 (HIGH) 8.8 (HIGH)
Patch released
Mar 28, 2026 - 19:22 nvd
Patch available
PoC Detected
Nov 25, 2025 - 18:39 vuln.today
Public exploit code
CVE Published
Nov 18, 2025 - 23:15 nvd
HIGH 8.1

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
Prevalence
Low
self-hosted open-source photo gallery, niche hobbyist/SMB footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:piwigo:piwigo:15.6.0:*:*:*:*:*:*:*

More in Piwigo

View all
CVE-2013-1469 MEDIUM POC
4.0 Mar 13

Directory traversal vulnerability in install.php in Piwigo before 2.4.7 allows remote attackers to read and delete arbit

CVE-2013-1468 HIGH POC
7.6 Mar 14

Cross-site request forgery (CSRF) vulnerability in the LocalFiles Editor plugin in Piwigo before 2.4.7 allows remote att

CVE-2017-10682 CRITICAL POC
9.8 Jun 29

SQL injection vulnerability in the administrative backend in Piwigo through 2.9.1 allows remote users to execute arbitra

CVE-2023-33362 CRITICAL POC
9.8 May 23

Piwigo 13.6.0 is vulnerable to SQL Injection via in the "profile" function. Rated critical severity (CVSS 9.8), this vul

CVE-2023-33361 CRITICAL POC
9.8 May 23

Piwigo 13.6.0 is vulnerable to SQL Injection via /admin/permalinks.php. Rated critical severity (CVSS 9.8), this vulnera

CVE-2021-32615 CRITICAL POC
9.8 May 13

Piwigo 11.4.0 allows admin/user_list_backend.php order[0][dir] SQL Injection. Rated critical severity (CVSS 9.8), this v

CVE-2019-13364 CRITICAL POC
9.6 Sep 13

admin.php?page=account_billing in Piwigo 2.9.5 has XSS via the vat_number, billing_name, company, or billing&#95

CVE-2019-13363 CRITICAL POC
9.6 Sep 13

admin.php?page=notification_by_mail in Piwigo 2.9.5 has XSS via the nbm_send_html_mail, nbm_send_mai

CVE-2017-10681 HIGH POC
8.8 Jun 29

Cross-site request forgery (CSRF) vulnerability in Piwigo through 2.9.1 allows remote attackers to hijack the authentica

CVE-2017-10680 HIGH POC
8.8 Jun 29

Cross-site request forgery (CSRF) vulnerability in Piwigo through 2.9.1 allows remote attackers to hijack the authentica

CVE-2017-10678 HIGH POC
8.8 Jun 29

Cross-site request forgery (CSRF) vulnerability in Piwigo through 2.9.1 allows remote attackers to hijack the authentica

CVE-2017-17774 HIGH POC
8.8 Dec 20

admin/configuration.php in Piwigo 2.9.2 has CSRF. Rated high severity (CVSS 8.8), this vulnerability is remotely exploit

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy