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
    • 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-2024-28335

CVE-2024-28335: Lektor Path Traversal Vulnerability

CVE-2024-28335 is a path traversal flaw in Lektor before version 3.3.11 that allows shell command execution via malicious templates. This article covers technical details, affected versions, impact, and mitigation.

Published: April 8, 2026

CVE-2024-28335 Overview

CVE-2024-28335 is a path traversal vulnerability in Lektor, an open-source static content management system (CMS), affecting versions prior to 3.3.11. The vulnerability stems from improper sanitization of database path traversal sequences, enabling attackers to upload malicious files to the templates directory and achieve remote code execution through shell command execution.

Critical Impact

This vulnerability allows attackers to execute arbitrary shell commands on systems running the Lektor development server by exploiting path traversal in conjunction with cross-origin requests from malicious websites targeting localhost port 5000.

Affected Products

  • Lektor Static CMS versions prior to 3.3.11
  • Systems running lektor server command on localhost port 5000
  • Development environments where users browse untrusted websites while running the Lektor server

Discovery Timeline

  • 2024-03-27 - CVE-2024-28335 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-28335

Vulnerability Analysis

This vulnerability exists due to insufficient input validation when handling database path operations within the Lektor CMS. The application fails to properly sanitize path traversal sequences (such as ../), allowing attackers to escape intended directory boundaries and write files to arbitrary locations on the filesystem, including the templates directory.

The attack scenario requires a specific condition where the victim is running the lektor server development command while simultaneously browsing an attacker-controlled website. The malicious website leverages JavaScript to send cross-origin requests to localhost:5000, exploiting the fact that the development server binds to the local interface without proper origin validation.

When a malicious file is successfully placed in the templates directory through path traversal, the Lektor templating engine processes it, leading to arbitrary shell command execution in the context of the user running the server.

Root Cause

The root cause is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, commonly known as Path Traversal). The Lektor CMS does not adequately validate or sanitize user-supplied path components before using them in filesystem operations. This allows an attacker to construct paths containing directory traversal sequences that escape the intended directory structure.

Attack Vector

The attack leverages a network-based attack vector requiring no authentication or user interaction beyond running the development server while browsing untrusted websites. The exploitation chain works as follows:

  1. An attacker hosts a malicious website containing JavaScript code designed to send HTTP requests to localhost:5000
  2. The victim, who is running lektor server on their local machine, visits the malicious website
  3. The JavaScript sends crafted requests to the local Lektor server containing path traversal sequences
  4. Due to insufficient path sanitization, a malicious file is written to the templates directory
  5. When the template is processed, arbitrary shell commands embedded in the file are executed

The vulnerability allows attackers to bypass intended directory restrictions and achieve arbitrary file upload, ultimately resulting in remote code execution. Detailed technical information about the exploitation mechanism can be found in the Packet Storm Security Advisory and the CXSecurity Issue Report.

Detection Methods for CVE-2024-28335

Indicators of Compromise

  • Unexpected files appearing in the Lektor templates directory
  • Unusual HTTP requests to localhost:5000 originating from web browser processes
  • Presence of files with path traversal sequences (../) in access logs
  • Unexplained shell processes spawned as children of the Lektor server process
  • Modified or newly created files in sensitive directories during Lektor server operation

Detection Strategies

  • Monitor filesystem activity in Lektor installation directories for unauthorized file creation or modification
  • Implement network monitoring to detect unusual localhost traffic patterns to port 5000
  • Review web server access logs for requests containing path traversal sequences or encoded variants
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious process chains originating from Lektor processes

Monitoring Recommendations

  • Enable verbose logging on Lektor development servers to capture all incoming requests
  • Implement file integrity monitoring on the templates directory and related Lektor directories
  • Use browser extensions or security tools that restrict localhost access from external websites
  • Monitor for cross-origin requests targeting local development servers from untrusted origins

How to Mitigate CVE-2024-28335

Immediate Actions Required

  • Upgrade Lektor to version 3.3.11 or later immediately
  • Avoid running lektor server while browsing untrusted websites
  • Restrict the Lektor development server from accepting connections by using firewall rules
  • Consider using browser configurations that block localhost access from external origins, as documented in Brave's Privacy Update

Patch Information

The vulnerability has been addressed in Lektor version 3.3.11. The fix implements proper path sanitization to prevent directory traversal attacks. Users should upgrade to this version or later to remediate the vulnerability.

The patch details can be reviewed in the GitHub Pull Request, and the patched version is available at the Lektor v3.3.11 Release.

Workarounds

  • Bind the Lektor server to a different port and use firewall rules to restrict access
  • Run the Lektor development server in an isolated environment or container
  • Use a browser profile without JavaScript enabled when running local development servers
  • Implement network-level filtering to block cross-origin requests to localhost from external websites
bash
# Restrict access to Lektor development server using iptables
# Block external access to port 5000
iptables -A INPUT -p tcp --dport 5000 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 5000 -j DROP

# Alternative: Run Lektor in a container with network isolation
docker run --network=none -v $(pwd):/site lektor/lektor server

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechLektor

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.30%

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

  • CXSecurity Issue WLB-2024030043

  • Lektor Quickstart Documentation

  • GitHub Pull Request Commits

  • GitHub Lektor Release v3.3.11

  • Packet Storm Security Exploit
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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