CVE-2026-39957 Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users
LowCVSS 2.3
EPSS 0.21%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| LycheeOrg Lychee | < 7.5.4; = < 7.5.4 | 7.5.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| LycheeOrg Lychee | = < 7.5.4 | No fix listed |
| LycheeOrg Lychee | < 7.5.4 | 7.5.4 |
References
- https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-4v4c-g2jv-4g25 exploit patch vendor-advisory
- https://github.com/LycheeOrg/Lychee/pull/4264 issue-tracking patch
- https://github.com/LycheeOrg/Lychee/commit/76a3f0513eca6458bf7f8c337c1ad65e59b22bcb patch