{"id":"CVE-2023-52082","published":"2023-12-28T15:46:24Z","modified":"2024-11-27T15:32:17Z","title":"Lychee is vulnerable to an SQL Injection in explain DB queries.","vendor":"LycheeOrg","product":"Lychee","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00472,"percentile":0.41612,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":8.32},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"lycheeorg","affectedVersions":[{"vendor":"LycheeOrg","product":"Lychee","versions":["< 5.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-27T15:32:03.975898Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-56759","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-lycheeorg-lychee-cve-2023-52082","children":[{"from":"CVE-2023-52082","to":"CVE-2025-53018","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/Providers/AppServiceProvider.php"],"commits":["https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4","https://github.com/LycheeOrg/Lychee/commit/9dc162eefe56ce185ac1d59da42ee557933d914d"],"basis":"shared function","functions":["logSQL"]}]}]}}