CVE Explorer
CVE-2026-35048
The Piwigo installer in versions 16.3.0 and earlier accepts POST parameters for database configuration and writes them directly into a PHP configuration file without proper sanitization. On PHP 8+, the `addslashes()` protection is bypassed because it checks for `get_magic_quotes_gpc()`, a function removed in PHP 8.0. This allows raw user input to be interpolated directly into PHP source code. An unauthenticated attacker can inject arbitrary PHP code through POST parameters (prefix, dbpasswd, dbh
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"Piwigo","vendor":"Piwigo","versions":[{"status":"affected","version":"<= 16.3.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:ae613cc761afc2a61d6aacbf82c334dbee93138cf6e9d394d04200a7a5252763 · sha256:f17daa473fdc90e4… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:ae613cc761afc2a61d6aacbf82c334dbee93138cf6e9d394d04200a7a5252763 · sha256:f17daa473fdc90e4… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-20","description":"CWE-20: Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ae613cc761afc2a61d6aacbf82c334dbee93138cf6e9d394d04200a7a5252763 · sha256:f17daa473fdc90e4… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/Piwigo/Piwigo/security/advisories/GHSA-gphq-34pv-gvf3","tags":["x_refsource_CONFIRM"],"url":"https://github.com/Piwigo/Piwigo/security/advisories/GHSA-gphq-34pv-gvf3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ae613cc761afc2a61d6aacbf82c334dbee93138cf6e9d394d04200a7a5252763 · sha256:f17daa473fdc90e4… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/Piwigo/Piwigo/security/advisories/GHSA-gphq-34pv-gvf3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ae613cc761afc2a61d6aacbf82c334dbee93138cf6e9d394d04200a7a5252763 · sha256:f17daa473fdc90e4… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.