{"id":"CVE-2026-39957","summary":"Lychee has Broken Access Control in SharingController::listAll() leaks private album sharing metadata to unauthorized users","details":"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.","aliases":["GHSA-4v4c-g2jv-4g25"],"modified":"2026-08-12T03:51:19.549235772Z","published":"2026-04-09T16:14:56.133Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39957.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-863"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39957.json"},{"type":"ADVISORY","url":"https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-4v4c-g2jv-4g25"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39957"},{"type":"FIX","url":"https://github.com/LycheeOrg/Lychee/commit/76a3f0513eca6458bf7f8c337c1ad65e59b22bcb"},{"type":"FIX","url":"https://github.com/LycheeOrg/Lychee/pull/4264"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lycheeorg/lychee","events":[{"introduced":"0"},{"fixed":"9ec2bfd3928ae6262df88051520acc83b4a5b5e0"},{"fixed":"76a3f0513eca6458bf7f8c337c1ad65e59b22bcb"}],"database_specific":{"cpe":"cpe:2.3:a:lycheeorg:lychee:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"7.5.4"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v7.5.3","v7.5.2","v7.5.1","v7.5.0","v7.4.2","v7.4.1","v7.4.0","v7.3.3","v7.3.2","v7.3.1","v7.3.0","v7.2.1","v7.2.0","v7.1.2","v7.1.1","v7.1.0","v7.0.1","v7.0.0","v6.10.4","v6.10.3","v6.10.2","v6.10.1","v6.10.0","v6.9.4","v6.9.3","v6.9.2","v6.9.1","v6.9.0","v6.8.1","v6.8.0","v6.7.2","v6.7.1","v6.7.0","v6.6.14","v6.6.13","v6.6.12","v6.6.11","v6.6.10","v6.6.9","v6.6.8","v6.6.7","v6.6.6","v6.6.5","v6.6.4","v6.6.3","v6.6.2","v6.6.1","v6.6.0","v6.5.3","v6.5.2","v6.5.1","v6.5.0","v6.4.2","v6.4.1","v6.4.0","v6.3.5","v6.3.4","v6.3.3","v6.3.2","v6.3.1","v6.3.0","v6.2.0","v6.1.2","v6.1.1","v6.1.0","v6.0.1","v6.0.0","v5.5.1","v5.5.0","v5.4.0","v5.3.1","v5.3.0","v5.2.2","v5.2.1","v5.2.0","v5.1.2","v5.1.1","v5.1.0","v5.0.3","v5.0.2","v5.0.1","v5.0.0","v5.0.0-beta","v4.13.0","v4.12.0","v4.11.1","v4.11.0","v4.10.0","v4.9.4","v4.9.3","v4.9.3-RC","v4.9.2","v4.9.1","v4.9.0","v4.8.1","v4.8.0","v4.7.4","v4.7.3","v4.7.2","v4.7.1","v4.7.0","v4.6.5","v4.6.4","v4.6.3-RC1","v4.6.2","v4.6.2-RC2","v4.6.2-RC1","v4.6.1-RC2","v4.6.1","v4.6.1-RC1","v4.6.0","v4.6.0-RC3","v4.6.0-RC2","v4.6.0-RC","v4.5.3","v4.5.2","v4.5.1","v4.5.0","v4.4.0","v4.3.6","v4.3.5","v4.3.4","v4.3.0","v4.2.2","v4.2.1","v4.2.0","v4.1.0","v4.0.8","v4.0.7","v4.0.6","v4.0.5","v4.0.4","v4.0.3","v4.0.2","v4.0.1","v4.0.0","v4.0.0-beta.2","v4.0.0-beta.1","v4.0.0-alpha.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39957.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}