Overview
Path traversal vulnerabilities, such as the one identified in Lychee versions 6.6.6 to 6.6.9, pose a significant threat to data security and integrity. This vulnerability allows an attacker to access local files, including sensitive data such as environment variables, nginx logs, other user’s uploaded images, and configuration secrets. As Lychee is a widely-used photo-management tool, this vulnerability potentially impacts a large number of users and systems, making it a critical issue that requires immediate attention.
Vulnerability Summary
CVE ID: CVE-2025-50202
Severity: High (CVSS: 7.5)
Attack Vector: Network
Privileges Required: None
User Interaction: None
Impact: System compromise and data leakage
Affected Products
Share secrets securely
Ameeba is private infrastructure for communication and sensitive work built on encrypted identity instead of exposed corporate identity systems.
Passwords, credentials, confidential files, screenshots, internal discussions, sensitive AI context, and private coordination should not become exposed across ordinary communication platforms.
- • Encrypted identity
- • Private Spaces for organizations and teams
- • End-to-end encrypted chat, calls, files, and notes
- • Sensitive AI work and protected collaboration
- • Built for information that cannot leak
Our mission is to secure human work alongside AI.
Product | Affected Versions
Lychee | 6.6.6 to 6.6.9
How the Exploit Works
The vulnerability resides in the SecurePathController.php file of the Lychee application. The flaw allows an attacker to manipulate file paths to access directories that should be inaccessible. By sending crafted requests to the server, an attacker can traverse the directory tree to leak local files, including sensitive data.
Conceptual Example Code
Below is a conceptual example of how this vulnerability might be exploited. This is a hypothetical HTTP request, where “malicious_payload” is the manipulated file path.
GET /path/to/SecurePathController.php?path=../../../../etc/passwd HTTP/1.1
Host: target.example.com
Mitigation
Users of the Lychee photo-management tool are advised to immediately upgrade to version 6.6.10 or later, which contains a patch for this vulnerability. In the interim, a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can be used to mitigate the risk of exploitation.
