GHSA-2XP9-VWFH-VXW4
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used
Overview
Description
A vulnerability in the underlying libheif library used by sharp which Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.
Until a fix has propagated, optimization of AVIF files is disabled.
Source: OX vulnerability database
Severity
CRITICAL
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | next | >=10.0.0, <15.5.24>=16.0.0, <16.3.3 | 15.5.2416.3.3 |
| Seal npm | @seal-security/next | >=16.0.6-sp1, <16.0.6-sp999 | 16.0.6-sp999 |
| Seal npm | next | >=16.0.6-sp0, <16.0.6-sp999 | 16.0.6-sp999 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497
- github.com https://github.com/vercel/next.js
- github.com https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3
- github.com https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2
- github.com https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998
- github.com https://github.com/vercel/next.js/pull/97875
- github.com https://github.com/vercel/next.js/pull/97931
- github.com https://github.com/vercel/next.js/releases/tag/v15.5.24
- github.com https://github.com/vercel/next.js/releases/tag/v16.3.3
- github.com https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.