Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | Despite the low CVSS score of 2.3, this vulnerability carries moderate real-world risk due to multiple factors. The CVSS vector (AV:N/AC:L/PR:L/UI:N) confirms network accessibility with low complexity and authentication requirements (PR:L), meaning any authenticated user with basic upload permissions can exploit it without user interaction. The AT:P (Attacker Threat) modifier and VC:L (Confidentiality Loss) indicate restricted exploitation conditions and limited confidentiality impact. However, the information disclosed-sharing permissions across an entire photo management instance-could enable secondary attacks such as targeted harassment, privacy violation planning, or further reconnaissance for privilege escalation. The low CVSS reflects that the vulnerability requires authenticated access and produces information-disclosure rather than system-level compromise. This is a classic case where CVSS underrates practical impact: while system integrity and availability are unaffected, the exposure of metadata about user-group sharing relationships in a privacy-sensitive photo-sharing tool represents a meaningful organizational risk. Real-world priority should be elevated above the CVSS score suggests, particularly for multi-user Lychee deployments in privacy-conscious environments. |
| Exploit ScenarioDerived | An authenticated non-admin user with standard upload permissions who manages at least one personal album crafts a request to the sharing API endpoint, triggering SharingController::listAll(). Due to the SQL operator-precedence bug, the query returns not only their own sharing records but also all user-group-based sharing permissions across the entire Lychee instance, including private albums owned by other users. The attacker gains unintended visibility into which user groups have access to sensitive albums, potentially enabling social engineering or privacy-violation planning without requiring administrative credentials or additional technical exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
SQL operator-precedence bug in Lychee prior to 7.5.4 allows authenticated users with upload permission to bypass ownership filters and retrieve all user-group-based sharing permissions across the instance, including private albums owned by other users. The vulnerability exists in SharingController::listAll() where an orWhereNotNull clause escapes the ownership filter applied by a when() block. This affects any non-admin user who owns at least one album, creating an information disclosure risk that exposes sharing metadata for the entire Lychee instance.
RemediationAI
Vendor-released patch: Lychee 7.5.4 and later. Immediately upgrade to version 7.5.4 or later to resolve the SQL operator-precedence flaw in SharingController::listAll(). The fix is confirmed in GitHub PR #4264 and commit 76a3f0513eca6458bf7f8c337c1ad65e59b22bcb. No workarounds are available for deployments unable to upgrade immediately; consider temporarily restricting upload permissions for non-admin users if delay is unavoidable. Refer to the vendor advisory at https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-4v4c-g2jv-4g25 for upgrade instructions and verification steps.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability stems from a SQL query construction flaw in the Lychee photo-management application (CPE: cpe:2.3:a:lycheeorg:lychee:*:*:*:*:*:*:*:*). The root cause is classified as CWE-863 (Incorrect Authorization), resulting from improper operator precedence in SQL query logic. The SharingController::listAll() method attempts to filter results based on ownership using a when() conditional block, but the subsequent orWhereNotNull('user_group_id') clause inadvertently negates the ownership restriction through incorrect boolean logic precedence. This allows the OR condition to match records that bypass the initially-applied ownership filter, exposing sharing permission records across the entire instance rather than restricting results to the authenticated user's own shares.
Know when Lychee gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Lychee is a free, open-source photo-management tool. Prior to 7.5.4, a SQL operator-precedence bug in SharingController::listAll() causes the orWhereNotNull('user_group_id') clause to escape the ownership filter applied by the when() block. Any authenticated non-admin user with upload permission who owns at least one album can retrieve all user-group-based sharing permissions across the entire instance, including private albums owned by other users. This vulnerability is fixed in 7.5.4.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Cross-site Request Forgery (CSRF) vulnerability in Lychee version 3.1.6, allows remote attackers to execute arbitrary co
Cross Site Scripting (XSS) vulnerability in Lychee 3.1.6, allows remote attackers to execute arbitrary code and obtain s
Lychee is a free photo-management tool. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
Authenticated path traversal in Lychee photo-management tool prior to 7.6.4 allows any logged-in user to read files acce
Lychee photo management tool versions before 7.1.0 contain an authorization bypass in the album password unlock mechanis
Paid fulfillment bypass in Lychee (Supporter/Pro editions) before 7.7.0: the checkout validators accept any OmnipayProvi
Unauthenticated buyers on Lychee instances running the Supporter/Pro webshop can tamper with the parameters handed to th
Unauthenticated attackers who know the shared identifier of a public, password-protected Lychee album can pull down a ZI
Lychee photo-management instances running versions prior to 7.6.1 expose POST /api/v2/Album::unlock with no throttle, at
Denial of service in Lychee before 7.7.0 allows an authenticated user with upload/import permission to tie up image-proc
Unauthenticated remote attackers can retrieve a complete OpenAPI schema and repeatedly force CPU-intensive schema regene
Lychee-v3 3.2.16 is affected by a Cross Site Scripting (XSS) vulnerability in php/Access/Guest.php. Rated medium severit
EUVD-2026-20954
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB