CVE-2021-32012 Denial of Service in SheetJS Pro

Medium 5.5 Published Updated

Attackers can cause denial of service via memory consumption by providing a crafted .xlsx document to the SheetJS library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-32012?

CVE-2021-32012 is a medium-severity denial of service vulnerability in n/a, published on 19 Jul 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

SheetJS and SheetJS Pro through 0.16.9 allows attackers to cause a denial of service (memory consumption) via a crafted .xlsx document that is mishandled when read by xlsx.js (issue 1 of 2).

Weakness: CWE-400

Which versions are affected by CVE-2021-32012?

4 open source packages ship an affected version, including org.webjars.npm:xlsx and xlsx. It affects 3 products.

PackageAffectedFixed in
org.webjars.npm:xlsx MavenAll versions0.17.0
org.webjars.npm:xlsx MavenAll versions0.17.0
xlsx npmAll versions0.17.0
xlsx npmAll versions0.17.0

Products include Oracle Rest Data Services, Sheetjs Project Sheetjs, Sheetjs Project Sheetjs Pro.

How do I fix CVE-2021-32012?

Upgrade org.webjars.npm:xlsx to 0.17.0 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-2021-32012 being exploited?

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

Sources

Also known as GHSA-3x9f-74h4-2fqr.

Is CVE-2021-32012 in your software?

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

Check your SBOMs for free