# CVE-2026-136412

Use-after-free in OpenResty stream-lua-nginx-module allows remote crash/memory corruption.

- Page: https://www.vulneraibility.com/cve/CVE-2026-136412
- CVSS: 9.2
- Known exploited: not in CISA KEV as of our last sync
- Weakness: CWE-416
- Published: 2026-11-24

## Affected versions

- openresty stream-lua-nginx-module: affected < 0.0.20rc4

A version outside these ranges is not a statement that it is unaffected.

## Impact

Remote attacker can force a use-after-free via cosocket receiveuntil(), causing nginx worker crash or memory corruption (remote DoS; potential for RCE in some cases).

## Action

Immediate action required

## Recommendation

Upgrade to v0.0.20rc4 or later and restart workers; restrict untrusted access to stream sockets.

## References

- [patch] https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531
- [patch] https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6a
- [other] https://github.com/openresty/stream-lua-nginx-module/tree/v0.0.20rc4
- [other] https://github.com/openresty/stream-lua-nginx-module/blob/7581c68b43e1645bffe0d7262b1f4230d9698a6a/src/ngx_stream_lua_socket_tcp.c#L5801
- [advisory] https://www.vulncheck.com/advisories/openresty-stream-lua-nginx-module-before-0.0-20rc4-use-after-free-via-cosocket-receiveuntil

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
