CVE-2021-27290 Regular Expression Denial of Service (ReDoS)

High 7.5 Published Updated

Attackers can cause denial of service via malicious Subresource Integrity strings in the ssri library when the strict option is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-27290?

CVE-2021-27290 is a high-severity denial of service vulnerability in Oracle Graalvm, published on 12 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ssri 5.2.2-8.0.0, fixed in 8.0.1, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option.

Which versions are affected by CVE-2021-27290?

6 open source packages ship an affected version, including ssri. It affects 3 products.

PackageAffectedFixed in
ssri npmFrom 5.2.26.0.2
ssri npmFrom 5.2.26.0.2
ssri npmFrom 7.0.07.1.1
ssri npmFrom 7.0.07.1.1
ssri npmFrom 8.0.08.0.1
ssri npmFrom 8.0.08.0.1

Products include Oracle Graalvm, Siemens Sinec Infrastructure Network Services, Ssri Project Ssri.

How do I fix CVE-2021-27290?

Upgrade ssri to a fixed version for your release line: 6.0.2, 7.1.1 or 8.0.1.

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-27290 being exploited?

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

All Oracle Graalvm vulnerabilities

Sources

Also known as ALPINE-CVE-2021-27290, CLSA-2026-1774225210, CLSA-2026-1783731812, DEBIAN-CVE-2021-27290, GHSA-vx3p-948g-6vhq, ROOT-APP-NPM-CVE-2021-27290 and 1 more.

Is CVE-2021-27290 in your software?

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

Check your SBOMs for free