Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

OpenResty Stream Lua Use-After-Free (CVE-2026-136412)

CVE-2026-136412 is a use-after-free flaw (CWE-416) in OpenResty's stream-lua-nginx-module before 0.0.20rc4.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-136412
Vendor
OpenResty
Affected Product
stream-lua-nginx-module
Exploitation
Not confirmed
Published
2026-11-24

The CVE record says a remote peer can disrupt a cosocket connection while a receiveuntil() pattern iterator remains associated with its socket. Later reads or socket closure may access freed memory, crashing or corrupting the nginx worker.The affected component is OpenResty's stream Lua module, not a general NGINX core flaw. Worker memory corruption is a serious outcome, but the cited record does not establish reliable remote code execution.

What it allows

How Can CVE-2026-136412 Affect a Stream Lua Worker?

According to the CVE record, receiveuntil() can leave a pattern iterator linked to a cosocket after the iterator is garbage-collected. A remote peer may interrupt or close the connection. A subsequent read or socket cleanup can then follow a stale pointer and access freed memory.

The described result is an nginx worker crash or memory corruption. This requires an application path that uses the affected stream Lua module and cosocket pattern iterator, so version and configuration matter more than the product name alone. Review worker crashes and related stream Lua error logs around interrupted connections as a defensive investigation step, not as a validated detection signature.

In the GitHub search captured for this assignment on 25 November 2026, one public repository named CVE-2026-136412. The unit is a repository name match, not a verified proof of concept or an observed attack. CISA's KEV catalog snapshot dated 24 November 2026 did not list this CVE.

Use Vulnerability Intelligence to put the CVE in a wider prioritization workflow. The immediate decision is whether a deployed stream Lua module is older than the corrected version and handles this connection pattern.

Who is affected

Which OpenResty Stream Lua Versions Are Affected?

The CNA record identifies OpenResty's stream-lua-nginx-module before 0.0.20rc4 as affected. It does not say that every NGINX installation is affected. Exposure depends on the module actually being present and application code using the relevant cosocket receiveuntil() path.

Inventory the module version in each deployed OpenResty build, including bundled or custom builds. Compare the running module with 0.0.20rc4 and confirm whether the correction is present in your distribution. The CNA uses a custom version range, so check the module and packaged fix manually rather than treating an unrelated NGINX version as proof of remediation. Record the result in your vulnerability management workflow.

Timeline

  1. 2026-11-17

    The VulnCheck CNA record gives this as its public disclosure date for the flaw.

  2. 2026-11-24

    The CVE record was published with the affected version boundary and CVSS 4.0 and 3.1 scores.

What to do

  1. Identify affected deployments

    Find deployments that include stream-lua-nginx-module before 0.0.20rc4 and use cosocket receiveuntil() in stream processing. Prioritize reachable services where peers can interrupt the connection.

  2. Update the module and verify the running build

    Move to stream-lua-nginx-module 0.0.20rc4 or a later build containing the correction. After deployment, confirm the module version or packaged patch in the running OpenResty build; follow your patch management record.

  3. Reduce exposure during rollout

    If an update is delayed, limit unnecessary access to affected stream services and review whether the vulnerable receiveuntil() path is used. Treat this as temporary risk reduction, not a substitute for the fix.

  4. Investigate worker failures

    Review unusual worker crashes and stream Lua errors associated with interrupted or closed cosocket connections. The cited sources provide no validated exploitation indicator or detection signature.

What Brandefense can do

Frequently Asked Questions

Does CVE-2026-136412 affect NGINX core?

The CNA identifies OpenResty's stream-lua-nginx-module before 0.0.20rc4. It does not identify NGINX core as the vulnerable product; verify whether the module is actually in the deployed build.

What can the flaw do to a worker?

The CVE record describes access to freed memory after a cosocket connection is disrupted. It says the nginx worker may crash or become corrupted; it does not establish reliable remote code execution.

What version should teams verify after updating?

Verify stream-lua-nginx-module 0.0.20rc4 or a later build containing the correction in the running deployment. For bundled distributions, confirm the packaged patch as well as the version label.

Does the GitHub count confirm exploitation?

No. One public repository name matched the CVE in the 25 November 2026 assignment search. A name match does not verify its content or establish an attack against a deployment.

Sources

  1. CVE-2026-136412 RecordCVE Program / VulnCheck CNA
  2. OpenResty stream-lua-nginx-module Use-After-Free AdvisoryVulnCheck
  3. CVE-2026-136412 DetailNIST NVD
  4. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →