Skip to main content
Mallory
Medium

Out-of-bounds read in NGINX ngx_http_charset_module

IdentifiersCVE-2026-42934CWE-125· Out-of-bounds Read

CVE-2026-42934 is an out-of-bounds read / heap buffer over-read vulnerability in NGINX Open Source and NGINX Plus within ngx_http_charset_module. The issue is described as an off-by-one error in UTF-8 handling when charset conversion is enabled, specifically involving charset, source_charset, charset_map, and proxy_pass with proxy buffering disabled (buffering "off"). Available reporting indicates the flaw can be triggered when incomplete UTF-8 sequences are processed across proxy buffer boundaries, causing incorrect length/state handling and a read past the end of a heap buffer in the NGINX worker process. The vulnerability is remotely reachable by an unauthenticated attacker via crafted requests, but only when the affected charset and proxy configuration combination is present.

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 can cause limited disclosure of worker-process memory contents or trigger a restart/crash of the affected NGINX worker process. Based on the provided content, the primary security impacts are information disclosure and denial of service at the worker level; there is no specific evidence in the supplied material that this issue leads to code execution.

Mitigation

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

If immediate patching is not possible, reduce exposure by disabling the vulnerable configuration path: avoid using ngx_http_charset_module charset conversion with the combination of charset, source_charset, charset_map, and proxy_pass where proxy buffering is disabled ("off"). Re-enabling proxy buffering or removing charset conversion / charset_map usage for affected proxied locations may mitigate exploitation risk, but the authoritative mitigation in the provided content is to upgrade.

Remediation

Patch, then assume compromise.

Upgrade to a fixed NGINX release. The provided content states that fixes are included in NGINX Open Source 1.30.1 and 1.31.0, and corresponding vendor fixes were issued for affected NGINX Plus releases. Apply the vendor-provided patched version appropriate to the deployed product line and restart/reload NGINX as required by the update procedure.
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
F5Nginxapplication
F5Nginx Plusapplication

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 activity3

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