CVE-2025-59471 Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
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.
Upgrade path
16 packages: 3 fixed, 13 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/com.github.streamshub-console(Red Hat amq_streams 2) | All versions | No fix listed | No fix yet |
| redhat/com.github.streamshub-console(Red Hat amq_streams 3) | All versions | No fix listed | No fix yet |
| redhat/dotnet7.0(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/firefox(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhtas/rekor-search-ui-rhel9(Red Hat trusted_artifact_signer 1) | All versions | No fix listed | No fix yet |
| redhat/thunderbird(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/thunderbird(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/thunderbird(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| npm next(npm) | >= 10.0.0, < 15.5.10; >= 15.6.0-canary.0, < 16.1.5 | 15.5.10, 16.1.5 | Fixed |
| vercel next | >= 10.0, < 10.0; >= 11.0, < 11.0; >= 12.0, < 12.0; >= 13.0, < 13.0 +3 more | 10.0, 11.0, 12.0, 13.0, 14.0, 15.5.10, 16.1.5 | Fixed |
| vercel next.js | >= 10.0.0, < 15.5.10; >= 16.0.0, < 16.1.5 | 15.5.10, 16.1.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm next(npm) | >= 10.0.0, < 15.5.10 | 15.5.10 |
| npm next(npm) | >= 15.6.0-canary.0, < 16.1.5 | 16.1.5 |
| vercel next | >= 10.0, < 10.0 | 10.0 |
| vercel next | >= 11.0, < 11.0 | 11.0 |
| vercel next | >= 12.0, < 12.0 | 12.0 |
| vercel next | >= 13.0, < 13.0 | 13.0 |
| vercel next | >= 14.0, < 14.0 | 14.0 |
| vercel next | >= 15.0, < 15.5.10 | 15.5.10 |
| vercel next | >= 16.0, < 16.1.5 | 16.1.5 |
| redhat/firefox(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/firefox(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/firefox(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/dotnet7.0(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/firefox(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhtas/rekor-search-ui-rhel9(Red Hat:trusted_artifact_signer:1) | All versions | No fix listed |
| redhat/com.github.streamshub-console(Red Hat:amq_streams:2) | All versions | No fix listed |
| redhat/com.github.streamshub-console(Red Hat:amq_streams:3) | All versions | No fix listed |
| vercel next.js | >= 10.0.0, < 15.5.10 | 15.5.10 |
| vercel next.js | >= 16.0.0, < 16.1.5 | 16.1.5 |
References
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com
- github.com
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2433094 issue-tracking
- www.cve.org
- github.com product