# CVE-2026-39957: Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T16:14:56.133Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- LycheeOrg Lychee: < 7.5.4; before 7.5.4

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## 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

- CVE List: [CVE-2026-39957](https://www.cve.org/CVERecord?id=CVE-2026-39957), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-39957](https://nvd.nist.gov/vuln/detail/CVE-2026-39957), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-39957 · Whole record: https://cve.day/CVE-2026-39957.json · Rebuilt by cve.day 2026-11-25T22:59:18.385Z
