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

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-02)
- Published: 2023-02-08T19:28:29.314Z
- Modified: 2026-10-28T19:10:00.193Z
- Also known as: GHSA-c2jc-4fpr-4vhg
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- hapijs formula: < 3.0.1
- @sideway/formula (npm): before 3.0.1
- hapi formula: before 3.0.1

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhg> (vendor-advisory, web)
- <https://github.com/hapijs/formula/commit/9fbc20a02d75ae809c37a610a57802cd1b41b3fe> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25166> (advisory)
- <https://github.com/hapijs/formula> (package)

## Sources

- CVE List: [CVE-2023-25166](https://www.cve.org/CVERecord?id=CVE-2023-25166), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-c2jc-4fpr-4vhg](https://github.com/advisories/GHSA-c2jc-4fpr-4vhg), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-25166](https://nvd.nist.gov/vuln/detail/CVE-2023-25166), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-25166 · Whole record: https://cve.day/CVE-2023-25166.json · Rebuilt by cve.day 2026-11-25T22:58:21.883Z
