Back Redpacketsecurity CVE Alert: CVE-2026-136412 – openresty – stream-lua-nginx
OpenResty stream-lua-nginx-module before 0.0.20rc4 contains a use-after-free vulnerability that allows remote peers to trigger access to freed memory when a receiveuntil() pattern iterator is garbage-collected while still referenced by the socket. Attackers can interrupt or close the cosocket connection so later reads or socket closure use the stale pattern pointer, crashing or corrupting the nginx worker.
Prioritise reachable deployments for prompt remediation; the supplied data does not establish whether exploitation is active or widespread.
A successful attack could disrupt proxy workers or compromise data and processing handled within them. Repeated worker failures may also degrade service availability, especially where the affected code handles public traffic.
### Most likely attack path
A remote peer needs no account or user interaction, but exploitation depends on a specific runtime condition, making it less straightforward than a routine request-based attack. An attacker would target a network-accessible stream service using the vulnerable socket-handling path; the stated scope suggests effects remain within the affected component, with no indicated direct lateral movement.
### Who is most exposed
The main concern is internet-facing OpenResty stream proxies or gateways whose Lua scripts use cosockets and the relevant iterator functionality. Exposure depends on actual configuration and code paths, which are not provided.
Correlate worker crashes or restarts with abrupt client disconnects.
Review core dumps and memory-safety diagnostics for stale-pointer errors.
Look for unusual connection closures followed by reads on the same session.
Identify deployed configurations and Lua scripts using the relevant socket pattern.
### Mitigation and prioritisation
Upgrade to the fixed release or later; verify the module actually bundled or loaded at runtime.
Where patching is delayed, disable or refactor affected iterator use and restrict access to exposed stream listeners.
Test custom Lua scripts and proxy behaviour in staging before rollout; monitor worker stability after deployment.
KEV, SSVC, PoC and EPSS status are not supplied, so exploitation likelihood and urgency cannot be independently assessed.
A considerable amount of time and effort goes into maintaining this website, creating backend automation and creating new features and content for you to make actionable intelligence decisions. Everyone that supports the site helps enable new functionality.
If you like the site, please support us on Patreon or Buy Me A Coffee using the buttons below.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
