Vulnerability DatabaseCVE-2026-141510

CVE-2026-141510: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-141510 is an HTTP request smuggling vulnerability in Cesanta Mongoose, an embedded web server and network library, caused by improper HTTP header table bounds handling. The mg_http_parse_headers() function in src/http.c silently drops headers beyond the fixed MG_MAX_HTTP_HEADERS (30-entry) limit, including framing headers like Content-Length or Transfer-Encoding, enabling request smuggling and frontend ACL bypass. Version 7.23 is confirmed affected; earlier releases may also be vulnerable but have not been fully assessed. The vulnerability was disclosed on December 1, 2026, and is fixed in version 7.24. It carries a CVSS v3.1 base score of 5.9 (Medium) (GitHub Advisory, Red Hat).

Technical details

The root cause is classified as CWE-444 (Inconsistent Interpretation of HTTP Requests / HTTP Request Smuggling). The mg_http_parse_headers() function iterates only up to MG_MAX_HTTP_HEADERS (30) entries and returns success without distinguishing between reaching the table limit and encountering the terminating blank line; any headers beyond position 30 — including Content-Length or Transfer-Encoding — are silently discarded. An attacker crafts an HTTP/1 request with more than 30 headers, placing a Content-Length header after the 30th slot. A conforming frontend proxy (tested with HAProxy 3.2.0 LTS) that preserves this late framing header treats the subsequent bytes as the body of the first request, while Mongoose — having lost the Content-Length — treats the first request as bodyless and parses those same bytes as a second pipelined request, effectively smuggling it past the frontend's path ACL. The fix, committed in 07e580d, adds a bounds check after the loop that returns false (parse failure) if the header table is exhausted but the terminating blank line has not yet been reached (GitHub Advisory, Fix Commit).

Impact

Successful exploitation allows an unauthenticated remote attacker to smuggle a second HTTP request past a frontend proxy's path-based access control list, reaching protected endpoints that the frontend was configured to block. The demonstrated impact is a blind authorization/integrity bypass — in the proof-of-concept, a protected POST /admin action was executed despite HAProxy returning HTTP 403 for a direct request to that path. No confidentiality loss, availability impact, or remote code execution has been demonstrated; the integrity impact is rated High due to the ability to trigger unauthorized state-changing operations (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code has been released, and there is no evidence of in-the-wild exploitation as of the disclosure date (Feedly). The EPSS score is approximately 0.006 (0.6%), reflecting low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires a specific deployment topology — a frontend proxy that preserves late framing headers and enforces path-based ACLs — which raises the effective attack complexity to High (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify deployments running Mongoose 7.23 (or potentially earlier) as a backend behind a frontend proxy (e.g., HAProxy) that enforces path-based ACLs and preserves forwarded headers.
  2. Craft the smuggling payload: Construct an HTTP/1.1 request to a publicly accessible path (e.g., GET /public) with exactly 30 or more syntactically valid but semantically irrelevant padding headers (e.g., x-pad-1: a through x-pad-29: a), placing the Content-Length header at position 31 or later — beyond Mongoose's 30-entry table limit.
  3. Embed the smuggled request: Set the Content-Length value to the byte length of a second HTTP request (e.g., POST /admin HTTP/1.1\r\nContent-Length: 0\r\n\r\n) and append that second request as the apparent body of the first.
  4. Send through the frontend proxy: Transmit the crafted carrier request through the frontend proxy. The proxy (e.g., HAProxy) sees the Content-Length header, treats the embedded bytes as the body of the first request, and applies its ACL only to /public — allowing it through.
  5. Trigger the smuggled request on Mongoose: Mongoose, having exhausted its header table at position 30 and silently dropped the Content-Length, treats the first request as bodyless and parses the embedded bytes as a second pipelined request to /admin, executing the protected action without ACL enforcement.
  6. Observe the result: The attacker receives only the response to the /public request, but the protected POST /admin side effect is executed on the Mongoose backend (GitHub Advisory).

Indicators of compromise

  • Network: HTTP requests to the frontend proxy containing an unusually large number of headers (approaching or exceeding 30) combined with a Content-Length or Transfer-Encoding header positioned late in the header block; unexpected pipelined requests observed at the Mongoose backend that do not correspond to requests logged by the frontend proxy.
  • Logs: Mongoose access logs showing two sequential requests originating from a single TCP connection where the first request targets a public path and the second targets a protected path (e.g., /admin); discrepancy between frontend proxy access logs (one request) and Mongoose backend logs (two requests) for the same connection.
  • Application Behavior: Unexpected increments in counters or state changes associated with protected endpoints (e.g., admin actions executed) without corresponding authenticated sessions or frontend proxy log entries for those protected paths (GitHub Advisory).

Mitigation and workarounds

Upgrade Mongoose to version 7.24, which includes a bounds check in mg_http_parse_headers() that rejects requests where the header table is exhausted before the terminating blank line is reached (Mongoose 7.24 Release, Fix Commit). As a temporary workaround, deploying a frontend proxy that normalizes header ordering (e.g., nginx 1.31.3 or Node http-proxy 1.18.1 were observed to normalize Content-Length position in testing, preventing the mismatch) can mitigate the risk in specific chain configurations, though this is deployment-dependent and not a guaranteed fix. Organizations should audit all Mongoose deployments behind frontend proxies with path-based ACLs and prioritize upgrading to 7.24 (GitHub Advisory).

Community reactions

The vulnerability was discovered by security researcher Giacomo (gb1dev) using a private security vulnerability analysis tool called HyperAnalyzer, followed by manual source review and isolated local validation. The researcher provided a detailed proof-of-concept including server code, a probe script, and HAProxy configuration, and noted that the fix was causally verified by rebuilding the patched source and confirming the exploit no longer succeeded. No significant broader media coverage or social media discussion has been identified beyond the GitHub Security Advisory and Red Hat Bugzilla tracking (GitHub Advisory, Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

devel

mongoose

Not Affected

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-141471CRITICAL9.1
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-141511HIGH8.7
  • NixOS logoNixOS
  • mongoose-lib
NoYesDec 01, 2026
CVE-2026-141472HIGH8.7
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-141510MEDIUM5.9
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-142248LOW2.3
  • NixOS logoNixOS
  • mlflow
NoNoDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management