{"id":"CVE-2023-37270","published":"2023-07-07T21:26:28Z","modified":"2024-10-18T18:37:52Z","title":"Piwigo SQL Injection vulnerability in \"User-Agent\"","vendor":"Piwigo","product":"Piwigo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.045,"percentile":0.91717,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/Piwigo/Piwigo/security/advisories/GHSA-934w-qj9p-3qcx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Piwigo/Piwigo/commit/978425527d6c113887f845d75cf982bbb62d761a","tags":["x_refsource_MISC"]},{"url":"https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/dblayer/functions_mysqli.inc.php#L491","tags":["x_refsource_MISC"]},{"url":"https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/functions.inc.php#L621","tags":["x_refsource_MISC"]},{"url":"https://piwigo.org/release-13.8.0","tags":["x_refsource_MISC"]}],"priority":{"score":28.7,"factors":[{"name":"EPSS percentile","points":18.34},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.32}]},"exploitSources":{"nuclei":[{"id":"CVE-2023-37270","name":"Piwigo 13.7.0 - SQL Injection","severity":"high","path":"http/cves/2023/CVE-2023-37270.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-37270.yaml"}],"provenance":"source"},"vendorSlug":"piwigo","affectedVersions":[{"vendor":"Piwigo","product":"Piwigo","versions":["< 13.8.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-18T18:06:38.544954Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"A SQL injection flaw in Piwigo, the open source photo gallery software, lives in the User-Agent HTTP header handling of the administrator login screen's user-information recording logic, in versions prior to 13.8.0. An attacker with network access who holds an account on the administrator screen, even with low privileges, can inject arbitrary SQL statements through that header, which may leak information from the database; no user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:04:01Z"},"euvd":{"id":"EUVD-2023-41182","exploited":false,"provenance":"source"}}