CVE-2026-39957

Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users

Published Apr 9, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Lychee, the open‑source photo‑management application, contains a SQL operator‑precedence bug in the SharingController::listAll() method. This flaw causes the condition that should restrict results to the owner’s own albums to be bypassed, allowing an authenticated non‑admin user with upload permission to retrieve the full list of user‑group–based sharing settings, including metadata for private albums owned by other users. The vulnerability results in unauthorized disclosure of private album sharing information, exposing potentially sensitive data about other users.

Affected Systems

All installations of Lychee older than version 7.5.4 are affected. Users of Lychee who have accounts with upload permissions and own at least one album are the vectors, but any such user can read private sharing data of other users. The fix was implemented in update 7.5.4.

Risk and Exploitability

Although the CVSS score is 2.3, indicating a low severity assessment, the weakness is a broken access control (CWE‑863) that can be exploited by legitimate users with specific permissions. The lack of EPSS data and absence from the KEV catalog suggest the vulnerability is not known to be actively exploited. The likely attack surface is the web API that lists sharing entries, which is reachable by authenticated users with upload rights. An attacker must first be authenticated, have upload rights, and own an album, after which they can issue requests to the list endpoint and obtain metadata of private albums owned by other users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Lychee to version 7.5.4 or later.

Generated by OpenCVE AI on April 9, 2026 at 17:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:lycheeorg:lychee:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Lycheeorg
Lycheeorg lychee
Vendors & Products Lycheeorg
Lycheeorg lychee
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users
Weaknesses CWE-863
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 9, 2026, 7:08 PM
Reserved
Apr 7, 2026, 10:40 PM
Status
Analyzed
Published
Apr 9, 2026, 5:16 PM
Modified
Oct 26, 2026, 9:10 PM