Skip to main content
EPSS 68.0%top 0.72%

CVE-2026-42945: CWE-122 Heap-based Buffer Overflow. in F5 NGINX Plus

0
High
VulnerabilityCVE-2026-42945cvecve-2026-42945cwe-122
Published: 05/13/2026 (05/13/2026, 14:12:43 UTC)
Source: CVE Database V5
Vendor/Project: F5
Product: NGINX Plus

Description

NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

F5

NGINX Plus

Affected versions
=R36=R32

F5

NGINX Open Source

Affected versions
>=0.6.27 <1.30.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 13:24:22 UTC

Technical Analysis

This vulnerability in NGINX's ngx_http_rewrite_module arises when the rewrite directive is followed by rewrite, if, or set directives using unnamed Perl-Compatible Regular Expression captures with a question mark in the replacement string. Exploitation by unauthenticated attackers sending crafted HTTP requests can trigger a heap buffer overflow in the NGINX worker process. This may cause a denial of service via process restart or arbitrary code execution on systems where ASLR is disabled or bypassed. The vulnerability is tracked as CWE-122 (Heap-based Buffer Overflow) and CWE-131 (Incorrect Calculation of Buffer Size). Red Hat's advisory confirms the issue and provides updated packages to remediate it.

Potential Impact

Successful exploitation can lead to denial of service due to NGINX worker process restart or arbitrary code execution on systems without ASLR protection. The vulnerability affects confidentiality, integrity, and availability with high impact. No known exploits are reported in the wild at this time.

Mitigation Recommendations

Red Hat has released security updates for affected NGINX packages, including version 1.26.3-1.el10_0.9 and related modules. Users should apply these official patches promptly to remediate the vulnerability. Exploitation requires specific non-default rewrite configurations; reviewing and adjusting these configurations may reduce risk. No additional mitigations are specified by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
f5
Date Reserved
2026-04-30T23:04:27.955Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-42945","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17790","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18063","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19159","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18041","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17791","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17751","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17792","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17793","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17752","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17794","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17753","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18029","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19371","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19374","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19372","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17417","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22396","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22393","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22394","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22390","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22388","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22389","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22382","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22383","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20442","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20444","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21275","vendor":"Red Hat"}]

Threat ID: 6a049717cbff5d8610e0031e

Added to database: 05/13/2026, 15:21:59 UTC

Last enriched: 08/11/2026, 13:24:22 UTC

Last updated: 09/10/2026, 22:12:34 UTC

Views: 267

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses