# CVE-2023-37270: Piwigo SQL Injection vulnerability in "User-Agent"

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.50%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-07-07T21:26:28.573Z
- Modified: 2026-06-17T06:07:51.480Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Piwigo Piwigo: < 13.8.0; before 13.8.0

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Piwigo/Piwigo/security/advisories/GHSA-934w-qj9p-3qcx> (exploit, third-party-advisory)
- <https://github.com/Piwigo/Piwigo/commit/978425527d6c113887f845d75cf982bbb62d761a> (patch)
- <https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/dblayer/functions_mysqli.inc.php#L491> (product)
- <https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/functions.inc.php#L621> (product)
- <https://piwigo.org/release-13.8.0> (release-notes)

## Sources

- CVE List: [CVE-2023-37270](https://www.cve.org/CVERecord?id=CVE-2023-37270), CVE Terms of Use, modified 2024-10-18
- NVD: [CVE-2023-37270](https://nvd.nist.gov/vuln/detail/CVE-2023-37270), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-37270 · Whole record: https://cve.day/CVE-2023-37270.json · Rebuilt by cve.day 2026-11-25T22:58:25.522Z
