GetPageSpeed security advisory
GPSA-2026-0004: nginx-module-lua, nginx-module-stream-lua: heap use-after-free on aborted requests
Important (source: github.com) · issued 2026-11-12 · updated 2026-11-12 · revision 1
The Lua modules for nginx could read freed memory when a request or stream session ended while a plain Lua coroutine still had a pending timer or cosocket operation. Updated builds carry the upstream fix.
When a request (HTTP module) or session (stream module) is finalized, the Lua modules cancel pending timers and cosocket operations of its threads before the request memory pool is freed. Coroutines created with coroutine.create or coroutine.wrap were skipped, because they hold no Lua registry reference. If such a coroutine was suspended in ngx.sleep or a cosocket call when the client aborted the connection or the handler called ngx.exit, its timer stayed in the nginx timer tree and pointed into freed memory. The next timer pass then read that memory: a heap use-after-free in the worker process, which can crash the worker. Only configurations whose Lua code yields inside a plain coroutine are affected. A remote client can trigger the condition by closing the connection at the right moment. The fix is the upstream change, applied to lua-nginx-module 0.10.31 and stream-lua-nginx-module 0.0.18. Upstream has not yet included it in a tagged release. There is no configuration workaround short of not yielding inside plain coroutines.
After updating: upgrade nginx in place (service nginx upgrade) or restart nginx; a reload does not load the new module.
Fixed packages
Every build listed in the signed repository metadata (yum updateinfo info GPSA-2026-0004). mitigation means a backported fix, not the complete upstream change.
| Product | Shape | Repository | Fix | First available fixed build |
|---|---|---|---|---|
| nginx-module-lua | stable | amzn/2/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.amzn2.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.amzn2.gps.aarch64.rpm |
| nginx-module-lua | stable | amzn/2/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.amzn2.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.amzn2.gps.x86_64.rpm |
| nginx-module-lua | stable | amzn/2023/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.amzn2023.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.amzn2023.gps.aarch64.rpm |
| nginx-module-lua | stable | amzn/2023/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.amzn2023.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.amzn2023.gps.x86_64.rpm |
| nginx-module-lua | stable | fedora/44/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.fc44.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.fc44.gps.aarch64.rpm |
| nginx-module-lua | stable | fedora/44/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.fc44.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.fc44.gps.x86_64.rpm |
| nginx-module-lua | stable | fedora/45/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.fc45.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.fc45.gps.aarch64.rpm |
| nginx-module-lua | stable | fedora/45/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.fc45.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.fc45.gps.x86_64.rpm |
| nginx-module-lua | stable | redhat/10/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el10.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el10.gps.aarch64.rpm |
| nginx-module-lua | stable | redhat/10/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el10.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el10.gps.x86_64.rpm |
| nginx-module-lua | stable | redhat/7/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el7.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el7.gps.aarch64.rpm |
| nginx-module-lua | stable | redhat/7/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el7.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el7.gps.x86_64.rpm |
| nginx-module-lua | stable | redhat/8/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el8.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el8.gps.aarch64.rpm |
| nginx-module-lua | stable | redhat/8/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el8.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el8.gps.x86_64.rpm |
| nginx-module-lua | stable | redhat/9/aarch64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el9.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el9.gps.aarch64.rpm |
| nginx-module-lua | stable | redhat/9/x86_64 | complete | 4:1.30.6+0.10.31+0.3.4-2.el9.gps and later3 packagesnginx-module-lua-1.30.6+0.10.31+0.3.4-2.el9.gps.x86_64.rpm |
| nginx-module-lua | mainline | amzn/2/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.amzn2.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.amzn2.gps.aarch64.rpm |
| nginx-module-lua | mainline | amzn/2/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.amzn2.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.amzn2.gps.x86_64.rpm |
| nginx-module-lua | mainline | amzn/2023/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.amzn2023.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.amzn2023.gps.aarch64.rpm |
| nginx-module-lua | mainline | amzn/2023/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.amzn2023.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.amzn2023.gps.x86_64.rpm |
| nginx-module-lua | mainline | fedora/44/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.fc44.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.fc44.gps.aarch64.rpm |
| nginx-module-lua | mainline | fedora/44/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.fc44.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.fc44.gps.x86_64.rpm |
| nginx-module-lua | mainline | fedora/45/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.fc45.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.fc45.gps.aarch64.rpm |
| nginx-module-lua | mainline | fedora/45/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.fc45.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.fc45.gps.x86_64.rpm |
| nginx-module-lua | mainline | redhat/10/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el10.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el10.gps.aarch64.rpm |
| nginx-module-lua | mainline | redhat/10/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el10.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el10.gps.x86_64.rpm |
| nginx-module-lua | mainline | redhat/7/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el7.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el7.gps.aarch64.rpm |
| nginx-module-lua | mainline | redhat/7/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el7.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el7.gps.x86_64.rpm |
| nginx-module-lua | mainline | redhat/8/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el8.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el8.gps.aarch64.rpm |
| nginx-module-lua | mainline | redhat/8/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el8.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el8.gps.x86_64.rpm |
| nginx-module-lua | mainline | redhat/9/mainline/aarch64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el9.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el9.gps.aarch64.rpm |
| nginx-module-lua | mainline | redhat/9/mainline/x86_64 | complete | 4:1.31.8+0.10.31+0.3.4-2.el9.gps and later3 packagesnginx-module-lua-1.31.10+0.10.31+0.3.4-2.el9.gps.x86_64.rpm |
| nginx-module-lua | plesk | redhat/10/plesk/x86_64 | complete | 3:1.30.6+0.10.31+0.3.4-7.el10.pl18.gps and later3 packagessw-nginx-module-lua-1.30.6+0.10.31+0.3.4-7.el10.pl18.gps.x86_64.rpm |
| nginx-module-lua | plesk | redhat/7/plesk/x86_64 | complete | 3:1.30.6+0.10.31+0.3.4-7.el7.pl18.gps and later3 packagessw-nginx-module-lua-1.30.6+0.10.31+0.3.4-7.el7.pl18.gps.x86_64.rpm |
| nginx-module-lua | plesk | redhat/8/plesk/x86_64 | complete | 3:1.30.6+0.10.31+0.3.4-7.el8.pl18.gps and later3 packagessw-nginx-module-lua-1.30.6+0.10.31+0.3.4-7.el8.pl18.gps.x86_64.rpm |
| nginx-module-lua | plesk | redhat/9/plesk/x86_64 | complete | 3:1.30.6+0.10.31+0.3.4-7.el9.pl18.gps and later3 packagessw-nginx-module-lua-1.30.6+0.10.31+0.3.4-7.el9.pl18.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | amzn/2/aarch64 | complete | 5:1.30.6.0.0.9-7.amzn2.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.amzn2.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | amzn/2/x86_64 | complete | 5:1.30.6.0.0.9-7.amzn2.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.amzn2.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | amzn/2023/aarch64 | complete | 5:1.30.6.0.0.9-7.amzn2023.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.amzn2023.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | amzn/2023/x86_64 | complete | 5:1.30.6.0.0.9-7.amzn2023.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.amzn2023.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | fedora/44/aarch64 | complete | 5:1.30.6.0.0.9-7.fc44.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.fc44.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | fedora/44/x86_64 | complete | 5:1.30.6.0.0.9-7.fc44.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.fc44.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | fedora/45/aarch64 | complete | 5:1.30.6.0.0.9-7.fc45.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.fc45.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | fedora/45/x86_64 | complete | 5:1.30.6.0.0.9-7.fc45.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.fc45.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | redhat/10/aarch64 | complete | 5:1.30.6.0.0.9-7.el10.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el10.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | redhat/10/x86_64 | complete | 5:1.30.6.0.0.9-7.el10.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el10.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | redhat/7/aarch64 | complete | 5:1.30.6.0.0.9-7.el7.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el7.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | redhat/7/x86_64 | complete | 5:1.30.6.0.0.9-7.el7.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el7.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | redhat/8/aarch64 | complete | 5:1.30.6.0.0.9-7.el8.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el8.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | redhat/8/x86_64 | complete | 5:1.30.6.0.0.9-7.el8.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el8.gps.x86_64.rpm |
| nginx-module-stream-lua | stable | redhat/9/aarch64 | complete | 5:1.30.6.0.0.9-7.el9.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el9.gps.aarch64.rpm |
| nginx-module-stream-lua | stable | redhat/9/x86_64 | complete | 5:1.30.6.0.0.9-7.el9.gps and later3 packagesnginx-module-stream-lua-1.30.6.0.0.9-7.el9.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | amzn/2/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.amzn2.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.amzn2.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | amzn/2/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.amzn2.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.amzn2.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | amzn/2023/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.amzn2023.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.amzn2023.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | amzn/2023/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.amzn2023.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.amzn2023.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | fedora/44/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.fc44.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.fc44.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | fedora/44/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.fc44.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.fc44.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | fedora/45/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.fc45.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.fc45.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | fedora/45/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.fc45.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.fc45.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | redhat/10/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.el10.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el10.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | redhat/10/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.el10.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el10.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | redhat/7/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.el7.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el7.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | redhat/7/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.el7.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el7.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | redhat/8/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.el8.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el8.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | redhat/8/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.el8.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el8.gps.x86_64.rpm |
| nginx-module-stream-lua | mainline | redhat/9/mainline/aarch64 | complete | 5:1.31.8.0.0.9-7.el9.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el9.gps.aarch64.rpm |
| nginx-module-stream-lua | mainline | redhat/9/mainline/x86_64 | complete | 5:1.31.8.0.0.9-7.el9.gps and later3 packagesnginx-module-stream-lua-1.31.10.0.0.9-7.el9.gps.x86_64.rpm |
| nginx-module-lua | deb | — | complete | nginx-module-lua 0.10.31-10 (stable and mainline) and sw-nginx-module-lua 0.10.31-11 on every Ubuntu and Debian suite: apt upgrade |
Update
yum updateinfo list GPSA-2026-0004 yum update --advisory=GPSA-2026-0004
References
- lua-nginx-module-8df8ff0 — lua-nginx-module: clean pending operations in ordinary coroutines
- stream-lua-nginx-module-8f3886c — stream-lua-nginx-module: clean pending operations in ordinary coroutines