CVE-2026-39957: Lychee - SQL Injection
- Cve: CVE-2026-39957
- Name: Lychee - SQL Injection
- 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.
- Impact: Authenticated non-admin users with upload permission can access all user-group sharing permissions, including private albums of other users.
- Remediation: Upgrade to version 7.5.4 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker must be authenticated non-admin user with upload permission and own at least one album
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Epss score: 0.00211
- Epss percentile: 0.11194
- Assignee: [email protected]
- Published at: 2026-04-09T17:16:30Z
- Age in days: 229
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-39957
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-863 | Incorrect Authorization |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-4v4c-g2jv-4g25 | nvd | 2026-04-09 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/LycheeOrg/Lychee/commit/76a3f0513eca6458bf7f8c337c1ad65e59b22bcb | Patch |
| https://github.com/LycheeOrg/Lychee/pull/4264 | Issue Tracking, Patch |
| https://github.com/LycheeOrg/Lychee/security/advisories/GHSA-4v4c-g2jv-4g25 | Exploit, Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| lycheeorg:lychee | < 7.5.4 | no | nvd | /v1/products/lycheeorg/lychee |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| LycheeOrg/Lychee | commit, fix, pull, security_advisory | yes | /v1/repositories/LycheeOrg/Lychee |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-09
- Remote: yes
- Authentication required: yes
- Exposed hosts: 3
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports