{"id":"CVE-2023-52082","state":"PUBLISHED","title":"Lychee is vulnerable to an SQL Injection in explain DB queries.","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.\n","publishedAt":"2023-12-28T15:46:24.291Z","updatedAt":"2024-11-27T15:32:17.641Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["LycheeOrg Lychee"],"affected":[{"vendor":"LycheeOrg","product":"Lychee","versions":[{"version":"< 5.0.2","status":"affected"}]}],"references":["https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4","https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52082.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-52082","state":"PUBLISHED","datePublished":"2023-12-28T15:46:24.291Z","dateUpdated":"2024-11-27T15:32:17.641Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-12-26T17:23:22.235Z"},"containers":{"cna":{"title":"Lychee is vulnerable to an SQL Injection in explain DB queries.","descriptions":[{"lang":"en","value":"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"}],"affected":[{"vendor":"LycheeOrg","product":"Lychee","versions":[{"version":"< 5.0.2","status":"affected"}]}],"references":[{"url":"https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4","name":"https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4","name":"https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-12-28T15:46:24.291Z"},"source":{"advisory":"GHSA-rjwv-5j3m-p5x4","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4","name":"https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-rjwv-5j3m-p5x4","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4","name":"https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T22:48:12.155Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-27T15:32:03.975898Z","id":"CVE-2023-52082","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-27T15:32:17.641Z"}}]}}}