Skip to content
Heist/ feed
Back to feed
High

Piwigo SQL Injection vulnerability in "User-Agent"

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-37270
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:34 UTC · Revision 1

Source evidence

Piwigo SQL Injection vulnerability in "User-Agent"

core-osv · Original source

Published 7 Jul 2023, 21:26 UTC

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.

osv:CVE-2023-37270
Complete source record
{
  "id": "8c267b523d8d2bbe335fdda636367be23acc96ee8c6f76589b223f5b0a97185c",
  "url": "https://osv.dev/vulnerability/CVE-2023-37270",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Piwigo SQL Injection vulnerability in \"User-Agent\"",
    "summary": "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.",
    "evidence": "osv:CVE-2023-37270",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-37270",
      "aliases": [
        "CVE-2023-37270",
        "GHSA-934w-qj9p-3qcx"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/piwigo/piwigo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9b256a97e7cfd8b8b38fa7a3cd3929c738d632c9"
                },
                {
                  "fixed": "978425527d6c113887f845d75cf982bbb62d761a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:piwigo:piwigo:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "13.8.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "978425527d6c113887f845d75cf982bbb62d761a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "14.0.0beta1",
            "13.7.0",
            "13.6.0",
            "13.5.0",
            "13.4.0",
            "13.3.0",
            "13.2.0",
            "13.1.0",
            "13.0.0",
            "13.0.0RC4",
            "13.0.0RC3",
            "13.0.0RC2",
            "13.0.0RC1",
            "13.0.0beta2",
            "13.0.0beta1",
            "12.0.0RC2",
            "12.0.0RC1",
            "12.0.0beta2",
            "12.0.0beta1",
            "2.11.0beta4",
            "2.11.0beta3",
            "2.11.0beta2",
            "2.11.0beta1",
            "2.10.0RC1",
            "2.10.0beta2",
            "2.10.0beta1",
            "2.9.0RC2",
            "2.9.0RC1",
            "2.9.0beta2",
            "2.9.0beta1",
            "2.8.0RC2",
            "2.8.0RC1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-37270.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.628456549Z",
      "provider": "osv",
      "references": [
        "https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/dblayer/functions_mysqli.inc.php#L491",
        "https://github.com/Piwigo/Piwigo/blob/c01ec38bc43f09424a8d404719c35f963d63cf00/include/functions.inc.php#L621",
        "https://piwigo.org/release-13.8.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37270.json",
        "https://github.com/Piwigo/Piwigo/security/advisories/GHSA-934w-qj9p-3qcx",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-37270",
        "https://github.com/Piwigo/Piwigo/commit/978425527d6c113887f845d75cf982bbb62d761a"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37270.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-37270",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489923,
  "published_at": "2023-07-07T21:26:28.573+00:00"
}