Original description
Piwigo is open source photo gallery software. Prior to version 13.8.0, there is a SQL Injection vulnerability in the login of the administrator screen. The SQL statement that acquires the HTTP Header `User-Agent` is vulnerable at the endpoint that records user information when logging in to the administrator screen. It is possible to execute arbitrary SQL statements. Someone who wants to exploit the vulnerability must be log in to the administrator screen, even with low privileges. Any SQL statement can be executed. Doing so may leak information from the database. Version 13.8.0 contains a fix for this issue. As another mitigation, those who want to execute a SQL statement verbatim with user-enterable parameters should be sure to escape the parameter contents appropriately.
Affected software
- Piwigo *< 13.8.0 Fixed in: 13.8.0 repository or package match
Details
- Published
- 2023-07-07
- Last modified
- 2026-06-17
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-89
- EPSS (30-day exploit probability)
- 4.50% (percentile 92)
References
- cve.org/CVE-2023-37270
- nvd.nist.gov/vuln/detail/CVE-2023-37270
- github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/dblayer/fun...
- github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/functions.i...
- github.com/Piwigo/Piwigo/commit/978425527d6c113887f845d75cf982bbb62d761a
- github.com/Piwigo/Piwigo/security/advisories/GHSA-934w-qj9p-3qcx
- piwigo.org/release-13.8.0
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.