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
Published: 05/13/2026 (05/13/2026, 14:12:43 UTC)
Source: GCVE Database
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

Affected versions
>=4.17.0 <4.17.27R36R32Red HatRed Hat Hardened Imagesaarch64nginx-main@aarch64Red Hat SatelliteRed Hat Satellite 6.18amd64registry.redhat.io/satellite/iop-gateway-rhel9@sha256:8337f2385786f2022f7828a28b0e85db5145ecf59eb401d251e6ca265b6c4e64_amd64Red Hat Enterprise LinuxRed Hat Enterprise Linux AppStream E4S (v.9.2)srcnginx-1:1.20.1-14.el9_2.6.srcRed Hat Enterprise Linux AppStream EUS (v.9.6)nginx-1:1.24.0-4.module+el9.6.0+24297+b3b39a7f.3.src::nginx:1.24nginx-2:1.26.3-1.module+el9.6.0+24296+87cb744c.3.src::nginx:1.26>=0.6.27 <1.30.1Red Hat Satellite 6.19registry.redhat.io/satellite/iop-gateway-rhel9@sha256:a89e475c5d7ca2b40a065d08521be76d7930fe61ab612b97d3e61e550ea95488_amd64Red Hat Enterprise Linux AppStream EUS (v. 10.0)Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0)

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 18:02:10 UTC

Technical Analysis

CVE-2026-42945 is a critical vulnerability in NGINX's ngx_http_rewrite_module where improper buffer size calculation leads to a heap buffer overflow. An unauthenticated attacker can exploit this by sending crafted HTTP requests under specific rewrite configurations that use unnamed PCRE captures and a question mark in the replacement string. This overflow can cause a denial of service by crashing the NGINX worker process or, if ASLR is disabled, enable arbitrary code execution. Red Hat has released updated RPM packages including nginx-1.30.1-1.hum1 to fix this issue. The vulnerability is tracked under CWE-131 (Incorrect Calculation of Buffer Size) and has a Red Hat CVSS v3.1 base score of 8.1.

Potential Impact

The vulnerability allows unauthenticated attackers to cause denial of service by crashing or restarting the NGINX worker process under default conditions. If ASLR is disabled, it can lead to arbitrary code execution, posing a critical risk to affected systems. This impacts confidentiality, integrity, and availability of the affected NGINX service. Exploitation requires specific, non-default rewrite configurations, limiting the attack surface to certain deployments.

Mitigation Recommendations

Red Hat has released updated RPM packages (nginx-1.30.1-1.hum1 and related modules) that fix this vulnerability. Users should apply these official updates promptly to remediate the issue. No alternative mitigations are specified in the advisory. Since this is a critical security flaw, patching is the recommended and effective mitigation.

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

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:20442
Cve Count
1
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a160991e29bf47b50654f3a

Added to database: 05/26/2026, 20:58:57 UTC

Last enriched: 08/16/2026, 18:02:10 UTC

Last updated: 09/14/2026, 22:01:34 UTC

Views: 192

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.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

External Links

NVD DatabaseMITRE CVEhttps://access.redhat.com/errata/RHSA-2026:20442https://access.redhat.com/documentation/en-us/red_hat_satellite/6.18/html/updating_red_hat_satellite/indexhttps://access.redhat.com/security/cve/CVE-2026-42945https://access.redhat.com/security/updates/classification/https://catalog.redhat.com/software/containers/searchhttps://docs.redhat.com/en/documentation/red_hat_satellite/6.18/html/installing_satellite_server_in_a_connected_network_environment/performing-additional-configuration-on-server_satellite#installing-and-configuring-red-hat-lightspeed-in-satellitehttps://docs.redhat.com/en/documentation/red_hat_satellite/6.18/html/installing_satellite_server_in_a_disconnected_network_environment/performing-additional-configuration#installing-and-configuring-red-hat-lightspeed-in-satelliteCanonical URLhttps://access.redhat.com/errata/RHSA-2026:20444Canonical URLhttps://access.redhat.com/errata/RHSA-2026:17417https://images.redhat.com/Canonical URLhttps://access.redhat.com/errata/RHSA-2026:22390https://access.redhat.com/security/updates/classificationhttps://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/Canonical URLhttps://access.redhat.com/errata/RHSA-2026:17751https://access.redhat.com/security/updates/classification/#critical2477116Canonical URLReference 22Reference 23Reference 24Reference 25Reference 26Reference 27Reference 28Reference 29Reference 30Reference 31Reference 32Reference 33Reference 34Reference 35Reference 36Reference 37Reference 38Reference 39Reference 40Reference 41Reference 42Reference 43Reference 44Reference 45Reference 46Reference 47Canonical URLCanonical URLCanonical URLCanonical URLReference 52Canonical URLCanonical URLReference 55Search on Google

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