home / blog

2026-11-25 · high

CVE-2026-136412: Use-after-free in OpenResty stream-lua

High severity vulnerability in OpenResty causing freed memory access. Worker crashes and data corruption.

CVE-2026-136412: Use-after-free in OpenResty stream-lua

CVE-2026-136412 is a use-after-free vulnerability in OpenResty stream-lua-nginx-module before version 0.0.20rc4. The vulnerability 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, causing nginx worker crashes or data corruption.

The vulnerability severity is classified as high with a CVSS score of 8.1. It was officially published on November 24, 2026, on the National Vulnerability Database (NVD). Signals on GitHub indicate that public exploits exist for this vulnerability, confirming imminent risk for exposed infrastructures. The high severity combined with available exploits increases the urgency for organizations using the vulnerable component.

As defenders, it is crucial to immediately apply the patch by updating to version 0.0.20rc4 or later of the component. Organizations that cannot immediately apply the patch should isolate the component from external networks and limit access to only trusted systems. Closely monitor nginx worker behavior for anomalies and consider implementing additional controls to detect exploitation attempts.

At a glance

What
Use-after-free vulnerability in OpenResty stream-lua-nginx-module that allows remote peers to trigger access to freed memory when a receiveuntil() pattern iterator is garbage-collected while still referenced by the socket.
Severity
High (CVSS 8.1)
Affected versions
OpenResty stream-lua-nginx-module before version 0.0.20rc4
Fix
Update to version 0.0.20rc4 or later
Status
Published on 11/24/2026 on NVD, exploits reported on GitHub
Action
Immediately apply the patch and avoid exposing the component

Sources: NVD, CVE-2026-136412

← All articles