CVE-2023-25166 Regular Expression Denial of Service (ReDoS) Vulnerability
- 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.
| Package | Affected | Fixed in |
|---|---|---|
@sideway/formula npm | All versions | 3.0.1 |
@sideway/formula npm | All versions | 3.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.