OpenResty stream-lua-nginx-module before 0.0.20rc4 Use-After-Free via cosocket receiveuntil()
- State
- Published
- Severity
- 9.2 Critical
- Published
- Nov 24, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 24, 2026
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.
| Product | Versions |
|---|---|
| stream-lua-nginx-module openresty | before 0.0.20rc4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.2 Critical | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-416 Use After Free
References
- https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531Patch
- https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6aPatch
- https://github.com/openresty/stream-lua-nginx-module/tree/v0.0.20rc4Release Notes
- https://github.com/openresty/stream-lua-nginx-module/blob/7581c68b43e1645bffe0d7262b1f4230d9698a6a/src/ngx_stream_lua_socket_tcp.c#L5801Technical Details
- VulnCheck Advisory: OpenResty stream-lua-nginx-module before 0.0.20rc4 Use-After-Free via cosocket receiveuntil()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.