Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted SNMPv3 packet to UDP port 161
-
Deliverysnmp_parse_inbound_frame() reads attacker-controlled tlv.value_len
-
ExploitDisabled bounds assertion allows oversized copy into stack buffer
-
ExecutionReturn address overwritten on stack
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
An out-of-bounds write in the MQTT client module of the lwIP TCP/IP stack lets an adversary who controls or impersonates
Double-free memory corruption in the lwIP (Lightweight IP) stack's API layer lets an unauthenticated attacker on an adja
An out-of-bounds read in lwIP 2.0.0 through 2.2.1 builds that include the optional SNMP agent lets remote unauthenticate
Stack-based out-of-bounds write in lwIP's mDNS response handler affects lwIP through 2.2.1 when the optional mDNS applic
resolv.c in the DNS resolver in uIP, and dns.c in the DNS resolver in lwIP 1.4.1 and earlier, does not use random values
EUVD-2026-30793
GHSA-3w8m-3w76-f6mh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB