CVE-2024-47831
Next.js image optimization has Denial of Service condition
Reported by github_m · Published October 14, 2024
next is fixed in 14.2.7 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| next | npm | 14.2.7 |
| jitsucom-jitsu | Chainguard | 2.8.2-r1 |
| next.js | vercel | 14.2.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vercel | next.js | >= 10.0.0, < 14.2.7 |
| npm | next | 10.0.0 |
| chainguard | jitsucom-jitsu | 0 |
| vercel | next.js | 10.0.0 |
| wolfi | jitsucom-jitsu | 0 |
Timeline
- Oct 14, 2024 CVE Published
- Oct 15, 2024 EPSS Score (30 in total, the first dated here)
- Oct 15, 2024 CVE Updated
- Oct 16, 2024 Coalition ESS Score (8 in total, the first dated here)
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-47831
vulnetix vdb fixes CVE-2024-47831
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-47831/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vercel/next.js/security/advisories/GHSA-g77x-44xx-532m x_refsource_CONFIRM
- https://github.com/vercel/next.js/commit/d11cbc9ff0b1aaefabcba9afe1e562e0b1fde65a x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-47831 advisory
- https://github.com/advisories/GHSA-g77x-44xx-532m advisory
- https://github.com/vercel/next.js url