CVE-2025-59471
A denial of service vulnerability exists in self-hosted Next.js applications that have `remotePatterns` configured for the Image Optimizer. The image optimization endpoint (`/_next/image`) loads external images entirely into memory without enforcing a maximum size limit, allowing an attacker to cause out-of-memory conditions by requesting optimization of arbitrarily large images. This vulnerability requires that `remotePatterns` is configured to allow image optimization from external domains and that the attacker can serve or control a large image on an allowed domain. Strongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.
What to do
Fixed builds are available from npm: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | firefox | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | thunderbird | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-host | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0-source-built-artifacts | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | dotnet7.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | firefox | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | firefox-x11 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | netstandard-targeting-pack-2.1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | thunderbird | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | firefox | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | thunderbird | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | firefox | Fix pending Fix deferred | ||
| npm library | next | Fixed | 16.1.5 | GHSA-9g9p-9gw9-jx7f |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- vercel next: affected: 10.0 to before 10.0, 11.0 to before 11.0, 12.0 to before 12.0, 13.0 to before 13.0, 14.0 to before 14.0, 15.0 to before 15.5.10; fixed in
10.0,11.0,12.0,13.0,14.0,15.5.10
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.