Vulnerability · Published Feb 8, 2023 · Assigned by GitHub_M

CVE-2023-25166Regular Expression Denial of Service (ReDoS) Vulnerability

Medium 5.5

In plain English

A medium-severity regular-expression denial of service in formula from hapijs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.6%top 50.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

formula is a math and string formula parser. In versions prior to 3.0.1 crafted user-provided strings to formula's parser might lead to polynomial execution time and a denial of service. Users should upgrade to 3.0.1+. There are no known workarounds for this vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@sideway/formula3.0.1GHSA-c2jc-4fpr-4vhg

Affected products (as reported)

VendorProductVersions
hapijs formula < 3.0.1

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

References