2.3low
Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users
- Severity
- 2.3low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| LycheeOrg Lychee | < 7.5.4, before 7.5.4 | CVE List, NVD |
All scores
| GitHub_M | 2.3low CVSS:4.0 | 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 |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Lychee es una herramienta de gestión de fotos gratuita y de código abierto. Antes de la 7.5.4, un error de precedencia de operadores SQL en SharingController::listAll() provoca que la cláusula orWhereNotNull(’user_group_id’) escape el filtro de propiedad aplicado por el bloque when(). Cualquier usuario autenticado no administrador con permiso de subida que posea al menos un álbum puede recuperar todos los permisos de compartición basados en grupos de usuarios en toda la instancia, incluyendo álbumes privados propiedad de otros usuarios. Esta vulnerabilidad está corregida en la 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 | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39957 changed 2026-04-09 | CVE Terms of Use |
| NVD | CVE-2026-39957 changed 2026-10-26 | Public domain |