Skip to main content

Algernon EUVDEUVD-2026-31863

| CVE-2026-43982 HIGH
Path Traversal (CWE-22)
2026-05-26 GitHub_M
8.7
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 Lua upload endpoint
  2. Delivery
    Craft multipart upload with traversal directory
  3. Exploit
    Submit POST to vulnerable handler
  4. Execution
    filepath.Join resolves outside web root
  5. Persist
    Server writes attacker file to arbitrary path
  6. Impact
    Overwritten file triggers code execution or persistence

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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

Exploitation Conditions

The Algernon instance must serve a Lua handler that invokes uploadedFileSaveIn() with a directory argument derived from untrusted request data; if every Lua script hard-codes the destination, the bug is not reachable from the network. When that condition is met, no authentication, user interaction, or special CVSS attack requirements apply (PR:N/UI:N/AT:N), and exploitation works against default builds prior to 1.17.6. Practical impact is further bounded by the filesystem permissions of the Algernon process - writes only succeed where that user has write access - and the bug yields file write rather than direct code execution, so weaponization depends on a writable sensitive path being present on the target host.

Impact

Signals are mixed and warrant a moderate rather than urgent priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates a network-reachable, low-complexity, unauthenticated bug, and SSVC marks it automatable with partial technical impact - consistent with a scriptable file-write primitive. However, EPSS is 0.05% (14th percentile) and no public exploit has been identified, suggesting limited attacker interest so far. A key caveat: exploitation requires that a server-side Lua script actually invoke uploadedFileSaveIn() with attacker-influenced directory input, which is a deployment-specific condition the CVSS vector does not capture, so the practical attack surface is narrower than AV:N/PR:N alone implies. The vector also scores VI:H but VC:N/VA:N, correctly reflecting an integrity-only (arbitrary file write) impact rather than direct RCE or data disclosure.

Exploit ScenarioDerived

An attacker sends an HTTP upload request to an Algernon-hosted application whose Lua handler passes the user-supplied directory parameter into uploadedFileSaveIn(); by setting the directory to something like ../../../tmp or ../../etc/cron.d, the attacker writes attacker-controlled file contents to an arbitrary filesystem location writable by the server process. Depending on the target path, this can be escalated to code execution (e.g. dropping a cron job, overwriting a script loaded by another service, or planting a web shell in a sibling document root). No public PoC has been published, but the bug is straightforward to reproduce against any Lua endpoint that forwards client input as the destination directory.

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

Path traversal in Algernon web server versions prior to 1.17.6 allows remote unauthenticated attackers to write uploaded files outside the intended directory by supplying a directory parameter containing ../ sequences. The flaw in uploadedFileSaveIn() within lua/upload/upload.go fails to validate the joined path after filepath.Join(), so a value like ../../../tmp resolves to /tmp on the host. No public exploit identified at time of analysis, and EPSS is very low (0.05%), but CISA SSVC flags the issue as automatable with partial technical impact.

RemediationAI

Upgrade to Algernon 1.17.6 or later, which is the vendor-released patch that adds boundary validation after the filepath.Join() in uploadedFileSaveIn(); see the advisory at https://github.com/xyproto/algernon/security/advisories/GHSA-2j2c-pv62-mmcp. Until the upgrade is deployed, audit any Lua handlers that call uploadedFileSaveIn() and hard-code or sanitize the directory argument so it cannot be influenced by request data - rejecting inputs containing '..' or non-ASCII path separators, or computing filepath.Rel against the intended root and refusing results that begin with '..'. As a deployment-level compensating control, run the Algernon process under a dedicated unprivileged user with a restricted filesystem view (chroot, containers with read-only mounts, or systemd ProtectSystem/ReadOnlyPaths), accepting the trade-off that legitimate upload targets outside the web root will also be blocked.

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 developed by xyproto that embeds a Lua scripting environment for dynamic content. The vulnerable code path is the Lua-exposed uploadedFileSaveIn() helper in lua/upload/upload.go, which constructs a destination path using Go's filepath.Join(). filepath.Join() canonicalizes ../ segments but does not constrain the result to a base directory - a well-known CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) pitfall in Go file-handling code. Because no boundary check (e.g. comparing the cleaned path against a trusted prefix or using filepath.Rel) is performed before writing, a caller-controlled directory argument can escape the web root entirely.

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.7 HIGH
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

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

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
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.7 (HIGH)
CVE Published
May 26, 2026 - 16:30 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Algernon is a small self-contained pure-Go web server. Prior to 1.17.6, uploadedFileSaveIn() in lua/upload/upload.go uses filepath.Join() with the caller-supplied directory but performs no boundary check after joining. A directory of ../../../tmp resolves cleanly to /tmp, outside the web root. This vulnerability is fixed in 1.17.6.

Executive ViewAI

Why It Matters

Algernon web server versions below 1.17.6 contain an unauthenticated path traversal flaw that enables remote file writes outside the configured upload directory, creating exposure for code injection, malware deployment, or unauthorized system modification. The vulnerability requires no authentication and affects any exposed Algernon deployment. Organizations should prioritize upgrading to version 1.17.6 immediately to eliminate this attack vector.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Data Quality
6 sources
Confidence: High

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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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