Skip to main content

Algernon CVE-2026-43981

| EUVDEUVD-2026-31866 HIGH
Race Condition (CWE-362)
2026-05-26 GitHub_M
8.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Algernon instance with Lua handlers
  2. Delivery
    Generate concurrent HTTP request flood
  3. Exploit
    Race condition triggers on shared LState
  4. Execution
    Gopher-lua VM state corrupted
  5. Impact
    Server panic or denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target Algernon instance must be running a version prior to 1.17.6 and must be serving at least one route handled by the Lua engine (engine/luahandler.go code path), since the race exists in LoadCommonFunctions on the shared gopher-lua LState. The attacker must be able to reach the HTTP listener over the network and generate sufficient concurrent request volume to trigger the race - the advisory demonstrates reliability at concurrency level 100, which accounts for the CVSS AC:H rating. No authentication, user interaction, or non-default configuration is otherwise required; deployments using only static file serving (no Lua handlers configured) are not exposed to this specific code path.

Impact

The CVSS 4.0 vector AV:N/AC:H/PR:N/UI:N/VA:H produces a score of 8.2, reflecting a network-reachable, unauthenticated, high-availability impact path with high attack complexity (AC:H) due to the timing/concurrency requirement. EPSS is only 0.04% (12th percentile) and the vulnerability is not on CISA KEV, indicating no observed mass exploitation. There is no confidentiality or integrity impact in the vector (VC:N/VI:N), so this is purely a denial-of-service / availability issue despite the 'Information Disclosure' tag in the source data - that tag appears inconsistent with the CVSS vector and description, which describe VM corruption rather than data leakage. Real-world priority is low-to-moderate: trivial to trigger with a load tester, but limited to crashing or destabilizing the Lua-handling worker rather than enabling code execution or data theft.

Exploit ScenarioDerived

A remote attacker sends a high volume of concurrent HTTP requests to any endpoint served by a Lua handler - the description confirms reproduction with 'ab -n 1000 -c 100' (Apache Bench, 1000 requests at concurrency 100). The concurrent goroutines race on the unprotected L.Push()/L.PCall() calls, corrupting the shared gopher-lua LState and causing the server to crash, panic, or return malformed responses, resulting in denial of service. No authentication or user interaction is required, and no public weaponized exploit is needed beyond a standard HTTP load generator.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Denial of service in Algernon web server versions prior to 1.17.6 stems from a race condition in the Lua handler engine where the sync.RWMutex protecting LoadCommonFunctions is released before L.Push() and L.PCall() execute on the non-goroutine-safe gopher-lua LState. Concurrent HTTP requests corrupt the shared Lua VM state, causing server instability. No public exploit identified at time of analysis, and EPSS is very low (0.04%), but reproduction is trivial under modest load (ab -n 1000 -c 100).

RemediationAI

Vendor-released patch: upgrade Algernon to version 1.17.6 or later, which corrects the mutex scope in engine/luahandler.go so the RWMutex is held across L.Push() and L.PCall() execution. Operators should consult the GHSA-rr2f-4wrm-h6rg advisory at https://github.com/xyproto/algernon/security/advisories/GHSA-rr2f-4wrm-h6rg and the upstream issue at https://github.com/xyproto/algernon/issues/172 for fix details. Where immediate upgrade is not possible, compensating controls include placing Algernon behind a reverse proxy that rate-limits concurrent connections per client (reducing the window for the race but not eliminating it, with the trade-off of degraded throughput for legitimate burst traffic), disabling Lua handler routes if the deployment does not require server-side scripting (eliminates the vulnerable code path but breaks any Lua-driven functionality), or restricting network exposure of the Algernon instance to trusted networks only.

Affected VersionsENISA

algernon < 1.17.6

Affected Packages

euvd algernon fix: 1.17.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Algernon is a self-contained pure-Go web server written by xyproto that embeds gopher-lua for server-side scripting. The flaw is a classic CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization, aka race condition): the engine/luahandler.go file acquires a sync.RWMutex around LoadCommonFunctions but releases it before invoking L.Push() and L.PCall() on the gopher-lua LState. Gopher-lua's LState object is explicitly documented as not goroutine-safe, so simultaneous HTTP request handlers operating on the same LState race on shared internal pointers, stacks, and registries, leading to VM corruption that the Go race detector flags immediately.

Know when Algernon gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.2 HIGH
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

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch available
May 26, 2026 - 18:02 EUVD
CVSS changed
May 26, 2026 - 17:22 NVD
8.2 (HIGH)
CVE Published
May 26, 2026 - 16:31 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Algernon is a small self-contained pure-Go web server. Prior to 1.17.6, in engine/luahandler.go, the sync.RWMutex protecting LoadCommonFunctions is released before L.Push() and L.PCall() execute. Since gopher-lua's LState is explicitly not goroutine-safe, concurrent requests race on the shared state causing Lua VM corruption. The Go race detector confirms this immediately under modest concurrency (ab -n 1000 -c 100). This vulnerability is fixed in 1.17.6.

Executive ViewAI

Why It Matters

Algernon web server versions prior to 1.17.6 contain a denial-of-service vulnerability triggered by concurrent HTTP requests, creating immediate risk of service unavailability for dependent organizations. No public exploit has been identified; however, the vulnerability is trivial to trigger under normal load conditions, necessitating urgent patching to prevent unplanned downtime.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy