Skip to main content

openNDS EUVDEUVD-2026-67361

| CVE-2026-38821 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-08-28 mitre GHSA-rm65-3jj4-3vcm
7.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Join captive portal network unauthenticated
  2. Delivery
    Send crafted HTTP request with query string dense in percent-encodable characters
  3. Exploit
    URL encoding in redirect_to_splashpage expands data beyond QUERYMAXLEN heap buffer
  4. Execution
    Heap overflow corrupts adjacent allocations
  5. Impact
    Crash openNDS daemon (DoS) or control execution flow for RCE

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

The attacker must be connected to the adjacent captive portal network - physically or via Wi-Fi on the segment where openNDS is serving portal redirects - but need not be authenticated through the portal. No credentials or elevated privileges are required (PR:N per CVSS vector). The vulnerable code path activates during the normal captive portal redirect flow when openNDS intercepts an HTTP request from an uncaptured client; no non-default configuration or special feature flag is needed beyond the captive portal daemon being active. Exploitation is bounded by the adjacent network vector (AV:A), preventing direct internet-based attacks. Reliable remote code execution is further limited by high attack complexity (AC:H), as it requires heap layout control beyond a straightforward overflow write; daemon crash (DoS) is the more readily achievable outcome and does not require this additional step.

Impact

The provided CVSS 3.1 vector AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L scores 7.1 (High). The adjacent attack vector (AV:A) restricts exploitation to attackers already connected to the captive portal network segment - a meaningful constraint that eliminates direct internet-based attacks. However, captive portals are by design accessible to the general public in hotels, airports, and cafes, which substantially reduces the practical barrier to reaching the attack surface. The A:L (low availability) rating is in tension with the description's explicit mention of daemon crash as the primary impact; this may assume daemon auto-restart behavior, which defenders should verify in their deployment. No EPSS score or CISA KEV listing was provided, so exploitation probability and confirmed in-the-wild use are unknown. High attack complexity (AC:H) means reliable RCE - as opposed to the more straightforwardly achievable DoS - requires heap layout manipulation not easily automated, reducing mass-exploitation risk. The DoS path is the more reliable and lower-complexity outcome and represents the primary operational risk for most deployments.

Exploit ScenarioDerived

An unauthenticated attacker who has joined a public Wi-Fi network protected by openNDS - such as a guest in a hotel lobby - sends a crafted HTTP request whose query string contains a high density of characters requiring percent-encoding, causing the URL-encoded representation to exceed the QUERYMAXLEN-sized heap buffer allocated in redirect_to_splashpage. The resulting heap overflow either crashes the openNDS daemon immediately (reliable DoS), or - with additional heap grooming to control adjacent memory - redirects execution to attacker-controlled code running as the openNDS process user.

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

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

Alert me

AnalysisAIv1 – Aug 28, 2026

Heap-based buffer overflow in openNDS before 11.0.0 allows an unauthenticated attacker positioned on the captive portal network to crash the openNDS daemon and potentially execute arbitrary code remotely. The flaw is in the redirect_to_splashpage function in http_microhttpd.c, where the query string buffer is under-allocated at QUERYMAXLEN bytes despite URL encoding expanding input by up to 1.5x - when a crafted request triggers the redirect path, the encoded data overflows the heap allocation. No public exploit identified at time of analysis, though the upstream fix commit is publicly available and exposes the exact vulnerable code path.

RemediationAI

Upgrade openNDS to version 11.0.0 or later, which incorporates the fix from commit 3b5f7ef40cd048826d3c4a16f61a73a1768fd5a9 correcting the ENC_QUERYSTR buffer allocation in redirect_to_splashpage; the patch is available at https://github.com/openNDS/openNDS/commit/3b5f7ef40cd048826d3c4a16f61a73a1768fd5a9. For deployments that cannot immediately upgrade, restrict access to the captive portal network segment to trusted or controlled client populations where feasible - note that this trades off the open guest-access use case against exploit exposure. Rate-limiting HTTP connections from captive portal clients to the openNDS daemon port may reduce crash frequency but will not eliminate the vulnerability. Disabling the captive portal redirect functionality entirely removes the attack surface but also removes guest authentication capability entirely. No vendor-issued advisory beyond the upstream commit was available in the provided references.

Affected VersionsENISA

openNDS 0 <11.0.0

Affected Packages

euvd opennds fix: 11.0.0

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

openNDS is an open-source captive portal daemon commonly deployed on OpenWrt-based routers and embedded networking hardware to provide authenticated guest network access. The vulnerable code is in the redirect_to_splashpage function in http_microhttpd.c, which handles HTTP interception and redirection for unauthenticated captive portal clients. The root cause (CWE-122: Heap-based Buffer Overflow) is a buffer sizing arithmetic error: the querystr buffer was allocated via safe_calloc(QUERYMAXLEN), but the ENC_QUERYSTR constant - intended to represent the maximum size of the URL-percent-encoded query string - was defined as QUERYMAXLEN * 1.333, which was insufficient. URL percent-encoding can expand input to up to 3x per special character in pathological cases, and the 1.333 multiplier proved inadequate. The fix in commit 3b5f7ef raises ENC_QUERYSTR to QUERYMAXLEN * 1.5 and changes the allocation call to safe_calloc(ENC_QUERYSTR). The affected CPE is cpe:2.3:a:opennds:opennds:*:*:*:*:*:*:*:* covering all versions before 11.0.0.

Know when Opennds 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 (mitre) PRIMARY 7.1 HIGH
AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
vuln.today AI 7.5 HIGH

AV:A retained for captive portal adjacency; A:H corrects the provided A:L since daemon crash constitutes full availability loss regardless of restart behavior; AC:H retained as reliable RCE requires heap layout control.

3.1 AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:A/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch available
Aug 28, 2026 - 04:16 EUVD
CVE Published
Aug 28, 2026 - 00:10 cve.org
HIGH 7.1

DescriptionCVE.org

A heap-based buffer overflow vulnerability exists in openNDS before 11.0.0 that allows an unauthenticated attacker on the captive portal network to crash the openNDS daemon (denial of service) and potentially achieve remote code execution. This is in http_microhttpd.c.

Executive ViewAI

Why It Matters

OpenNDS captive portal gateway versions before 11.0.0 contain a heap-based buffer overflow that allows unauthenticated attackers positioned on the portal network to crash the service or execute arbitrary code. Organizations deploying openNDS for guest or captive portal authentication face immediate risk of service compromise or denial without vendor-supplied fixes. The absence of available patches creates urgent need for interim risk mitigation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement network segmentation to restrict unauthorized access to the captive portal gateway; deploy enhanced monitoring and alerting for daemon crashes or abnormal process behavior; consider disabling the captive portal service if operationally feasible; configure request-size limits and protocol validation on upstream network appliances if available; maintain incident response procedures for rapid gateway isolation or failover.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche captive portal daemon, primarily OpenWrt and embedded router deployments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.2%
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
Controlled
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Related Vulnerabilities in openNDS Memory and Command Injection Flaws

View all 4

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