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

Medium 5.5 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2023-25166?

CVE-2023-25166 is a medium-severity vulnerability in hapijs formula, published on 8 Feb 2023.

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.

Weakness: CWE-1333

Which versions are affected by CVE-2023-25166?

2 open source packages ship an affected version, including @sideway/formula. It affects 1 product.

PackageAffectedFixed in
@sideway/formula npmAll versions3.0.1
@sideway/formula npmAll versions3.0.1

Products include Hapi Formula.

How do I fix CVE-2023-25166?

Upgrade @sideway/formula to 3.0.1 or later.

Is CVE-2023-25166 being exploited?

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

Sources

Also known as GHSA-c2jc-4fpr-4vhg.

Is CVE-2023-25166 in your software?

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

Check your SBOMs for free