Skip to content
Heist/ feed
Back to feed
High

Lychee is vulnerable to an SQL Injection in explain DB queries.

Type: advisorySources: OSV

Lychee is a free photo-management tool. Prior to 5.0.2, Lychee is vulnerable to an SQL injection on any binding when using mysql/mariadb. This injection is only active for users with the `.env` settings set to DB_LOG_SQL=true and DB_LOG_SQL_EXPLAIN=true. The defaults settings of Lychee are safe. The patch is provided on version 5.0.2. To work around this issue, disable SQL EXPLAIN logging.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-52082
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 02:08 UTC · Revision 1

Source evidence

Lychee is vulnerable to an SQL Injection in explain DB queries.

core-osv · Original source

Published 28 Dec 2023, 15:46 UTC

Lychee is a free photo-management tool. Prior to 5.0.2, Lychee is vulnerable to an SQL injection on any binding when using mysql/mariadb. This injection is only active for users with the `.env` settings set to DB_LOG_SQL=true and DB_LOG_SQL_EXPLAIN=true. The defaults settings of Lychee are safe. The patch is provided on version 5.0.2. To work around this issue, disable SQL EXPLAIN logging.

osv:CVE-2023-52082
Complete source record
{
  "id": "a2b532e1dd5ef1184b6a0cb1b00fa0c2ec9e6b52730ef7ec910023cbe1058843",
  "url": "https://osv.dev/vulnerability/CVE-2023-52082",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Lychee is vulnerable to an SQL Injection in explain DB queries.",
    "summary": "Lychee is a free photo-management tool. Prior to 5.0.2, Lychee is vulnerable to an SQL injection on any binding when using mysql/mariadb. This injection is only active for users with the `.env` settings set to DB_LOG_SQL=true and DB_LOG_SQL_EXPLAIN=true. The defaults settings of Lychee are safe. The patch is provided on version 5.0.2. To work around this issue, disable SQL EXPLAIN logging.",
    "evidence": "osv:CVE-2023-52082",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-52082",
      "aliases": [
        "CVE-2023-52082",
        "GHSA-rjwv-5j3m-p5x4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lycheeorg/lychee",
              "type": "GIT",
              "events": [
                {
                  "introduced": "94f670ac8bb5ab60b9918946e3b9b7d315a0eba3"
                },
                {
                  "fixed": "33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.0.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "cpe": "cpe:2.3:a:lycheeorg:lychee:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.9.3"
                      },
                      {
                        "fixed": "5.0.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.0.1",
            "v5.0.0",
            "v5.0.0-beta",
            "v4.13.0",
            "v4.12.0",
            "v4.11.1",
            "v4.11.0",
            "v4.10.0",
            "v4.9.4",
            "v4.9.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52082.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.000849680Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52082.json",
        "https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52082",
        "https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52082.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52082",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514147,
  "published_at": "2023-12-28T15:46:24.291+00:00"
}