Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade next to version 15.5.24, 16.3.3 or higher.
next is a react framework.
Affected versions of this package are vulnerable to Directory Traversal in FileSystemCache.getFilePath in packages/next/src/server/lib/incremental-cache/file-system-cache.ts. An attacker can trigger remote code execution on a Windows-hosted server by sending a request that causes the incremental cache to resolve a crafted cache key containing backslashes outside the intended cache directory. When Pages Router or App Router code runs without Cache Components on Windows, the cache path handling can write or read files outside the cache root, letting the attacker influence server-side files that the application later executes.