Add Next.JS Unauthenticated RCE on Windows Servers (CVE-2026-75604) - #21834
Open
vognik wants to merge 11 commits into
Open
Add Next.JS Unauthenticated RCE on Windows Servers (CVE-2026-75604)#21834vognik wants to merge 11 commits into
vognik wants to merge 11 commits into
Conversation
vognik
marked this pull request as ready for review
August 28, 2026 23:10
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The exploit module has a confirmed crash on nil HTTP responses and crypto/dep issues (IV generation and Faker usage), and the documentation does not conform to the required module doc structure.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR adds a new Metasploit exploit module (plus supporting documentation and a small repro Next.js app) for CVE-2026-75604, targeting unauthenticated RCE against vulnerable Next.js deployments on Windows by leaking the server reference manifest and abusing Server Actions.
Changes:
- Introduces
nextjs_unauth_rce_cve_2026_75604exploit module with AutoCheck, Build ID discovery, manifest leak, action discovery, and bound-args encryption. - Adds module documentation and a minimal Next.js reproduction project under
data/exploits/CVE-2026-75604/. - Provides an example scenario/run output demonstrating successful exploitation.
Impact Analysis:
- Blast radius: medium — new exploit module + docs + data repro; no direct impact to existing modules, but introduces new crypto/request-handling logic used by this module at runtime.
- Data and contract effects: no schema/contract changes; however the module currently prints a leaked encryption key to console output (sensitive target material) and has error-handling gaps that can crash execution.
- Rollback and test focus: rollback is straightforward (new files only); testing should focus on (1) unreachable/timeout handling, (2) action discovery reliability across Pages/App router variants, and (3) encryption key decoding/IV generation correctness.
File summaries
| File | Description |
|---|---|
| modules/exploits/windows/http/nextjs_unauth_rce_cve_2026_75604.rb | New Windows HTTP exploit module implementing the CVE flow (build ID parse → manifest leak → action selection → encrypted payload submission). |
| documentation/modules/exploit/windows/http/nextjs_unauth_rce_cve_2026_75604.md | New module documentation describing affected versions, setup/testing, and an example run. |
| data/exploits/CVE-2026-75604/package.json | Repro app package definition and dependency pinning. |
| data/exploits/CVE-2026-75604/next.config.js | Minimal Next.js configuration for repro app. |
| data/exploits/CVE-2026-75604/app/page.js | Repro page containing a Server Actions form for action discovery. |
| data/exploits/CVE-2026-75604/app/layout.js | Repro app layout/metadata. |
| data/exploits/CVE-2026-75604/app/app-cache/[...rest]/page.js | Repro cached App Router route emitting server-reference-manifest with encryption key. |
| data/exploits/CVE-2026-75604/pages/pages-cache/[...rest].js | Repro dynamic Pages Router ISR route to exercise cache behavior. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 7
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
TestingNext.js 16.2.11 on Node.js 22.22.3, running Windows Server 2022 build 20348 |
bwatters-r7
reviewed
Sep 1, 2026
Contributor
Retest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vulnerability Details
This module exploits a Remote Code Execution (RCE) vulnerability in Next.js applications hosted on Windows servers.
Specifically crafted requests can execute arbitrary code on the target server running Next.js.
The affected versions include releases from 13.4.0 up to 15.5.24, and 16.0.0 up to 16.3.3.
The vulnerability affects applications utilizing both the Pages Router and App Router without Cache Components.
Module Information
Module path:
modules/exploits/windows/http/nextjs_unauth_rce_cve_2026_75604.rbPlatform: Windows
References
Test Output