CVE Catalog

GHSA-2xp9-vwfh-vxw4

Critical
Published: Translated: NVD NIST

Summary

A vulnerability in the 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.

Risk Assessment

The organization may be exposed to remote code execution (RCE) when processing AVIF images, allowing an attacker to take control of the server.

Recommendation

Update libheif to a patched version. Until then, disable AVIF optimization if possible.

Other vulnerabilities in libheif

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS