Description
Lychee is a free, open-source photo-management tool. Prior to 7.6.4, SecurePathController, which serves GET /image/{path}, concatenates the attacker-controlled path with the local storage root and performs a string-prefix check before canonicalizing dot segments. Under the supported non-default configuration with temporary_image_link_enabled enabled, temporary_image_link_when_logged_in disabled, and secure_image_link_enabled disabled, any authenticated user can submit encoded traversal segments that pass the prefix check and are later resolved by filesystem operations. This permits reading files available to the web process, including application configuration and other users' private images, and disclosed APP_KEY or database credentials can enable further compromise. This issue is fixed in version 7.6.4.
Published: 2026-10-15
Score: 8.9 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Read by Authenticated Users
Action: Patch
AI Analysis

Impact

Lychee, a popular open‑source photo‑management application, has a path traversal flaw in SecurePathController. The controller concatenates a user‑controlled path segment with the storage root and only performs a string‑prefix check before normalizing the path. For users who enable temporary_image_link_enabled and satisfy certain configuration toggles, crafted traversal sequences can bypass the check, allowing the web process to read any file within its filesystem. An attacker with normal application credentials can read configuration files, database credentials, and other users’ private images, and the disclosed APP_KEY could be leveraged for further compromise. The vulnerability provides a means to obtain sensitive configuration information but does not directly lead to code execution.

Affected Systems

All installations of Lychee running version 7.6.4 or earlier are susceptible when the temporary_image_link feature is enabled and secure_image_link is disabled. The flaw resides in the SecurePathController that serves GET /image/{path}. The issue manifests under the non‑default configuration where temporary_image_link_enabled is true, temporary_image_link_when_logged_in is false, and secure_image_link_enabled is false. No specific minor version is listed beyond the 7.6.4 boundary, so any 7.x release prior to 7.6.4 with those settings is affected.

Risk and Exploitability

The CVSS score of 8.9 indicates high severity. The EPSS score of less than 1% suggests that exploitation likelihood is very low at present, and the vulnerability is not cataloged in the CISA KEV list. The attack requires an authenticated user and a specific feature configuration, but once those conditions are met, the attacker can retrieve arbitrary files accessible to the web process. Given that APP_KEY or database credentials can be retrieved, this flaw could be a stepping stone for a broader compromise. The exploitation path is straightforward: send a crafted GET request to /image/<traversal‑encoded‑path>. The vulnerability is only visible within the application’s own configuration and filesystem, meaning the impact is confined to the host where Lychee is running.

Generated by OpenCVE AI on October 16, 2026 at 20:10 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Lychee to version 7.6.4 or later.
  • If an upgrade is not immediately possible, disable temporary_image_link_enabled or secure_image_link_enabled to prevent the vulnerable endpoint from being reachable, or set temporary_image_link_when_logged_in to true.
  • Restrict the web server’s file system permissions so the Lychee process can access only its intended storage directory, blocking read access to sensitive files.
  • Monitor logs for unusual file access patterns that may indicate exploitation attempts.

Generated by OpenCVE AI on October 16, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 17 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Lycheeorg
Lycheeorg lychee
Vendors & Products Lycheeorg
Lycheeorg lychee

Fri, 16 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 15 Oct 2026 16:45:00 +0000

Type Values Removed Values Added
Description Lychee is a free, open-source photo-management tool. Prior to 7.6.4, SecurePathController, which serves GET /image/{path}, concatenates the attacker-controlled path with the local storage root and performs a string-prefix check before canonicalizing dot segments. Under the supported non-default configuration with temporary_image_link_enabled enabled, temporary_image_link_when_logged_in disabled, and secure_image_link_enabled disabled, any authenticated user can submit encoded traversal segments that pass the prefix check and are later resolved by filesystem operations. This permits reading files available to the web process, including application configuration and other users' private images, and disclosed APP_KEY or database credentials can enable further compromise. This issue is fixed in version 7.6.4.
Title Lychee: Path traversal in `SecurePathController` allows authenticated arbitrary file read
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:H'}


Subscriptions

Lycheeorg Lychee
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-16T17:13:13.881Z

Reserved: 2026-07-14T20:22:04.395Z

Link: CVE-2026-62679

cve-icon Vulnrichment

Updated: 2026-10-15T20:24:44.555Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T17:17:26.820

Modified: 2026-10-16T18:17:59.390

Link: CVE-2026-62679

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T17:45:11Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')