CVE-2024-47831: Next.js image optimization has Denial of Service condition

Published Oct 14, 2024
·
Updated

Impact The image optimization feature of Next.js contained a vulnerability which allowed for a potential Denial of Service (DoS) condition which could lead to excessive CPU consumption.

Not affected: - The next.config.js file is configured with images.unoptimized set to true or images.loader set to a non-default value. - The Next.js application is hosted on Vercel.

Patches This issue was fully patched in Next.js 14.2.7. We recommend that users upgrade to at least this version.

Workarounds Ensure that the next.config.js file has either images.unoptimized, images.loader or images.loaderFile assigned.

Credits Brandon Dahler (brandondahler), AWS Dimitrios Vlastaras

Other sources

Next.js is a React Framework for the Web. Cersions on the 10.x, 11.x, 12.x, 13.x, and 14.x branches before version 14.2.7 contain a vulnerability in the image optimization feature which allows for a potential Denial of Service (DoS) condition which could lead to excessive CPU consumption. Neither the next.config.js file that is configured with images.unoptimized set to true or images.loader set to a non-default value nor the Next.js application that is hosted on Vercel are affected. This issue was fully patched in Next.js 14.2.7. As a workaround, ensure that the next.config.js file has either images.unoptimized, images.loader or images.loaderFile assigned.

MITRE

Affected Software

2 affected componentsFixes available
npm/next>=10.0.0<14.2.7
14.2.7
Vercel Next.js Node.js>=10.0.0<14.2.7

Event History

Oct 14, 2024
CVE Published
via MITRE·06:04 PM
Data Sourced
via MITRE·06:04 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:45 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-47831?

CVE-2024-47831 is classified as a Denial of Service (DoS) vulnerability that can lead to excessive CPU consumption.

2

How do I fix CVE-2024-47831?

To mitigate CVE-2024-47831, update Next.js to version 14.2.7 or higher.

3

Which versions of Next.js are affected by CVE-2024-47831?

CVE-2024-47831 affects Next.js versions between 10.0.0 and 14.2.7.

4

What component of Next.js is impacted by CVE-2024-47831?

CVE-2024-47831 impacts the image optimization feature of Next.js.

5

Is there a configuration to prevent CVE-2024-47831?

Yes, setting the `images.unoptimized` configuration in `next.config.js` can help avoid the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203