Critical Next.js RCE Flaws in AVIF Processing and Windows Cache Paths
Vulnerability Disclosure · 3 sources · Updated 2mo ago · First seen Sep 4, 2026

Vercel issued out-of-cycle updates for two critical unauthenticated remote-code-execution flaws in Next.js: an AVIF/HEIC image-processing heap overflow and Windows-only path traversal, tracked as CVE-2026-75604. The image flaw is rooted in libheif, reached through Next.js's sharp and libvips image-optimization chain; malicious files with duplicate alpha channels of differing bit depths can trigger a controlled heap overflow. The issue, reported with a CVSS v4 score of 9.5, was confirmed against multiple production applications, and patched Next.js releases disable AVIF optimization while an upstream dependency fix propagates.
CVE-2026-75604 affects the incremental cache on Windows because route paths do not properly escape backslashes. Attackers can use percent-encoded backslashes to leave the cache directory, read files available to the server process, and write attacker-controlled cache content to selected paths; under susceptible Server Action patterns, this can be chained to RCE. Organizations running affected Windows deployments using the Pages Router or App Router without Cache Components should upgrade to Next.js 15.5.24 or 16.3.3; no configuration-only mitigation is available. Linux and macOS are not affected by the cache-path flaw.

