NGINX map regex two-pass capture clobbering
A regex-backed map can replace shared capture state during two-pass script evaluation, making the value pass outgrow its allocation or return an uninitialized heap tail.
- Product
- NGINX Open Source and NGINX Plus script engine
- Vendor
- F5 / NGINX
- Affected
- NGINX Open Source before 1.30.4 on the stable branch and before 1.31.3 on the mainline branch, beginning with 0.9.6; NGINX Plus 37.0.0.1 before 37.0.3.1, R36 before R36 P7, and affected R33 releases
- Fixed in
- NGINX Open Source 1.30.4 and 1.31.3; NGINX Plus 37.0.3.1 and R36 P7 according to the F5 product matrix
- Weakness
- CWE-122
- CVSS vector
- CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Published
- 15 Jul 2026
Classified as
References
Related CVEs
- CVE-2026-42945high 8.12026
NGINX Rift: rewrite capture sizing heap overflow
The rewrite engine can size a captured replacement with cleared argument-escaping state, then copy it with escaping enabled and overrun the allocation.
- CVE-2024-38077critical 9.82024
MadLicense: base-24 license-key heap overflow
The licensing RPC decoder allocates 21 bytes for an expected 35-character base-24 value but converts a null-terminated, attacker-controlled string of unbounded length into that buffer.
- CVE-2024-30051high 7.82024
Windows DWM: 0x90 rounding undersizes a shared command buffer
A local caller can provide an unaligned DirectComposition command-buffer length that DWM rounds down for allocation but preserves for copying, causing a heap overwrite in the high-integrity desktop compositor process.
- CVE-2023-27997critical 9.82023
XORtigate: FortiOS SSL-VPN hex-length heap overflow
The SSL-VPN parser validates a raw-byte length against the hexadecimal character count, allowing its XOR decryption loop and terminator write to continue beyond the decoded heap buffer.