CVE-2023-37270: Piwigo - SQL Injection
- Cve: CVE-2023-37270
- Name: Piwigo - SQL Injection
- 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.
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data leakage or database compromise.
- Remediation: Update to version 13.8.0 or later, and ensure proper escaping of user input parameters.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be logged in as administrator
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.045
- Epss percentile: 0.91729
- Assignee: [email protected]
- Published at: 2023-07-07T22:15:09Z
- Age in days: 1236
- Modified at: 2026-06-17T06:07:51Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-37270
- Nvd status: modified
- Checked, none or zero: known exploited entries, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2023-37270 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-37270.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Piwigo/Piwigo/security/advisories/GHSA-934w-qj9p-3qcx | nvd | 2023-07-07 |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| piwigo:piwigo | < 13.8.0 | no | nvd | /v1/products/piwigo/piwigo |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Piwigo/Piwigo | commit, fix, security_advisory | yes | /v1/repositories/Piwigo/Piwigo |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-07-07
- Remote: yes
- Authentication required: yes
- Exposed hosts: 994040
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, initial access since, hackerone reports