CVE-2026-136412 · openresty / stream-lua-nginx-module
CVE-2026-136412 · Reported 24 Nov 2026
Full advisory details, affected packages, severity context, and original source.
Affected technology
Affected versions and fixes
Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.
openresty / stream-lua-nginx-module · custom
CVE vendor record- affected: All earlier versions · before 0.0.20rc4 (exclusive) · custom
Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.
Repository: https://github.com/openresty/stream-lua-nginx-module
Other versions: unaffected according to the vendor record.
Advisory overview
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.
Related references
- https://github.com/openresty/stream-lua-nginx-module/blob/7581c68b43e1645bffe0d7262b1f4230d9698a6a/src/ngx_stream_lua_socket_tcp.c#L5801
- https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6a
- https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531
- https://github.com/openresty/stream-lua-nginx-module/tree/v0.0.20rc4
- https://www.vulncheck.com/advisories/openresty-stream-lua-nginx-module-before-0.0-20rc4-use-after-free-via-cosocket-receiveuntil
