lwIP flaws: how attackers could take over devices through their networking code
ShiniFrontiers · Source: CISA
What happened, and are you exposed?
Do you build or run network-connected equipment? Some of it may contain lwIP, networking code with three serious flaws. Device makers: add the fixes and ship new firmware; equipment owners: ask your suppliers and keep devices off the internet. The catch: each device stays exposed until its maker ships an update.
What it is: Three CISA advisories (22 Sep and 6 Oct 2026) about lwIP ("Lightweight IP"), networking code published in a public repository that device makers build into their products so they can talk over a network. The flaws sit in its core, in the part that sends device messages (MQTT, a messaging method for connected devices) and in the part that sends email (SMTP). CISA lists lwIP as deployed worldwide, in sectors including energy, water, manufacturing, healthcare and transport.
Who it's for: Companies that build connected devices, who must add the fixes; and companies that run such equipment, who depend on those makers for updates.
The catch: CISA names no affected product, so owners must ask their suppliers whether lwIP is inside. The fixes are code changes, not a new release, so nothing changes on a device until its maker ships new firmware.
A. A flaw inside the code you ship — for companies that build connected devices
Problem: lwIP versions 2.0.1 to 2.2.1 have three flaws. In the device-message and email parts, a crafted message can make the code write outside its memory — crashing the device or letting an attacker run their own code on it, from the network with no login. The core flaw works only from the same local network.
What fixes it: The fixes are published as specific code changes in lwIP's repository. Each maker must pull them in, rebuild its firmware and ship it to customers.
B. Equipment that may carry the flaw without saying so — for companies that run connected equipment
Problem: lwIP sits inside a device's software, so the company that owns the device cannot update it directly — and CISA names no affected brands.
What fixes it: Until its supplier ships a fix, CISA's advice is to keep such equipment off the internet, behind firewalls and separate from the business network, with secure remote access only.
the built-in software that runs a device
Firmware is the software a maker installs inside a device — a sensor, a router, a meter — to make it work. Unlike apps on a laptop, its owner usually cannot change pieces of it; the maker releases a whole new version, which the owner then installs. That is why a flaw in firmware stays until the maker ships an update.
THINK OF IT ASThe wiring inside a sealed appliance: only the manufacturer can rework it.
Read the lesson →a lightweight way for connected devices to send messages
MQTT is a simple messaging method widely used by connected devices. A device publishes short messages, such as a reading or an alarm, to a central message server, and other systems receive the ones they subscribe to. Its small size suits devices with little memory and power. The device-side code that sends and receives these messages is called an MQTT client.
THINK OF IT ASA noticeboard: devices pin up short notes, and anyone who follows a topic gets a copy.
Read the lesson →a filter that decides which network traffic is let through
A firewall checks each piece of network traffic against a list of rules and lets it pass or blocks it. Rules can say which addresses, ports or services are allowed. Firewalls often sit on the router itself, between a business's network and the internet. Blocking a service at the firewall means outsiders cannot reach it at all.
THINK OF IT ASLike a gatekeeper with a guest list who turns away anyone not on it.
Read the lesson →How an attack could unfold
| What the attacker does | What happens | What the attacker gains |
|---|---|---|
| 1. Find the device: looks for the utility's pump-station sensors reachable from outside | A sensor reachable from the internet can be sent messages by anyone | A direct line to the sensor's networking code |
| 2. Send a crafted message: targets the sensor's device-message or email code | The code writes outside its memory, crashing the sensor or running the attacker's instructions | Control of the sensor, or a sensor knocked offline |
| 3. Go further inside: from a machine on the plant's local network, triggers the core flaw | This flaw works only from the same local network, not from the internet | A crash, or memory damage that can let the attacker run code |
Illustrative attack on an invented water utility; each step follows CISA's description of the three flaws. CISA names no affected product and, for two flaws, no attacks. Section 2 walks through each step.
- What it saves
Equipment kept off the internet and away from the business network cannot be reached by the two flaws that work from outside.
- What it costs
Makers: engineering time to add the fixes, test and ship firmware. Owners: time to question suppliers and change network layout.
- How ready
- In production use
Fixes published as code changes in September and October 2026. No attacks reported for two flaws; the email flaw has public proof-of-concept details.
Join free to unlock: how it works, a step-by-step setup with its costs, what you gain, and where it falls short, for every Friday idea.
Join free to read it all →