CVE-2026-136412
OpenResty stream-lua-nginx-module before 0.0.20rc4 Use-After-Free via cosocket receiveuntil()
Critical · 9.2Fix available
- CVSS
- 9.2
- EPSS
- 0.95% (p60)
- Published
- 2026-11-24
- Age
- 4d old
- Modified
- 2026-11-24
- Product
- openresty stream-lua-nginx-module
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
Description
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.
Fixed in
0.0.20rc4
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | stream-lua-nginx-module | >=0, <0.0.20rc4 | 0.0.20rc4 |
Sources
- NVD · first seen 4d ago · NVD terms of use
- OSV · first seen 4d ago · CC-BY 4.0
- CVE List · first seen 4d ago · CVE Terms of Use
References
- https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531 patch
- https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6a patch
- https://github.com/openresty/stream-lua-nginx-module/tree/v0.0.20rc4 release-notes
- https://github.com/openresty/stream-lua-nginx-module/blob/7581c68b43e1645bffe0d7262b1f4230d9698a6a/src/ngx_stream_lua_socket_tcp.c#L5801 technical-description
- https://www.vulncheck.com/advisories/openresty-stream-lua-nginx-module-before-0.0-20rc4-use-after-free-via-cosocket-receiveuntil third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136412.json advisory
- https://github.com/openresty/stream-lua-nginx-module package
- https://nvd.nist.gov/vuln/detail/CVE-2026-136412 advisory