CVE-2026-45770
largeLua sandbox escape in Suricata 8.0 via excessive flow variable registration
Suricata versions 8.0.0 through before 8.0.5 contain a flaw (CWE-693 protection mechanism failure, CWE-787 out-of-bounds write) in which a Lua detection rule that registers too many flow variables corrupts Lua detection state and can allow bypass of Suricata's restricted Lua sandbox. The condition only arises when an affected Lua script/rule is loaded, and the excessive flow-variable registration — potentially driven by traffic matching such rules — can also crash the Suricata engine. An attacker who triggers the condition gains a bypass of the Lua sandbox's restrictions, scored as a high integrity impact (no confidentiality impact per the CVSS vector), with crash-related availability risk as a secondary effect. Only deployments running Suricata 8.0.0–8.0.4 with Lua rules enabled are affected; users of other versions or without Lua rules are not exposed. There is currently no known exploitation, no public proof-of-concept, and the issue is not listed in CISA KEV; the fix is available in Suricata 8.0.5.
What to do: Upgrade Suricata to version 8.0.5, which contains the fix. Where upgrading is not immediately possible, disable 'security.lua.allow-rules' unless Lua rules are required, and audit any loaded Lua rules for excessive flow-variable registration while monitoring for crashes or unexpected Lua state behavior.
| OISF (Open Information Security Foundation) Suricata | 8.0.0 up to but not including 8.0.5, when a Lua rule/script is loaded (Lua rule support enabled) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine. Starting in version 8.0.0 and prior to version 8.0.5, a Lua rule that registers too many flow variables can corrupt Lua detection state and may bypass Suricata's restricted Lua sandbox. This requires an affected Lua script/rule to be loaded. Excessive flow variables being registered may also cause Suricata to crash. Version 8.0.5 contains a fix. As a workaround, disable `security.lua.allow-rules` unless Lua rules are required.
- Weakness
- CWE-693, CWE-787
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
In the news0 stories
No ingested article mentions this CVE yet.