{"affected":[{"defaultStatus":"unaffected","ecosystem":"github","packageName":"openresty/stream-lua-nginx-module","product":"stream-lua-nginx-module","source":"CNA: VulnCheck","vendor":"openresty","versions":[{"lessThan":"0.0.20rc4","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-136412","cwes":["CWE-416"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":9.2,"severity":"critical","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":8.1,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795545948399,"publishedAt":1795545948399,"references":[{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6a"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/openresty/stream-lua-nginx-module/tree/v0.0.20rc4"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/openresty/stream-lua-nginx-module/blob/7581c68b43e1645bffe0d7262b1f4230d9698a6a/src/ngx_stream_lua_socket_tcp.c#L5801"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/openresty-stream-lua-nginx-module-before-0.0-20rc4-use-after-free-via-cosocket-receiveuntil"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/openresty/stream-lua-nginx-module/commit/9591e20ab754e78437b7519053ff496aca25f531"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/openresty/stream-lua-nginx-module/commit/7581c68b43e1645bffe0d7262b1f4230d9698a6a"}],"revision":"93fbad475ffafd6322edd508b447f6608332f7b2347e00a034054291271f7559","sources":[{"modifiedAt":1795545948399,"name":"CNA: VulnCheck","retrievedAt":1795547540402,"url":"https://www.cve.org/CVERecord?id=CVE-2026-136412"}],"ssvc":null,"status":"published","title":"OpenResty stream-lua-nginx-module before 0.0.20rc4 Use-After-Free via cosocket receiveuntil()","updatedAt":1795547540402}