SecPod

Learn Search

Search across all Learn content

← Back to Security Research
CVE-2026-75604: Next.js Critical Windows RCE and AVIF Flaw

CVE-2026-75604: August 2026 Next.js Critical RCE and AVIF Image Optimization Flaw

Aug 28, 2026By Keerthana Kalidindi

Overview

On August 25, 2026, the Next.js team released versions 15.5.24 and 16.3.3 to address two Critical-severity unauthenticated remote code execution vulnerabilities. One issue affects Windows-hosted Next.js applications and is tracked as CVE-2026-75604. The second affects the Image Optimization API when AVIF images are processed and is tracked as GHSA-2xp9-vwfh-vxw4; no CVE had been assigned to that advisory as of August 28, 2026.

CVE-2026-75604 - Next.js Windows-Hosted Servers

Vulnerability NameUnauthenticated Remote Code Execution on Windows-hosted servers
CVE IDCVE-2026-75604
GHSAGHSA-p293-qw3h-jr36
SeverityCritical
CVSS Score9.0 (CVSS 3.1)
CWECWE-22: Improper Limitation of a Pathname to a Restricted Directory
Affected VersionsNext.js >= 13.4 and < 15.5.24; Next.js >= 16.0 and < 16.3.3
Affected ConfigurationWindows-hosted applications using both Pages Router and App Router without Cache Components
Patched Versions15.5.24 and 16.3.3
Discovered Byevolutionstorm and B0RI
Published DateAugust 25, 2026
DescriptionA path traversal weakness can result in remote code execution when an affected Next.js application is hosted on a Windows filesystem and the required routing configuration is present.

GHSA-2xp9-vwfh-vxw4 - Next.js AVIF Image Optimization

Vulnerability NameUnauthenticated Remote Code Execution in Image Optimization API when AVIF files are used
IdentifierGHSA-2xp9-vwfh-vxw4
CVE IDNo known CVE assigned as of August 28, 2026
SeverityCritical
CVSS Score9.5 (CVSS 4.0)
Attack RequirementsPresent (AT:P) - exploitation depends on the required AVIF-processing conditions being met
Underlying Componentlibheif, reached through sharp and the Next.js Image Optimization API
Affected ConfigurationAVIF optimization must be enabled for the application, such as by including image/avif in the Next.js image formats configuration, and attacker-controlled AVIF content must reach the optimization path.
Affected VersionsAs listed by Next.js: >=10.0.0 <15.5.24 and <16.3.3
Patched Versions15.5.24 and 16.3.3
Underlying libheif Fixlibheif identifies version 1.23.2 as the patched release. Next.js 15.5.24 and 16.3.3 still disable AVIF optimization while the corrected dependency propagates through the downstream package chain.
Published DateAugust 25, 2026
DescriptionA crafted AVIF image can trigger a heap buffer overflow in the underlying libheif image-decoding path. Next.js reaches the affected functionality through sharp during image optimization. A network-reachable, unauthenticated image-processing path can therefore become exploitable when the required AVIF-processing conditions are present.

Exploit Maturity Assessment

CVE-2026-75604 - Next.js Windows-Hosted Servers

The Windows-hosted vulnerability is confirmed as a Critical unauthenticated RCE, but the vendor advisory does not state that the issue is being exploited in the wild. It requires a specific application configuration: the application must run on a Windows filesystem, use both the Pages Router and App Router, and not use Cache Components.

FactorAssessment
Exploit StatusTechnical vulnerability confirmed; no authoritative in-the-wild exploitation identified
Exploit AvailabilityIndependent public PoC material is available, but no official PoC is provided by Next.js/Vercel. Third-party exploit repositories are not used as evidentiary sources in this analysis.
Source of ExploitNot disclosed
Exploit ReliabilityNot formally documented

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

The AVIF issue has a higher level of technical exploit maturity because the upstream libheif maintainers published a proof of concept for the underlying heap-buffer-overflow condition. In Next.js, practical exposure depends on AVIF optimization being enabled and attacker-controlled AVIF content reaching the Image Optimization API. The libheif advisory also states that researchers achieved RCE in multiple applications. This demonstrates that the upstream memory-corruption primitive can be weaponized beyond a crash, but it should not be interpreted as proof that RCE was specifically demonstrated through Next.js.

FactorAssessment
Exploit StatusFunctional technical exploitation demonstrated upstream
Exploit AvailabilityPublic PoC in the upstream libheif advisory
Source of ExploitOfficial libheif security advisory
Exploit ReliabilityUpstream libheif maintainers report RCE achieved in multiple applications; no formal success-rate assessment published

Proof of Concept

CVE-2026-75604 - Next.js Windows-Hosted Servers

No official proof-of-concept code is provided in the Next.js advisory. Independent public PoC material is available, including code targeting the documented Windows Pages Router plus App Router configuration, but third-party exploit repositories are excluded from the evidentiary source set used for this blog. The vendor advisory defines the affected versions, platform, routing configuration, weakness class, and impact, but does not disclose a full exploitation sequence.

Publicly AvailableIndependent public PoC material exists, but no official PoC is provided by Next.js/Vercel. Third-party exploit repositories are excluded from this blog's authoritative evidence set.
DescriptionThe vendor confirms that a path traversal condition in the affected Windows-hosted configuration can lead to unauthenticated remote code execution.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

An official upstream PoC is available in the libheif security advisory. It demonstrates the heap-buffer-overflow condition caused by crafted HEIC/HEIF/AVIF content. The full PoC is intentionally not reproduced here.

Publicly AvailableYes - official upstream libheif advisory
DescriptionThe PoC demonstrates an attacker-controlled out-of-bounds write caused by duplicate Alpha planes with differing bit depths during image scaling.

Reproducibility

CVE-2026-75604 - Next.js Windows-Hosted Servers

The issue is only partially reproducible from the authoritative advisory because Next.js documents the affected platform and framework configuration but does not provide the exact request or filesystem interaction needed to trigger the path traversal. A valid test environment would require a vulnerable Next.js release running on Windows with both Pages Router and App Router enabled and Cache Components disabled.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

The underlying libheif memory corruption is reproducible from the official upstream advisory. The advisory explains the malformed image structure, the duplicate Alpha-plane condition, the resulting size mismatch, and the heap write that occurs during scaling. This provides sufficient information to reproduce the memory-corruption condition in an authorized test environment, although the full exploit path to stable RCE should be treated separately from the crash-level reproduction.

Time-to-Exploit Analysis

CVE-2026-75604 - Next.js Windows-Hosted Servers

MetricAssessment
Time from Disclosure to PatchSame day - August 25, 2026
Time from Disclosure to Authoritatively Verified PoCNot established. Independent public PoC material exists, but it is excluded from this analysis under the authoritative-source-only methodology.
Time from Disclosure to Active ExploitationNot applicable; no authoritative active-exploitation confirmation identified
Risk InterpretationImmediate patch priority. The flaw is unauthenticated RCE, remotely reachable in affected deployments, and the vendor states that no workaround is available.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

MetricAssessment
Time from Disclosure to PatchSame day - August 25, 2026
Time from Disclosure to Authoritative PoCSame day - upstream libheif advisory includes a PoC
Time from Disclosure to Active ExploitationNot established; no authoritative in-the-wild exploitation confirmation identified
Risk InterpretationImmediate. A network-reachable, unauthenticated image-processing path can be exploitable when the required AVIF-processing conditions are present. The upstream libheif advisory includes a public PoC and reports RCE achieved in multiple applications.

Active Exploitation & Threat Actors

CVE-2026-75604 - Next.js Windows-Hosted Servers

Exploitation Observed in the Wild: No CISA KEV listing or vendor-confirmed in-the-wild exploitation was identified during verification on August 28, 2026.

Associated Threat Actors: No named threat actor, APT group, ransomware operator, or initial access broker has been attributed in the vendor material reviewed.

Campaign Details: No campaign has been authoritatively documented.

Attack Techniques Observed: No in-the-wild technique chain has been published by the vendor.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

Exploitation Observed in the Wild: No CISA KEV listing or vendor-confirmed in-the-wild exploitation was identified during verification on August 28, 2026.

Associated Threat Actors: Not disclosed.

Campaign Details: No campaign has been authoritatively documented.

Attack Techniques Observed: The upstream advisory demonstrates technical exploitation of the heap-buffer-overflow condition, but this is not evidence of an operational campaign.

Vulnerability Timeline

CVE-2026-75604 - Next.js Windows-Hosted Servers

EventDate
Vulnerability DiscoveredNot publicly disclosed
Vendor NotifiedNot publicly disclosed
Public DisclosureAugust 25, 2026
Patch ReleasedAugust 25, 2026 - Next.js 15.5.24 and 16.3.3
PoC ReleasedIndependent public PoC material exists; no vendor-provided or otherwise authoritatively verified PoC publication date is established in this analysis.
Exploitation in Wild BeganNot authoritatively confirmed

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

EventDate
Vulnerability DiscoveredNot publicly disclosed
Vendor NotifiedNot publicly disclosed
Public DisclosureAugust 25, 2026
Patch ReleasedAugust 25, 2026 - Next.js 15.5.24 and 16.3.3
Upstream libheif Fixlibheif identifies version 1.23.2 as the patched release; Next.js continues to disable AVIF optimization in its patched releases while the dependency fix propagates downstream.
Official Upstream PoCAvailable in the August 25, 2026 libheif advisory
Exploitation in Wild BeganNot authoritatively confirmed

Root Cause Analysis

CVE-2026-75604 - Next.js Windows-Hosted Servers

CVE-2026-75604 is a path traversal vulnerability classified as CWE-22. In the affected Next.js configuration, attacker-controlled path information can escape the intended filesystem boundary on Windows-hosted servers. The issue is specific to applications using both Pages Router and App Router without Cache Components. The path traversal can be converted into remote code execution, resulting in high confidentiality, integrity, and availability impact.

The official advisory does not expose the complete internal traversal sequence, request shape, or filesystem primitive. This limits safe public reconstruction but does not reduce the importance of the flaw: Next.js assigns a Critical severity score of 9.0 and states that affected Windows deployments have no known workaround.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

The AVIF issue originates in libheif, which Next.js reaches through sharp during image optimization. The upstream flaw is a heap-buffer overflow in scale_nearest_neighbor(). A crafted HEIC/HEIF/AVIF file can create duplicate Alpha planes with different bit depths. The destination allocation is created based on the first Alpha plane, while a later higher-bit-depth Alpha plane is written using a wider sample size.

This causes the scaling routine to write beyond the end of the allocated heap buffer. The upstream advisory states that both the overflow extent and written values can be influenced by attacker-controlled image content, which significantly increases exploitability. Next.js mitigated the issue by disabling AVIF optimization in patched versions until the fixed upstream dependency is available through the normal dependency chain.

Impact

CVE-2026-75604 - Next.js Windows-Hosted Servers

Successful exploitation can result in unauthenticated remote code execution on the affected Windows-hosted Next.js server. Because the flaw is remotely reachable and requires neither authentication nor user interaction, a vulnerable internet-facing application can expose the underlying server to compromise when the affected routing configuration is present.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

The AVIF flaw can turn image processing into a server compromise path. An attacker who can cause a crafted AVIF file to be optimized can reach the vulnerable libheif decoding routine through sharp. The upstream heap-buffer-overflow primitive can corrupt process memory and has been shown by the libheif maintainers to support RCE in multiple applications. The authoritative sources reviewed do not state that RCE was specifically demonstrated through Next.js.

Post-Exploitation Details

CVE-2026-75604 - Next.js Windows-Hosted Servers

No authoritative source currently describes a standard post-exploitation sequence, persistence mechanism, payload, or campaign associated with CVE-2026-75604. The confirmed technical outcome is remote code execution; any subsequent credential theft, lateral movement, persistence, or data exfiltration would depend on attacker behavior after initial compromise.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

The upstream libheif advisory confirms that the memory-corruption flaw can be converted into RCE, but it does not document an in-the-wild post-exploitation campaign. No authoritative persistence mechanism, malware payload, command-and-control infrastructure, or lateral-movement activity has been linked to this Next.js exposure.

MITRE ATT&CK Mapping

IdentifierTacticTechniqueID
CVE-2026-75604Initial AccessExploit Public-Facing Application - applicable as a defensive analytical mapping for a remotely exploitable web framework flawT1190
GHSA-2xp9-vwfh-vxw4Initial AccessExploit Public-Facing Application - applicable as a defensive analytical mapping when an exposed image optimization endpoint processes attacker-controlled contentT1190

These are analytical defensive mappings based on the exposed application attack surface. They are not vendor-provided mappings, are not confirmed campaign mappings, and should not be interpreted as evidence that either issue has been observed in a documented threat campaign.

Vulnerability Chaining Opportunities

CVE-2026-75604 - Next.js Windows-Hosted Servers

The Windows issue does not require a second vulnerability to reach RCE when the affected framework and hosting conditions are present. In a broader intrusion, successful code execution could theoretically be followed by operating-system or credential-based techniques, but no authoritative multi-CVE chain has been documented.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

The important chain is a dependency chain rather than a multi-CVE chain: Next.js Image Optimization invokes sharp, which in turn reaches the vulnerable libheif image-decoding implementation. No additional vulnerability is required to trigger the underlying memory corruption when attacker-controlled AVIF data reaches the affected code path.

Detection and Monitoring

CVE-2026-75604 - Next.js Windows-Hosted Servers

Detection should start with exposure identification. Inventory Windows-hosted Next.js applications, determine their framework version, and identify deployments that use both Pages Router and App Router without Cache Components. On vulnerable systems, monitor reverse-proxy and application logs for unusual path traversal patterns, unexpected filesystem access following HTTP requests, and child-process creation that does not match normal application behavior.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

Monitor use of the Next.js Image Optimization API and identify whether AVIF optimization is enabled, including whether image/avif appears in the image formats configuration, and whether remote or user-controlled AVIF content can be processed. Unexpected Node.js or image-worker crashes after AVIF requests should be investigated. After patching, confirm that the updated Next.js release is running and that AVIF optimization is disabled as expected until the corrected upstream dependency chain is present.

Risk Assessment

VulnerabilityImpactExploit MaturityOverall Risk
CVE-2026-75604Critical - unauthenticated RCE on affected Windows-hosted Next.js deploymentsVendor-confirmed RCE condition; independent public PoC exists, but no official vendor PoC is publishedCritical
GHSA-2xp9-vwfh-vxw4Critical - heap corruption leading to RCE through AVIF image optimizationOfficial upstream PoC; upstream libheif maintainers report RCE achieved in multiple applicationsCritical

Both issues warrant urgent remediation despite the absence of confirmed in-the-wild exploitation. CVE-2026-75604 combines unauthenticated RCE with a lack of vendor workaround on affected Windows deployments, while the AVIF issue has stronger exploit-maturity evidence because the upstream maintainers publish a reproducible memory-corruption PoC and report successful RCE.

Patch and Mitigation

CVE-2026-75604 - Next.js Windows-Hosted Servers

Upgrade affected applications to Next.js 15.5.24 or 16.3.3 or later. The Next.js advisory states that there is no known workaround for affected Windows-hosted applications. Windows-hosted deployments should therefore be treated as immediate patch priorities, particularly when they are internet accessible.

GHSA-2xp9-vwfh-vxw4 - AVIF Image Optimization

Upgrade to Next.js 15.5.24 or 16.3.3 or later. The patched releases disable AVIF optimization until the upstream fix propagates through the dependency chain. The upstream libheif advisory identifies version 1.23.2 as the patched release for the underlying heap-buffer-overflow condition. Next.js 15.5.24 and 16.3.3 still disable AVIF optimization while the corrected dependency propagates through the downstream package chain.

Remediation Recommendations

Immediate actions should prioritize upgrading all affected Next.js applications to 15.5.24 or 16.3.3 or later. Windows-hosted deployments should be identified first because CVE-2026-75604 has no vendor workaround. Applications that have AVIF optimization enabled should also be reviewed immediately, especially when image/avif is included in the image formats configuration and images originate from remote or user-controlled sources.

Near-term actions should verify the running application version after deployment, not only the package version in source control. Review hosting operating systems, router configuration, Image Optimization settings, remote image sources, and any custom infrastructure that could continue serving an older build after the package has been updated.

Long-term improvements should include accurate software-component inventories, dependency monitoring, rapid framework patching, isolation of public-facing application services, and monitoring for unexpected child processes or filesystem activity from Node.js application servers. Dependency-driven vulnerabilities such as the AVIF flaw also demonstrate the importance of tracking transitive native libraries, not only top-level npm packages.

Instantly Fix Risks with Saner Patch Management

Saner Patch Management is a continuous, automated, and integrated patch management solution that helps organizations rapidly remediate security risks across Windows, Linux, macOS, and a broad range of third-party applications.

The platform supports automated deployment workflows, patch testing, compliance reporting, and rollback capabilities to help reduce operational risk while keeping critical software updates moving quickly across enterprise environments.

Experience the fastest and most accurate patching software here.

Featured Posts

Open August 2026 KEV Surge: Critical Patch Priority for CVE-2026-65400, CVE-2026-55040, CVE-2026-59310 & CVE-2026-33824
August 2026 KEV Alert: Four Critical CVEs Under Active Exploitation

CVE Research

August 2026 KEV Surge: Critical Patch Priority for CVE-2026-65400, CVE-2026-55040, CVE-2026-59310 & CVE-2026-33824

Aug 24, 2026

Open Cl0p Exploits Critical PTC Windchill Flaw to Target 40+ Organizations
Cl0p Exploits Critical PTC Windchill Flaw to Target 40+ Organizations

CVE Research

Cl0p Exploits Critical PTC Windchill Flaw to Target 40+ Organizations

Aug 24, 2026

Open Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras
Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras

CVE Research

Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras

A single operator compromised 14,530+ Dahua cameras across Ukraine and Russia in 35 days, chaining credential brute-force, a CVE-2021-33044/33045 authentication bypass, and P2P relay abuse to plant a persistent backdoor and harvest transferable admin access.

Aug 21, 2026

Open Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF
Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF

CVE Research

Critical GitLab Flaw Exposes Public Projects to Deletion — Two CVEs Patched, Including High-Severity CSRF

CVE-2026-19478 is a critical code injection vulnerability in GitLab CE/EE that allows an unauthenticated attacker to modify or delete public projects and user data by abusing a GraphQL directive. A second high-severity issue, CVE-2026-19650, involves cross-site request forgery in the GraphQL multiplex query handler. This article examines how the critical vulnerability works, the availability of a public proof-of-concept, the potential impact on self-managed instances, the affected versions, and the security updates released to remediate both issues.

Aug 19, 2026