Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious SQL in date filter parameter
-
DeliverySend unauthenticated HTTP request to ws_std_image_sql_filter()
-
ExploitInject SQL code into unvalidated query
-
ExecutionExecute arbitrary SELECT statements
-
ImpactRetrieve user password hashes and database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Piwigo versions prior to 16.3.0. Remote unauthenticated attacker can inject SQL through date filter parameters (f_min_date_available, f_max_date_available, f_min_date_created, f_max_date_created) in web requests. No victim interaction required. Default configurations vulnerable. |
| Impact | This vulnerability presents critical real-world risk based on multiple threat indicators. The CVSS 4.0 score of 8.7 reflects the severe combination of network-based attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and high confidentiality impact (VC:H). The unauthenticated nature means any internet-accessible Piwigo installation is exploitable without credentials. SQL injection vulnerabilities are well-understood by attackers and easily automatable once parameters are identified. The technical impact extends to full database extraction including password hashes, enabling credential theft and potential lateral movement. While no KEV listing or EPSS score was provided in the intelligence data, and no public exploit code is confirmed at time of analysis, SQL injection is a mature attack technique with abundant tooling support. The availability of a GitHub security advisory and specific commit fix indicates vendor awareness and active remediation, but unpatched instances remain at severe risk. Organizations running internet-facing Piwigo instances should treat this as an urgent patching priority. |
| Exploit ScenarioDerived | An unauthenticated attacker identifies an internet-facing Piwigo installation running a vulnerable version and sends crafted HTTP requests to the web services API with malicious SQL payloads in date filter parameters such as f_min_date_available. By injecting UNION-based SQL queries or time-based blind injection techniques, the attacker extracts the entire database schema, followed by user account tables containing password hashes. The attacker then cracks weak password hashes offline and uses valid credentials to gain administrative access to the photo gallery, potentially pivoting to the underlying web server if credentials are reused across services. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 03, 2026
SQL injection in Piwigo photo gallery application versions prior to 16.3.0 allows unauthenticated remote attackers to extract the entire database, including user password hashes, via unsanitized date filter parameters in the ws_std_image_sql_filter() function. The vulnerability stems from direct SQL concatenation of four date parameters without input validation or escaping. Vendor-released patch available in version 16.3.0. EPSS and KEV data not provided, but the combination of unauthenticated access, low attack complexity, and full database disclosure represents critical risk for internet-facing Piwigo installations.
RemediationAI
Upgrade immediately to Piwigo version 16.3.0 or later, which contains the fix for this SQL injection vulnerability. The security patch is documented in commit 0d5ed1f7778bbe263410446d8cf64594df75bd08 available at https://github.com/Piwigo/Piwigo/commit/0d5ed1f7778bbe263410446d8cf64594df75bd08, and release details are published at https://piwigo.org/release-16.3.0. If immediate patching is not feasible, implement network-level access controls to restrict Piwigo web services to trusted IP ranges, though this is only a temporary mitigation and does not address the underlying code vulnerability. Verify the upgrade completed successfully and review database access logs for suspicious query patterns involving date filter parameters that may indicate prior exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Piwigo is an open-source web-based photo gallery management system written in PHP. The vulnerability exists in the ws_std_image_sql_filter() function, which processes date filtering parameters for image queries. Four parameters (f_min_date_available, f_max_date_available, f_min_date_created, f_max_date_created) are concatenated directly into SQL queries without parameterization, prepared statements, or type validation. This is a classic CWE-89 SQL Injection flaw where user-controlled input reaches database execution context without sanitization. The affected function appears to be part of the web services API layer, making it accessible to unauthenticated requestors. The CPE identifier cpe:2.3:a:piwigo:piwigo indicates the vulnerability affects the core Piwigo application across all versions prior to the patched release.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Piwigo is an open source photo gallery application for the web. Prior to version 16.3.0, the four date filter parameters (f_min_date_available, f_max_date_available, f_min_date_created, f_max_date_created) in ws_std_image_sql_filter() are concatenated directly into SQL without any escaping or type validation. This could result in an unauthenticated attacker reading the full database, including user password hashes. This issue has been patched in version 16.3.0.
Executive ViewAI
Piwigo photo gallery versions prior to 16.3.0 contain an unauthenticated SQL injection vulnerability that allows attackers to extract entire databases including user credentials without authentication. Any internet-facing Piwigo installation on outdated versions is immediately at risk of complete user credential compromise and data breach; organizations running Piwigo must prioritize urgent patching to protect customer and employee data.
Vendor-released patch: version 16.3.0. If immediate patching is not possible: implement network-level access controls to restrict Piwigo web interface to authorized IP ranges only, disable public gallery access temporarily, and monitor for exploitation attempts via WAF rules filtering date filter parameters with SQL syntax characters.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
EUVD-2026-18868
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB