Lychee is vulnerable to an SQL Injection in explain DB queries.
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-89.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Lychee (LycheeOrg) Fixed in 5.0.2
Timeline
- 2026-10-02 Threatist record created from CVE-2023-52082
References
More LycheeOrg Lychee vulnerabilities
- TI-2024-16953 Cross-site Request Forgery (CSRF) vulnerability in Lychee version 3.1.6, allows remote… CVSS 3.1HIGH 8.3
- TI-2024-16952 Cross Site Scripting (XSS) vulnerability in Lychee 3.1.6, allows remote attackers to… CVSS 3.1MEDIUM 6.1
- TI-2026-25930 Lychee has SSRF bypass via incomplete IP validation in Photo::fromUrl — loopback and link-local IPs not blocked CVSS 4.0MEDIUM 5.3
- TI-2026-26117 Lychee Vulnerable to Stored XSS via Photo Description in RSS/Atom/JSON Feed (No Sanitization on Public Endpoint) CVSS 4.0MEDIUM 4.8
- TI-2026-28813 Incorrect authorization in LycheeOrg Lychee CVSS 4.0LOW 2.3
- TI-2021-19511 Lychee-v3 3.2.16 is affected by a Cross Site Scripting (XSS) vulnerability in… CVSS 3.1MEDIUM 6.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences