# CVE-2023-52082: Lychee is vulnerable to an SQL Injection in explain DB queries.

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2023-12-28T15:46:24.291Z
- Modified: 2026-06-17T06:42:02.270Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- LycheeOrg Lychee: < 5.0.2; from 4.9.3 before 5.0.2

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4> (vendor-advisory)
- <https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4> (patch)

## Sources

- CVE List: [CVE-2023-52082](https://www.cve.org/CVERecord?id=CVE-2023-52082), CVE Terms of Use, modified 2024-11-27
- NVD: [CVE-2023-52082](https://nvd.nist.gov/vuln/detail/CVE-2023-52082), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52082 · Whole record: https://cve.day/CVE-2023-52082.json · Rebuilt by cve.day 2026-11-25T22:58:31.709Z
