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-43982

CVE-2026-43982: Algernon Web Server Path Traversal Flaw

CVE-2026-43982 is a path traversal vulnerability in Algernon web server that allows attackers to write files outside the web root directory. This article covers the technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-43982 Overview

CVE-2026-43982 is a path traversal vulnerability in Algernon, a self-contained pure-Go web server. The flaw resides in the uploadedFileSaveIn() function within lua/upload/upload.go. The function calls filepath.Join() with a caller-supplied directory but omits any boundary check after joining the paths. An attacker can supply a directory value such as ../../../tmp, which resolves cleanly to /tmp outside the configured web root. The issue is tracked under CWE-22: Improper Limitation of a Pathname to a Restricted Directory. Algernon version 1.17.6 fixes the vulnerability.

Critical Impact

Remote unauthenticated attackers can write uploaded files to arbitrary filesystem locations outside the web root, enabling integrity compromise of host files.

Affected Products

  • Algernon web server versions prior to 1.17.6
  • Applications embedding Algernon's Lua upload handler
  • Deployments exposing the upload endpoint to untrusted clients

Discovery Timeline

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

Technical Details for CVE-2026-43982

Vulnerability Analysis

The vulnerability exists in Algernon's Lua-based file upload handler. The uploadedFileSaveIn() function accepts a destination directory parameter from the calling context and concatenates it with the upload filename using Go's filepath.Join(). While filepath.Join() normalizes path separators and resolves .. segments, it does not enforce that the resulting path remains inside an intended base directory.

A caller-supplied directory containing parent-directory traversal sequences such as ../../../tmp collapses during normalization into an absolute path like /tmp. The handler then writes the uploaded file to that resolved location without verifying containment within the web root. This allows attackers to place arbitrary content into directories chosen by the attacker.

The vulnerability is exploitable over the network without authentication or user interaction. Impact is limited to integrity of the file system, as the flaw does not directly expose data confidentiality or service availability.

Root Cause

The root cause is missing boundary validation after path joining. Secure handling requires resolving the joined path to its canonical form and verifying that the result has the intended base directory as a prefix. Algernon's pre-1.17.6 code performs only the join, trusting the caller-supplied directory string.

Attack Vector

An attacker sends a crafted upload request to a Lua route that invokes uploadedFileSaveIn() with attacker-influenced directory input. The traversal sequence escapes the configured upload directory and writes the file payload to a location outside the web root. Depending on filesystem permissions, attackers can overwrite configuration files, drop executables into directories scanned by other services, or place files in locations that affect subsequent server behavior.

No verified exploitation code is publicly available for this issue. Technical specifics are documented in the GitHub Security Advisory GHSA-2j2c-pv62-mmcp and GitHub Issue #172.

Detection Methods for CVE-2026-43982

Indicators of Compromise

  • Files appearing in filesystem locations outside the Algernon web root with timestamps matching upload activity
  • HTTP upload requests containing .. sequences or absolute paths in directory-related parameters
  • Unexpected writes to system directories such as /tmp, /var, or user home directories by the Algernon process

Detection Strategies

  • Inspect Algernon access logs for POST requests targeting Lua upload endpoints with suspicious parameter values containing ../ patterns
  • Audit the filesystem for files owned by the Algernon service account residing outside the configured document root
  • Review Lua scripts that invoke uploadedFileSaveIn() to identify whether directory arguments derive from request input

Monitoring Recommendations

  • Enable file integrity monitoring on directories adjacent to and above the Algernon web root
  • Forward web server and filesystem audit events to a centralized logging pipeline for correlation
  • Alert on Algernon process write operations to paths outside its configured working directory

How to Mitigate CVE-2026-43982

Immediate Actions Required

  • Upgrade Algernon to version 1.17.6 or later on all affected hosts
  • Audit Lua scripts that handle uploads and confirm directory parameters are not derived from untrusted input
  • Run the Algernon process under a least-privilege account that cannot write to sensitive system directories

Patch Information

The maintainer fixed the vulnerability in Algernon 1.17.6 by adding boundary validation to the upload path handling. Refer to the GitHub Security Advisory GHSA-2j2c-pv62-mmcp for release details and to GitHub Issue #172 for the underlying report.

Workarounds

  • Restrict access to upload endpoints using reverse proxy authentication or network-level controls until patching is complete
  • Sanitize directory inputs in Lua handlers by rejecting any value containing .. or absolute path prefixes
  • Confine the Algernon process with filesystem isolation mechanisms such as containers, chroot, or systemd directory restrictions
bash
# Configuration example: validate that the resolved path stays within the web root
# Pseudocode for a Lua upload guard prior to upgrading
# local base = "/var/www/uploads"
# local target = path.canonical(path.join(base, user_dir))
# if not target:startswith(base) then error("path traversal blocked") end

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechAlgernon

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Issue #172

  • GitHub Security Advisory GHSA-2j2c-pv62-mmcp
  • Related CVEs
  • CVE-2026-48126: Algernon Web Server Path Traversal Flaw

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