CVE-2022-36046 Unexpected server crash in Next.js version 12.2.3

Medium 5.3 Published Updated

Attackers can crash Next.js servers by triggering unhandled rejections in specific Node.js environments using next start or custom servers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-36046?

CVE-2022-36046 is a medium-severity denial of service vulnerability in Vercel Next.js, published on 31 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Next.js is a React framework that can provide building blocks to create web applications. All of the following must be true to be affected by this CVE: Next.js version 12.2.3, Node.js version above v15.0.0 being used with strict `unhandledRejection` exiting AND using next start or a [custom server](https://nextjs.org/docs/advanced-features/custom-server). Deployments on Vercel ([vercel.com](https://vercel.com/)) are not affected along with similar environments where `next-server` isn't being shared across requests.

Weakness: CWE-754, CWE-248

Which versions are affected by CVE-2022-36046?

3 open source packages ship an affected version, including next and nextjs. It affects 1 product.

PackageAffectedFixed in
next npmFrom 12.2.312.2.4
next npmFrom 12.2.312.2.4
nextjs PyPIAll versions to 12.2.3None

Products include Vercel Next.js.

How do I fix CVE-2022-36046?

Upgrade next to 12.2.4 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-36046 being exploited?

There is no known exploitation of CVE-2022-36046 in the wild and no public exploit code.

All Vercel Next.js vulnerabilities

Sources

Also known as GHSA-wff4-fpwg-qqv3, PYSEC-2022-43188.

Is CVE-2022-36046 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free