Skip to main content
Mallory
High

Buffer Over-read in NGINX ngx_http_scgi_module and ngx_http_uwsgi_module

IdentifiersCVE-2026-42946CWE-125

CVE-2026-42946 is a high-severity vulnerability in NGINX's ngx_http_scgi_module and ngx_http_uwsgi_module. When scgi_pass or uwsgi_pass is configured, a state mismatch after an incomplete upstream status-line read can lead to cross-buffer pointer subtraction, producing an invalid key length and triggering excessive memory allocation or an over-read of data. Public descriptions indicate this can manifest as a roughly 1 TB allocation attempt or buffer over-read while processing specially crafted upstream response headers/status data. An unauthenticated attacker who can act as a man-in-the-middle and control responses from the upstream SCGI/uWSGI server may exploit the flaw against the NGINX worker process.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation may allow disclosure of memory from the NGINX worker process or cause the worker process to crash and restart, resulting in denial of service or service instability. Multiple sources in the provided content describe worker restarts and memory disclosure as the primary outcomes.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, reduce exposure by ensuring SCGI and uWSGI upstream traffic is confined to trusted networks and protected against man-in-the-middle interception or tampering. Review deployments using scgi_pass or uwsgi_pass and avoid sending those upstream connections over untrusted paths until patched. Restrict attacker ability to control or modify upstream responses.

Remediation

Patch, then assume compromise.

Upgrade NGINX to a fixed release. The provided content states that fixes were released in NGINX Open Source 1.30.1 and 1.31.0. Where distribution-packaged NGINX is used, apply the vendor security updates, such as the Debian fixed packages referenced in the advisory content. Also apply corresponding F5/NGINX Plus updates where applicable.
PUBLIC EXPLOITS

Exploits

No valid public exploits. Mallory filtered out 3 candidates as fakes, detection scripts, or README-only repos.

VALID 0 / 3 TOTALView more in app

All candidate exploits were filtered out by Mallory's validation.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
F5Dosapplication
F5Nginxapplication
F5Nginx App Protect Dosapplication
F5Nginx App Protect Wafapplication
F5Nginx Gateway Fabricapplication
F5Nginx Ingress Controllerapplication
F5Nginx Instance Managerapplication
F5Nginx Open Sourceapplication
F5Nginx Plusapplication
F5Wafapplication
NginxNginxapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity4

Community discussion across Reddit, Mastodon, and other social sources.