Inadequate file size control In next
Description
A flaw was found in Next.js. When self-hosting Next.js with the default image loader, the Image Optimization API fetches local images entirely into memory without enforcing a maximum size limit. A remote attacker could exploit this by requesting large local assets from the /_next/image endpoint. This can lead to out-of-memory conditions, resulting in a Denial of Service (DoS) for the application.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
npm | 15.5.16, 16.2.5 | ||
rpm rhel7 | - | - | |
rpm rhel8 | - | - | |
rpm rhel10 | - | - | |
rpm rhel8 | - | - | |
rpm rhel10 | - | - | |
rpm rhel9 | - | - | |
rpm rhel9 | - | - |
Aliases
1. 2. 3. 4. 5.
References
1. 2. 3.