Vulnerability Details : CVE-2023-37270
Potential exploit
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.
Vulnerability category: Sql Injection
Products affected by CVE-2023-37270
- cpe:2.3:a:piwigo:piwigo:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-37270
69.78%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 99 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-37270
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
NIST | |
7.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
2.8
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2023-37270
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-37270
-
https://github.com/Piwigo/Piwigo/commit/978425527d6c113887f845d75cf982bbb62d761a
Merge pull request from GHSA-934w-qj9p-3qcx · Piwigo/Piwigo@9784255 · GitHubPatch
-
https://piwigo.org/release-13.8.0
Piwigo 13.8.0 | Release noteRelease Notes
-
https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/functions.inc.php#L621
Piwigo/include/functions.inc.php at c01ec38bc43f09424a8d404719c35f963d63cf00 · Piwigo/Piwigo · GitHubProduct
-
https://github.com/Piwigo/Piwigo/security/advisories/GHSA-934w-qj9p-3qcx
SQL Injection in "User-Agent" · Advisory · Piwigo/Piwigo · GitHubExploit;Third Party Advisory
-
https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/dblayer/functions_mysqli.inc.php#L491
Piwigo/include/dblayer/functions_mysqli.inc.php at c01ec38bc43f09424a8d404719c35f963d63cf00 · Piwigo/Piwigo · GitHubProduct
Jump to