Use-after-free in OpenResty stream-lua-nginx-module cosocket receiveuntil()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.
Summary
OpenResty stream-lua-nginx-module from 0 before 0.0.20rc4 contains a use-after-free flaw (CWE-416) where a receiveuntil() pattern iterator is garbage-collected while the socket still references it. A remote peer can interrupt or close the cosocket connection so later reads or socket closure use the stale pattern pointer, crashing or corrupting the nginx worker. The CVSS 4.0 vector indicates no privileges or user interaction are needed over the network.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade OpenResty stream-lua-nginx-module to version 0.0.20rc4 or later. The sources list 0.0.20rc4 as the fixed version and do not list a vendor advisory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA stream-lua-nginx-module (openresty) Fixed in 0.0.20rc4
Timeline
- 2026-11-24 Threatist record created from CVE-2026-136412
- 2026-11-24 Alias added: GHSA-q6cp-77cr-6x4f
- 2026-11-30 CISA SSVC decision points changed
References
Patch 2
More openresty vulnerabilities
- TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
- TI-2024-22074 An issue in OpenResty lua-nginx-module v.0.10.26 and before allows a remote attacker to… CVSS 3.1HIGH 7.7
- TI-2021-05876 A security issue in nginx resolver was identified, which might allow an attacker who is… CVSS 3.1HIGH 7.7
- TI-2018-06684 In OpenResty through 1.13.6.1, URI parameters are obtained using the ngx.req.get_uri_args… CVSS 3.0CRITICAL 9.8
- TI-2026-39910 OpenResty: Buffer overflow when writing PROXY protocol v2 header to upstream CVSS 3.1HIGH 7.5
- TI-2020-09415 An issue was discovered in OpenResty before 1.15.8.4. CVSS 3.1HIGH 7.5
Sources
- CVE-2026-136412 · CVE Program
- CVE-2026-136412 · NVD
- FIRST EPSS
- GHSA-q6cp-77cr-6x4f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences