CVE-2025-50202 Lychee Path Traversal Vulnerability
An attacker can exploit a path traversal flaw in Lychee to leak local files, including environment variables and configuration secrets.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-50202?
CVE-2025-50202 is a high-severity path traversal vulnerability in LycheeOrg Lychee, published on 18 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Lychee is a free photo-management tool. In versions starting from 6.6.6 to before 6.6.10, an attacker can leak local files including environment variables, nginx logs, other user's uploaded images, and configuration secrets due to a path traversal exploit in SecurePathController.php. This issue has been patched in version 6.6.10.
Weakness: CWE-22
Which versions are affected by CVE-2025-50202?
How do I fix CVE-2025-50202?
No fix has been published for CVE-2025-50202 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-50202 being exploited?
There is no known exploitation of CVE-2025-50202 in the wild and no public exploit code.
Sources
Also known as GHSA-6rj9-gm78-vhf9.