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
A new way to communicate
Ameeba Chat is built on encrypted identity, not personal profiles.
Message, call, share files, and coordinate with identities kept separate.
- • Encrypted identity
- • Ameeba Chat authenticates access
- • Aliases and categories
- • End-to-end encrypted chat, calls, and files
- • Secure notes for sensitive information
Private communication, rethought.
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.
