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

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

CVE-2026-43981 is a race condition vulnerability in Algernon web server that causes Lua VM corruption under concurrent requests. This article covers the technical details, affected versions, security impact, and mitigation.

Published: May 28, 2026

CVE-2026-43981 Overview

CVE-2026-43981 is a race condition vulnerability in Algernon, a small self-contained pure-Go web server. The flaw exists in engine/luahandler.go where the sync.RWMutex protecting LoadCommonFunctions is released before L.Push() and L.PCall() execute. Because gopher-lua's LState is explicitly not goroutine-safe, concurrent HTTP requests race on the shared Lua state. The race triggers Lua virtual machine (VM) corruption under modest concurrency, confirmed by the Go race detector using ab -n 1000 -c 100. The vulnerability is tracked as [CWE-362] and is fixed in Algernon 1.17.6.

Critical Impact

Concurrent requests corrupt the shared Lua VM state, leading to denial-of-service conditions and unpredictable handler behavior on Algernon servers prior to 1.17.6.

Affected Products

  • Algernon web server versions prior to 1.17.6
  • Applications embedding the affected engine/luahandler.go Lua handler
  • Deployments using gopher-lua LState under concurrent HTTP load

Discovery Timeline

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

Technical Details for CVE-2026-43981

Vulnerability Analysis

The vulnerability resides in the Algernon Lua handler implementation. The handler uses a sync.RWMutex to serialize access to a shared gopher-lua LState while loading common functions. However, the mutex is released too early, before L.Push() pushes arguments onto the Lua stack and before L.PCall() invokes the protected call. Concurrent goroutines servicing HTTP requests then operate on the same LState without synchronization.

gopher-lua documents LState as non goroutine-safe. Concurrent stack manipulation corrupts internal Lua VM structures, including the value stack, call frames, and registry references. The Go race detector flags the violation immediately under the test load ab -n 1000 -c 100. Observed effects include process crashes, panics, and inconsistent script output across requests.

Root Cause

The root cause is a synchronization lifecycle error categorized as [CWE-362] Concurrent Execution using Shared Resource with Improper Synchronization. The lock scope does not cover the full critical section. Releasing the mutex before Push and PCall complete leaves shared mutable state exposed to data races between request-handling goroutines.

Attack Vector

A remote unauthenticated attacker sends concurrent HTTP requests to any endpoint served by the affected Lua handler. No authentication or user interaction is required. Modest concurrency is sufficient to trigger the race. The integrity and confidentiality of network traffic are not directly affected, but service availability degrades as the Lua VM corrupts and the server panics.

The vulnerability manifests through the early mutex release in engine/luahandler.go. For exact diff context, refer to the GitHub Security Advisory GHSA-rr2f-4wrm-h6rg and GitHub Issue #172.

Detection Methods for CVE-2026-43981

Indicators of Compromise

  • Unexplained Algernon process panics or crashes referencing gopher-lua stack frames
  • Go runtime data race warnings emitted when the server is built with the -race flag
  • Inconsistent or truncated responses from Lua-backed endpoints during periods of concurrent load

Detection Strategies

  • Run Algernon with the Go race detector enabled in pre-production and replay traffic with ab -n 1000 -c 100 to surface the race
  • Inventory deployed Algernon binaries and compare versions against the fixed release 1.17.6
  • Monitor application logs for repeated Lua runtime errors correlated with concurrent request bursts

Monitoring Recommendations

  • Alert on Algernon process restarts and unexpected exit codes through host-based telemetry
  • Track request concurrency metrics against error rates on Lua-handled routes
  • Capture stack traces from crashed Algernon instances and review for gopher-lua frames

How to Mitigate CVE-2026-43981

Immediate Actions Required

  • Upgrade Algernon to version 1.17.6 or later, which contains the corrected mutex scope
  • Restart Algernon services after upgrade to ensure the patched binary is active
  • Audit reverse proxy and load balancer configurations to identify exposed Algernon endpoints

Patch Information

The maintainer released the fix in Algernon 1.17.6. The patch extends the sync.RWMutex critical section to cover L.Push() and L.PCall(), eliminating the data race on the shared LState. See the GitHub Security Advisory GHSA-rr2f-4wrm-h6rg for the canonical advisory.

Workarounds

  • Limit concurrent connections to Algernon at the reverse proxy or load balancer until upgrade is possible
  • Restrict access to Lua-handled routes through network ACLs or authentication front-ends
  • Disable Lua handler functionality if it is not required for the deployment

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechAlgernon

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-362
  • Technical References
  • GitHub Issue #172

  • GitHub Security Advisory GHSA-rr2f-4wrm-h6rg
  • Related CVEs
  • CVE-2026-46430: Algernon Web Server DoS Vulnerability

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

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

  • CVE-2026-48126: 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