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.
- Product
- NGINX Open Source and NGINX Plus ngx_http_rewrite_module
- Vendor
- F5 NGINX
- Affected
- NGINX Open Source 0.6.27 through 1.30.0 and affected NGINX Plus releases
- Fixed in
- NGINX Open Source 1.30.1 and 1.31.0; corresponding NGINX Plus updates
- Weakness
- CWE-122
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 13 May 2026
Classified as
References
Related CVEs
- CVE-2026-42533critical 9.22026
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.
- 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.