A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-45721

CVE-2026-45721: Algernon Web Server RCE Vulnerability

CVE-2026-45721 is a remote code execution flaw in Algernon web server that allows attackers to execute arbitrary code via handler.lua file traversal. This article covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-45721 Overview

CVE-2026-45721 is a pre-authentication remote code execution vulnerability in Algernon, a self-contained pure-Go web server. The flaw resides in the DirPage function, which walks upward through parent directories searching for a handler.lua file when a URL resolves to a directory without an index file. The search escapes the configured server root and traverses up to 100 ancestor directories or until the filesystem root is reached. Any attacker-controlled handler.lua discovered along this path is loaded into the Lua interpreter with the full Algernon API exposed. Versions prior to 1.17.7 are affected.

Critical Impact

An unauthenticated HTTP request such as GET / against a stock Algernon install triggers execution of any handler.lua located in a parent directory, granting full code execution via os.execute, io.popen, and raw filesystem access.

Affected Products

  • Algernon web server versions prior to 1.17.7
  • Deployments using default configuration with directory-based routing
  • Any Algernon instance where an attacker can write handler.lua to a parent directory of the server root

Discovery Timeline

  • 2026-05-26 - CVE-2026-45721 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-45721

Vulnerability Analysis

The vulnerability is an improper input validation flaw [CWE-20] in Algernon's request handler resolution logic. When a request URL maps to a directory lacking an index file, the DirPage routine attempts to locate a Lua handler by walking the directory hierarchy upward. The termination condition stops only after 100 iterations or when filepath.Dir returns ., meaning absolute server-root paths traverse all the way to / on Unix or the drive letter on Windows. The first handler.lua encountered is executed with the complete Algernon API surface, including run3(), httpclient, os.execute, io.popen, PostgreSQL (PQ) and MSSQL bindings, raw filesystem access, and the userstate database.

Root Cause

The handler resolution step lacks a boundary check against the configured server root. The Algernon permission system gates only URL prefixes, not the file-resolution walk that precedes the permission check. As a result, the upward directory traversal occurs before any authentication or authorization logic executes.

Attack Vector

An attacker who can write a handler.lua file to any parent directory of the server root obtains pre-authenticated remote code execution on the next HTTP request. On a fresh stock installation, an unauthenticated GET / request is sufficient to trigger the walk and execute attacker-controlled Lua code. The attack vector is network-based and requires no user interaction. See the GitHub Security Advisory for technical details.

Detection Methods for CVE-2026-45721

Indicators of Compromise

  • Unexpected handler.lua files present in parent directories of the configured Algernon server root
  • Algernon process spawning child processes through os.execute or io.popen Lua bindings
  • Outbound network connections initiated by the Algernon process via the httpclient Lua module
  • HTTP access log entries for directory paths returning unexpected dynamic content

Detection Strategies

  • Audit the filesystem for any handler.lua files outside the intended Algernon document root
  • Monitor the Algernon binary for unexpected execve calls, file writes outside the server root, or new outbound socket connections
  • Inspect HTTP logs for requests to directory paths (URLs without file extensions) that returned 200 responses on a server expected to serve only static content

Monitoring Recommendations

  • Enable process execution auditing on hosts running Algernon and alert on child processes of the web server
  • Track filesystem write events targeting parent directories of the Algernon server root
  • Forward Algernon access and error logs to a centralized log platform for correlation with process telemetry

How to Mitigate CVE-2026-45721

Immediate Actions Required

  • Upgrade Algernon to version 1.17.7 or later, which fixes the unbounded directory walk
  • Scan all parent directories of every Algernon server root for unauthorized handler.lua files and remove any not explicitly deployed
  • Restrict write permissions on parent directories of the server root so only trusted accounts can create files there
  • Run Algernon under a dedicated low-privilege user account to limit post-exploitation impact

Patch Information

The vulnerability is fixed in Algernon 1.17.7. The patch constrains the handler.lua lookup to remain within the configured server root rather than walking up to the filesystem root. Refer to the GitHub Security Advisory GHSA-xwcr-wm99-g9jc for release details.

Workarounds

  • Place an index file (such as index.html or index.lua) in every directory served by Algernon to prevent the DirPage walk from triggering
  • Deploy Algernon inside a container or chroot so that the upward directory walk cannot reach attacker-writable locations
  • Disable Lua handler execution if the deployment only requires static content serving
bash
# Upgrade Algernon to the patched release
go install github.com/xyproto/algernon@v1.17.7

# Verify no unauthorized handler.lua files exist above the server root
find / -name 'handler.lua' -not -path '/path/to/serverroot/*' 2>/dev/null

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAlgernon

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-46430: Algernon Web Server DoS Vulnerability

  • CVE-2026-45728: Algernon Web Server Info Disclosure Flaw

  • CVE-2026-43981: Algernon Web Server Race Condition Flaw

  • CVE-2026-43982: Algernon Web Server Path Traversal Flaw
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