CVE-2023-52082
NixOS vulnerability analysis and mitigation

Overview

Lychee, a free photo-management tool, was found to contain an SQL injection vulnerability (CVE-2023-52082) affecting versions prior to 5.0.2. The vulnerability specifically affects installations using MySQL/MariaDB and is only active when specific environment settings (DB_LOG_SQL=true and DB_LOG_SQL_EXPLAIN=true) are enabled. The vulnerability was discovered and disclosed on December 28, 2023 (NVD, GitHub Advisory).

Technical details

The vulnerability is classified as a CWE-89 (SQL Injection) type weakness. It received a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The issue affects any binding when using MySQL/MariaDB databases, but only becomes exploitable when both DB_LOG_SQL=true and DB_LOG_SQL_EXPLAIN=true are set in the .env configuration file (GitHub Advisory).

Impact

The vulnerability could potentially allow attackers to execute arbitrary SQL commands on the affected database when the specific environment settings are enabled. This could lead to unauthorized access to data, modification of database contents, and potential system compromise. The high CVSS score indicates severe potential impacts on confidentiality, integrity, and availability of the system (NVD).

Exploitability

The vulnerability is exploitable remotely (Network Attack Vector) and requires low attack complexity. While no authentication is required (Privileges Required: None), user interaction is needed for successful exploitation. The default settings of Lychee are safe, as both required environment variables are set to false by default (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Lychee version 5.0.2. For users unable to upgrade immediately, a workaround is available by disabling SQL EXPLAIN logging by setting DB_LOG_SQL_EXPLAIN to false in the environment configuration (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-78662HIGH7.5
  • Docker logoDocker
  • cilium-fips-1.20
NoYesSep 02, 2026
CVE-2026-56855HIGH7.5
  • Docker logoDocker
  • argo-workflows-fips-4.0
NoYesSep 02, 2026
CVE-2026-84642HIGH7.5
  • NixOS logoNixOS
  • thunderbird
NoYesSep 01, 2026
CVE-2026-84641HIGH7.5
  • NixOS logoNixOS
  • thunderbird
NoYesSep 01, 2026
CVE-2026-84640HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management