Lychee SQL Injection Vulnerability in SharingController Allows Unauthorized Access to Private Album Metadata

Vulnerability

A SQL injection vulnerability has been identified in Lychee versions prior to 7.5.4. The issue arises from a SQL operator-precedence bug in the SharingController's listAll() method, where the orWhereNotNull('user_group_id') clause bypasses the ownership filter. This flaw enables authenticated non-admin users with upload permissions, who own at least one album, to access user-group-based sharing permissions across the platform, including private albums of other users.

Impact

Exploitation of this vulnerability allows unauthorized users to access and enumerate private album IDs and titles of other users, as well as user group IDs and names with access to those albums.

Reproduction

The vulnerability can be reproduced by an authenticated non-admin user with upload permission who owns at least one album. The user can then access the SharingController's listAll() method, which will inadvertently expose user-group-based sharing permissions for all albums, including private ones owned by others.

Remediation

Users can update to Lychee version 7.5.4 or later to address this vulnerability.

Added: Apr 9, 2026, 5:47 PM
Updated: Apr 9, 2026, 5:47 PM

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
0.6
exploitability
6.4
remediation
7.7
relevance
5.5
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.