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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2024-10-14T18:04:25.927Z
- Modified: 2026-09-10T03:50:19.720Z
- Also known as: GHSA-g77x-44xx-532m
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vercel next.js: >= 10.0.0, < 14.2.7; from 10.0.0 before 14.2.7
- next (npm): from 10.0.0 before 14.2.7

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-g77x-44xx-532m> (vendor-advisory, web)
- <https://github.com/vercel/next.js/commit/d11cbc9ff0b1aaefabcba9afe1e562e0b1fde65a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47831> (advisory)
- <https://github.com/vercel/next.js> (package)

## Sources

- CVE List: [CVE-2024-47831](https://www.cve.org/CVERecord?id=CVE-2024-47831), CVE Terms of Use, modified 2024-10-15
- GitHub Advisory Database: [GHSA-g77x-44xx-532m](https://github.com/advisories/GHSA-g77x-44xx-532m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-47831](https://nvd.nist.gov/vuln/detail/CVE-2024-47831), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47831 · Whole record: https://cve.day/CVE-2024-47831.json · Rebuilt by cve.day 2026-11-25T22:58:46.735Z
