Skip to content
DayZeroHub
Critical CVSS 9.2CVE-2026-136412

Use-after-free in OpenResty stream-lua-nginx-module before 0.0.20rc4 (CVE-2026-136412)

openresty stream-lua-nginx-module

Summary

OpenResty stream-lua-nginx-module versions before 0.0.20rc4 contain a use-after-free vulnerability in receiveuntil(). It can crash or corrupt the nginx worker.

What happened

The vulnerability, identified as CVE-2026-136412 (CWE-416), occurs when the pattern iterator returned by receiveuntil() is garbage-collected while the socket still references it. According to the description, a remote peer can interrupt or close the cosocket connection so that later reads or socket closure use a stale pattern pointer. The result is a crash or corruption of the nginx worker.

Why it matters

The CVSS 4.0 score is 9.2 (critical severity), assigned by VulnCheck as CNA, with 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. The attack is network-based and requires no privileges, although with high attack complexity. The vulnerability is not listed in CISA's KEV catalog and the source does not state active exploitation.

Affected products and versions

openresty stream-lua-nginx-module: versions before 0.0.20rc4 (< 0.0.20rc4). The source does not state a fixed version other than the one implied by the range.

ProductVersionsFixed in
openresty stream-lua-nginx-module< 0.0.20rc4—

Action recommended by the source

The source does not include an explicit vendor recommendation. The references link to two fix commits and the v0.0.20rc4 release notes in the OpenResty repository, plus a VulnCheck advisory.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-416

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources