# CVE-2026-136412: OpenResty stream-lua-nginx-module before 0.0.20rc4 Use-After-Free via cosocket receiveuntil()

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2026-11-24T18:45:48.399Z
- Modified: 2026-11-30T19:17:52.670Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- openresty stream-lua-nginx-module: before 0.0.20rc4

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-136412](https://www.cve.org/CVERecord?id=CVE-2026-136412), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-136412](https://nvd.nist.gov/vuln/detail/CVE-2026-136412), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-136412 · Whole record: https://cve.day/CVE-2026-136412.json · Rebuilt by cve.day 2026-11-30T19:32:15.480Z
