Summary
OpenResty stream-lua-nginx-module versions before 0.0.20rc4 contain a use-after-free vulnerability in receiveuntil(). It can crash or corrupt the nginx worker.
What happened
The vulnerability, identified as CVE-2026-136412 (CWE-416), occurs when the pattern iterator returned by receiveuntil() is garbage-collected while the socket still references it. According to the description, a remote peer can interrupt or close the cosocket connection so that later reads or socket closure use a stale pattern pointer. The result is a crash or corruption of the nginx worker.
Why it matters
The CVSS 4.0 score is 9.2 (critical severity), assigned by VulnCheck as CNA, with vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. The attack is network-based and requires no privileges, although with high attack complexity. The vulnerability is not listed in CISA's KEV catalog and the source does not state active exploitation.
Affected products and versions
openresty stream-lua-nginx-module: versions before 0.0.20rc4 (< 0.0.20rc4). The source does not state a fixed version other than the one implied by the range.
| Product | Versions | Fixed in |
|---|---|---|
| openresty stream-lua-nginx-module | < 0.0.20rc4 | — |
Action recommended by the source
The source does not include an explicit vendor recommendation. The references link to two fix commits and the v0.0.20rc4 release notes in the OpenResty repository, plus a VulnCheck advisory.
Sources and references
- https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531 — CVE Program
- https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6a — CVE Program
- https://github.com/openresty/stream-lua-nginx-module/tree/v0.0.20rc4 — CVE Program
- https://github.com/openresty/stream-lua-nginx-module/blob/7581c68b43e1645bffe0d7262b1f4230d9698a6a/src/ngx_stream_lua_socket_tcp.c#L5801 — CVE Program
- https://www.vulncheck.com/advisories/openresty-stream-lua-nginx-module-before-0.0-20rc4-use-after-free-via-cosocket-receiveuntil — CVE Program
Weaknesses (CWE): CWE-416
Relevant change history
Published
Advisory published.