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

Published Dec 28, 2023
·
Updated

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 DBLOGSQL=true and DBLOGSQLEXPLAIN=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.

Affected Software

1 affected component
Lycheeorg Lychee>=4.9.3<5.0.2

Event History

Dec 28, 2023
CVE Published
03:46 PM
Data Sourced
03:46 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-52082?

CVE-2023-52082 is classified as a high severity vulnerability due to the potential for SQL injection.

2

How do I fix CVE-2023-52082?

To mitigate CVE-2023-52082, update Lychee to version 5.0.2 or later and ensure that DB_LOG_SQL and DB_LOG_SQL_EXPLAIN settings are disabled.

3

What versions of Lychee are affected by CVE-2023-52082?

CVE-2023-52082 affects Lychee versions prior to 5.0.2, specifically those from version 4.9.3.

4

What could happen if CVE-2023-52082 is exploited?

Exploitation of CVE-2023-52082 could allow an attacker to execute arbitrary SQL queries on the database, leading to data breaches or loss.

5

Who is at risk for CVE-2023-52082?

Users of Lychee who have enabled DB_LOG_SQL and DB_LOG_SQL_EXPLAIN settings are at risk for CVE-2023-52082.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203