The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-50202

CVE-2025-50202: Lychee Path Traversal Vulnerability

CVE-2025-50202 is a path traversal flaw in Lychee photo-management tool that allows attackers to leak local files, environment variables, and configuration secrets. This article covers technical details, affected versions, and mitigation.

Updated: May 19, 2026

CVE-2025-50202 Overview

CVE-2025-50202 is a path traversal vulnerability [CWE-22] in Lychee, an open-source photo-management application. The flaw affects versions starting from 6.6.6 up to but not including 6.6.10. An unauthenticated remote attacker can exploit improper path validation in SecurePathController.php to read arbitrary files on the host. Accessible content includes environment variables, nginx logs, other users' uploaded images, and configuration secrets. The maintainers patched the issue in Lychee 6.6.10.

Critical Impact

Remote unauthenticated attackers can read sensitive local files including .env secrets, web server logs, and other users' private images.

Affected Products

  • Lychee versions 6.6.6 through 6.6.9
  • Component: app/Http/Controllers/SecurePathController.php
  • Fixed in Lychee 6.6.10

Discovery Timeline

  • 2025-06-18 - CVE-2025-50202 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-50202

Vulnerability Analysis

Lychee uses a signed-URL mechanism implemented in SecurePathController to deliver protected assets such as user-uploaded images. The controller resolves a requested path relative to the configured storage disk and streams the file back to the client. In affected versions, the controller did not reject path components that escape the intended storage root. An attacker supplying traversal sequences such as ../ could resolve paths outside the storage directory and obtain arbitrary readable files served by the application user.

The vulnerability exposes confidentiality but does not affect integrity or availability. Exploitable assets include the Laravel .env file containing database credentials and application keys, nginx access and error logs, and image files belonging to other Lychee users. The attack requires no authentication and no user interaction, making automated mass exploitation against internet-exposed Lychee instances feasible.

Root Cause

The root cause is missing canonicalization and boundary checking on user-supplied path input within SecurePathController. The controller trusted the resolved path without verifying that the final location remained inside the permitted storage disk root. The patch introduces a dedicated PathTraversalException and a SecurePathRequest form-request class to validate input before the controller resolves the file path.

Attack Vector

Exploitation occurs over the network against the Lychee HTTP endpoints handling secure paths. An attacker crafts a URL containing directory traversal sequences targeting the SecurePathController route. Because authentication is not required for signed-path delivery, an attacker only needs reachability to the application.

php
// Patch excerpt: new PathTraversalException class introduced in fix
<?php

namespace App\Exceptions\SecurePaths;

use App\Exceptions\BaseLycheeException;
use Symfony\Component\HttpFoundation\Response;

/**
 * PathTraversalException.
 *
 * This exception is thrown when a path traversal attack is detected.
 * We throw an error 418 because we use this with fail-to-ban for the honeypot.
 */
class PathTraversalException extends BaseLycheeException
{
    public function __construct(string $msg, ?\Throwable $previous = null)
    {
        parent::__construct(Response::HTTP_I_AM_A_TEAPOT, $msg, $previous);
    }
}

// Source: https://github.com/LycheeOrg/Lychee/commit/ae7270b7b47e4a284ea1f69d260e52d592711072

The controller patch additionally wires in request validation:

php
use App\Exceptions\SecurePaths\InvalidPayloadException;
use App\Exceptions\SecurePaths\InvalidSignatureException;
use App\Exceptions\SecurePaths\PathTraversalException;
use App\Exceptions\SecurePaths\SignatureExpiredException;
use App\Exceptions\SecurePaths\WrongPathException;
use App\Http\Requests\SecurePath\SecurePathRequest;

// Source: https://github.com/LycheeOrg/Lychee/commit/ae7270b7b47e4a284ea1f69d260e52d592711072

Detection Methods for CVE-2025-50202

Indicators of Compromise

  • HTTP requests to Lychee secure-path routes containing ../, ..%2F, %2e%2e/, or other encoded traversal sequences.
  • Web server access log entries showing 200 responses for path segments that reference .env, storage/logs, or /etc/.
  • Unexpected outbound transfers of .env content, nginx logs, or images belonging to unrelated user accounts.
  • HTTP 418 responses from a patched server, indicating attempted traversal detected by the new PathTraversalException handler.

Detection Strategies

  • Inspect web access logs for traversal patterns targeting Lychee endpoints handled by SecurePathController.
  • Alert on responses where the URL path contains traversal tokens followed by sensitive filenames such as .env, nginx.conf, or error.log.
  • Correlate repeated requests from a single source IP that iterate filenames, indicating automated file enumeration.

Monitoring Recommendations

  • Enable verbose logging on the reverse proxy in front of Lychee and forward logs to a centralized analytics platform.
  • Monitor file-access auditing on the Lychee storage directory and parent paths for reads originating from the PHP-FPM or web server process.
  • Track Lychee version inventory across hosts to identify instances still running 6.6.6 through 6.6.9.

How to Mitigate CVE-2025-50202

Immediate Actions Required

  • Upgrade Lychee to version 6.6.10 or later, which contains the upstream fix.
  • Rotate all secrets stored in the Lychee .env file, including APP_KEY, database credentials, and mail credentials, assuming exposure.
  • Audit web server and application logs for traversal attempts dating back to the deployment of any affected version.
  • Restrict network exposure of Lychee instances to trusted networks until patching is complete.

Patch Information

The fix is delivered in Lychee 6.6.10 via commit ae7270b7b47e4a284ea1f69d260e52d592711072. The patch introduces a dedicated PathTraversalException and a SecurePathRequest validation class that rejects traversal sequences before path resolution. See the GitHub Security Advisory GHSA-6rj9-gm78-vhf9 and the upstream commit for full diff details.

Workarounds

  • Place a reverse proxy or web application firewall rule in front of Lychee that blocks requests containing ../, ..\, %2e%2e, or null-byte sequences in the URL path or query string.
  • Run the Lychee process under a least-privilege user account with read access restricted to the storage directory only.
  • Relocate the .env file and configuration secrets outside any directory served by the web root and tighten filesystem permissions.
bash
# Example nginx rule to block traversal patterns against Lychee
location / {
    if ($request_uri ~* "(\.\./|\.\.\\|%2e%2e|%252e%252e)") {
        return 418;
    }
    try_files $uri $uri/ /index.php?$query_string;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechLychee

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Code File

  • GitHub Commit Changes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39957: Lychee Auth Bypass Vulnerability

  • CVE-2026-33738: Lychee Photo Management XSS Vulnerability

  • CVE-2026-33644: Lychee Photo Management SSRF Vulnerability

  • CVE-2026-33537: Lychee Photo Management SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English