Skip to main content

lwIP CVE-2026-8836

| EUVDEUVD-2026-30793 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-05-18 VulDB GHSA-3w8m-3w76-f6mh
8.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Send crafted SNMPv3 packet to UDP port 161
  2. Delivery
    snmp_parse_inbound_frame() reads attacker-controlled tlv.value_len
  3. Exploit
    Disabled bounds assertion allows oversized copy into stack buffer
  4. Execution
    Return address overwritten on stack
  5. Impact
    Arbitrary code executed in SNMP task context

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack 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

Exploitation requires that the target device runs lwIP compiled with SNMP and SNMPv3 USM support explicitly enabled - SNMP is not part of the minimal default lwIP build and must be opted into at compile time via build flags. The SNMP service must be network-reachable on UDP port 161. No authentication credentials are required: the overflow is triggered during initial TLV parsing in snmp_parse_inbound_frame() before any authentication verification occurs, meaning an attacker with no valid SNMPv3 user credentials can trigger the condition. Devices using only SNMPv1 or SNMPv2c, or those with SNMP disabled entirely, are not affected by this vulnerability. Exploitation is bounded to lwIP versions 2.1.0 through 2.2.1.

Impact

The risk profile presents a notable tension between high theoretical severity and low observed exploitation probability. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) and SSVC classification of automatable with total technical impact indicate that mass-scanning exploit tooling could realistically be developed; the attack requires no credentials and no special network position beyond UDP reachability. However, EPSS sits at 0.24% (47th percentile) - strikingly low relative to these severity signals - and SSVC records current exploitation status as none, consistent with the absence of a CISA KEV listing. This discrepancy most likely reflects deployment context: SNMPv3 must be explicitly compiled into lwIP builds, embedded firmware updates are notoriously difficult to distribute at scale, and the affected product universe skews toward IoT and industrial control devices rather than internet-facing servers, suppressing mass-exploitation statistics even when vulnerability severity is high. Proof-of-concept code existence (E:P in CVSS 4.0) raises the threat trajectory considerably; defenders should not treat the low EPSS as a reliable deprioritization signal given the automation potential confirmed by SSVC. Organizations managing embedded network equipment or industrial controllers built on lwIP should treat this as urgent regardless of current exploitation indicators.

Exploit ScenarioDerived

A remote unauthenticated attacker sends a malformed SNMPv3 packet to UDP port 161 on a target device running a vulnerable lwIP build, embedding a msgAuthenticationParameters field whose TLV length exceeds SNMP_V3_MAX_AUTH_PARAM_LENGTH. The missing bounds check causes snmp_parse_inbound_frame() to overflow a fixed stack buffer, overwriting saved return addresses or control data to redirect execution. With proof-of-concept code already in existence, this attack could be scripted and automated against a network range of embedded devices with minimal attacker skill.

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

AnalysisAIv2 – Aug 22, 2026

Stack-based buffer overflow in lwIP's SNMPv3 USM handler exposes embedded and IoT devices running versions 2.1.0 through 2.2.1 to remote unauthenticated code execution. The flaw in snmp_parse_inbound_frame() allowed an attacker-controlled msgAuthenticationParameters TLV length to be used directly in a stack buffer copy without bounds validation - a protective assertion had been explicitly commented out in the codebase. With CVSS 4.0 scoring 8.9, SSVC classifying the attack as automatable with total technical impact, and proof-of-concept code in existence (E:P), this is a high-priority remediation target for any network-accessible lwIP deployment with SNMPv3 enabled; no CISA KEV listing has occurred at time of analysis.

Earlier versions of this analysis (1)
v1 May 18, 2026 - 19:30 CVSS 9.3

Stack-based buffer overflow in lwIP through 2.2.1 enables remote unauthenticated attackers to corrupt stack memory in the SNMPv3 USM handler by sending a crafted msgAuthenticationParameters field to snmp_parse_inbound_frame in src/apps/snmp/snmp_msg.c. The flaw stems from a commented-out length assertion that allowed user-controlled TLV value lengths to exceed SNMP_V3_MAX_AUTH_PARAM_LENGTH during decoding. No public exploit identified at time of analysis, but the CVSS 4.0 score of 9.3 reflects network-reachable, no-privilege, no-interaction exploitation against a library widely embedded in IoT and embedded TCP/IP stacks.

RemediationAI

Apply upstream patch commit 0c957ec03054eb6c8205e9c9d1d05d90ada3898c, available at https://github.com/lwip-tcpip/lwip/commit/0c957ec03054eb6c8205e9c9d1d05d90ada3898c and https://cgit.git.savannah.gnu.org/cgit/lwip.git/commit/?id=0c957ec03054eb6c8205e9c9d1d05d90ada3898c. No specific patched release version number has been independently confirmed - the fix exists as a commit to the upstream repository only; downstream device vendors must integrate it and issue updated firmware, making direct patch application unavailable for most end users. Ubuntu users should apply the package update per USN-8423-1. Where immediate patching is not feasible, disable SNMP and SNMPv3 at compile time by omitting LWIP_SNMP and SNMP_V3 build flags, which eliminates the entire attack surface but removes SNMP-based management capability. As a network-level compensating control, restrict inbound UDP port 161 access to trusted management hosts using firewall ACLs; this does not prevent exploitation from within the allowed segment but significantly reduces external exposure. If SNMPv3 is not operationally required, downgrading to SNMPv1 or SNMPv2c bypasses the vulnerable USM code path, trading the USM vulnerability for the weaker security properties of those protocol versions.

Affected VersionsENISA

lwIP 2.1.0
lwIP 2.1.2
lwIP 2.1.1
lwIP 2.2.0
lwIP 2.2.1
lwIP 2.1.3

Affected Packages

euvd lwip no fix

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

lwIP is an open-source, resource-constrained TCP/IP stack widely embedded in RTOS environments such as FreeRTOS and Zephyr, maintained under the GNU Savannah project. The vulnerable code resides in src/apps/snmp/snmp_msg.c within snmp_parse_inbound_frame(), which processes incoming SNMPv3 User-based Security Model (USM) authentication frames. CWE-121 (Stack-based Buffer Overflow) identifies the root cause: the TLV field length tlv.value_len, supplied by the remote peer in the msgAuthenticationParameters field, was used as the copy length into a fixed-size stack buffer without first being bounded to SNMP_V3_MAX_AUTH_PARAM_LENGTH. The patch commit 0c957ec reveals that a protective assertion (IF_PARSE_ASSERT) had been commented out and the copy used the unconstrained attacker-supplied value; the fix re-enables the assertion and replaces tlv.value_len with the constant maximum in the copy call. Affected CPE: cpe:2.3:a:n/a:lwip:*:*:*:*:*:*:*:*, spanning versions 2.1.0 through 2.2.1.

Know when Lwip 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 (VulDB) PRIMARY 8.9 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
vuln.today AI 9.8 CRITICAL

Overflow triggered during pre-authentication parsing so no privileges required; unchecked network input into a stack buffer yields full system compromise with no scope change to other systems.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

4
Analysis Updated
Aug 22, 2026 - 09:30 vuln.today
v2 - CVSS changed
Severity Changed
Aug 22, 2026 - 09:22 NVD
CRITICAL HIGH
CVSS changed
Aug 22, 2026 - 09:22 NVD
9.3 (CRITICAL) 8.9 (HIGH)
CVSS changed
May 18, 2026 - 19:22 NVD
9.8 (CRITICAL) 9.3 (CRITICAL)

DescriptionCVE.org

A vulnerability was found in lwIP up to 2.2.1. Affected is the function snmp_parse_inbound_frame of the file src/apps/snmp/snmp_msg.c of the component snmpv3 USM Handler. Performing a manipulation of the argument msgAuthenticationParameters results in stack-based buffer overflow. The attack may be initiated remotely. The patch is named 0c957ec03054eb6c8205e9c9d1d05d90ada3898c. It is suggested to install a patch to address this issue.

Executive ViewAI

Why It Matters

lwIP network stack versions 2.1.0-2.2.1 are vulnerable to remote unauthenticated code execution in their SNMP management interface, with publicly available exploit code already circulating. Any embedded device or IoT system running these versions with network-accessible SNMP can be directly compromised without authentication or user interaction. This affects industrial equipment, network appliances, and connected devices across operational technology and IoT environments.

Business Impact: High
Compensating Controls

Apply vendor patch for lwIP versions 2.1.0-2.2.1. Until patching is complete, disable SNMP service on network-accessible systems or implement network segmentation restricting SNMP access to trusted management networks only.

Threat Intelligence Overview

EPSS Score
0.2%
Top 53% exploitable
Prevalence
Medium
widely embedded in IoT and RTOS firmware, but SNMP component is optional
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

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

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 stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

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