AI Security AI安全 7h ago Updated 2h ago 更新于 2小时前 48

Next.js Patches Critical AVIF and Windows Flaws Enabling Unauthenticated RCE Next.js 修复关键 AVIF 和 Windows 漏洞,可导致未授权远程代码执行

Vercel patched two critical unauthenticated RCE vulnerabilities in Next.js: a Windows path traversal (CVE-2026-75604, CVSS 9.0) and an AVIF heap buffer overflow via libheif (GHSA-2xp9-vwfh-vxw4, CVSS v4: 9.5) The Windows flaw affects Next.js apps using both Pages Router and App Router without Cache Components on Windows filesystems; Linux and macOS are unaffected The AVIF flaw stems from a heap buffer overflow in libheif's image scaling code, where a crafted AVIF file with nested identity-deriva Vercel发布Next.js紧急安全补丁,修复两个允许未认证远程代码执行(RCE)的关键漏洞 CVE-2026-75604(CVSS 9.0)为Windows路径遍历漏洞,仅影响使用Pages Router和App Router且服务器为Windows文件系统的Next.js应用 GHSA-2xp9-vwfh-vxw4(CVSS v4: 9.5)为AVIF图像优化堆缓冲区溢出漏洞,源于上游libheif库的图像缩放代码缺陷 修复版本为Next.js 15.5.24(Maintenance LTS)和16.3.3(Active LTS),已部署于Vercel平台的应用无需升级 受影响版本范围:

75
Hot 热度
65
Quality 质量
60
Impact 影响力

Analysis 深度分析

TL;DR

  • Vercel patched two critical unauthenticated RCE vulnerabilities in Next.js: a Windows path traversal (CVE-2026-75604, CVSS 9.0) and an AVIF heap buffer overflow via libheif (GHSA-2xp9-vwfh-vxw4, CVSS v4: 9.5)
  • The Windows flaw affects Next.js apps using both Pages Router and App Router without Cache Components on Windows filesystems; Linux and macOS are unaffected
  • The AVIF flaw stems from a heap buffer overflow in libheif's image scaling code, where a crafted AVIF file with nested identity-derivation and auxiliary item references causes an out-of-bounds write of ~16,384 bytes
  • Fixes are available in Next.js 15.5.24 and 16.3.3; Vercel's platform is protected without requiring user upgrades
  • Patched releases disable AVIF optimization entirely until the upstream libheif fix (v1.23.2) is published

Why It Matters

These vulnerabilities highlight the cascading risk of deep dependency chains in modern web frameworks, where a flaw in a low-level C library (libheif) can translate directly into unauthenticated RCE in a high-level JavaScript framework. The Windows-specific path traversal also underscores how platform-specific code paths can introduce unique attack surfaces that bypass standard security assumptions.

Technical Details

  • CVE-2026-75604 (Windows Path Traversal, CVSS 9.0): Affects Next.js versions 13.4 through 15.5.23 and 16.0 through 16.3.2 running on Windows filesystems with both Pages Router and App Router (without Cache Components). No workaround exists for affected Windows-hosted applications; immediate upgrade is required. Linux and macOS deployments are not affected.
  • GHSA-2xp9-vwfh-vxw4 (AVIF Heap Buffer Overflow, CVSS v4: 9.5): Next.js uses the sharp image processing package, which relies on the libheif C library to parse AVIF files. A crafted AVIF file containing nested identity-derivation and auxiliary item references causes libheif to construct a decoded image with two Alpha plane entries at different bit depths (8-bit and 16-bit). The scaler allocates a destination buffer sized for the 8-bit Alpha entry but writes 16-bit sample values from the second entry, overwriting approximately 16,384 bytes past the allocation boundary.
  • Affected versions: The AVIF advisory covers Next.js 10.0.0 through 15.5.23 and all 16.x releases through 16.3.2. All libheif versions through v1.23.1 are vulnerable. AVIF optimization must be explicitly enabled via image/avif in next.config.js; deployments without this configuration are not exposed.
  • Mitigation strategy: Patched Next.js releases disable AVIF optimization entirely until the upstream libheif fix propagates. As of August 27, 2026, libheif v1.23.2 had not yet been published.
  • Release context: The August patches were moved forward by one day from the scheduled monthly cadence after Vercel discovered an additional critical-severity vulnerability in an upstream dependency. No exploitation of either August vulnerability had been reported as of August 27, 2026.

Industry Insight

  • Organizations running Next.js on Windows should treat the August upgrade as a critical priority with no acceptable delay, given the unauthenticated RCE nature of CVE-2026-75604 and the absence of any workaround.
  • Teams relying on AVIF image optimization should audit their next.config.js configurations and consider temporarily disabling AVIF support until libheif v1.23.2 is released, balancing performance needs against the unresolved upstream vulnerability.
  • The pattern of critical vulnerabilities in Next.js over the past two years (including the March 2025 middleware bypass and December 2025 React2Shell deserialization flaw) suggests that framework maintainers should strengthen upstream dependency monitoring and consider reducing attack surface by defaulting optional features like AVIF optimization to disabled.

TL;DR

  • Vercel发布Next.js紧急安全补丁,修复两个允许未认证远程代码执行(RCE)的关键漏洞
  • CVE-2026-75604(CVSS 9.0)为Windows路径遍历漏洞,仅影响使用Pages Router和App Router且服务器为Windows文件系统的Next.js应用
  • GHSA-2xp9-vwfh-vxw4(CVSS v4: 9.5)为AVIF图像优化堆缓冲区溢出漏洞,源于上游libheif库的图像缩放代码缺陷
  • 修复版本为Next.js 15.5.24(Maintenance LTS)和16.3.3(Active LTS),已部署于Vercel平台的应用无需升级
  • 受影响版本范围:13.4至15.5.23及16.0至16.3.2,AVIF漏洞仅影响显式配置image/avif格式的应用

为什么值得看

本文揭示了Next.js框架近期连续出现的关键安全漏洞,反映了现代Web框架在依赖上游库时的供应链安全风险。对于使用Next.js的开发者而言,及时升级补丁版本是保障生产环境安全的必要措施。

技术解析

  • Windows路径遍历漏洞(CVE-2026-75604):该漏洞影响同时使用Pages Router和App Router(无Cache Components)的Next.js应用,且仅作用于Windows文件系统环境。Linux和macOS部署不受影响。Vercel明确指出无已知临时解决方案,受影响用户必须立即升级。
  • AVIF图像优化堆溢出漏洞(GHSA-2xp9-vwfh-vxw4):漏洞根因位于libheif库的图像缩放代码。攻击者通过构造包含嵌套身份派生和辅助项引用的恶意AVIF文件,使libheif生成具有两个不同位深度Alpha通道的解码图像。缩放器为8位Alpha条目分配目标缓冲区,却写入16位样本值,导致约16,384字节的堆缓冲区越界写入。
  • 漏洞利用与修复机制:研究人员发布了完整的Python概念验证代码,在地址消毒器构建下复现了堆损坏。Next.js补丁版本通过完全禁用AVIF优化作为临时缓解措施,等待上游libheif修复。libheif v1.23.2截至8月27日尚未发布。
  • 版本覆盖与升级路径:AVIF漏洞影响Next.js 10.0.0至15.5.23及16.x至16.3.2所有版本,但仅当站点在next.config.js中显式配置image/avif格式时才暴露。Windows路径遍历漏洞影响13.4至15.5.23及16.0至16.3.2。升级命令为npm install next@15.5.24或npm install next@16.3.3

行业启示

  • 供应链安全成为框架维护核心挑战:Next.js依赖的libheif库漏洞直接影响上层应用安全,凸显现代Web开发中上游依赖风险传导的严重性。框架维护者需建立更严格的依赖审查和快速响应机制。
  • LLM辅助漏洞发现正在改变安全研究格局:Vercel在安全计划公告中明确指出,行业漏洞研究数量因LLM辅助发现而快速增长。这要求安全团队调整策略,适应自动化漏洞挖掘带来的威胁密度上升。
  • 企业级框架需强化安全发布节奏:Vercel在8月补丁发布前因发现额外关键漏洞而提前一天发布,体现了正式月度安全计划的重要性。Next.js近两年连续出现关键漏洞(包括2025年3月的中间件绕过和12月的React2Shell反序列化漏洞),建议企业用户建立定期安全更新流程并密切关注框架安全公告。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源