{"id":"CVE-2023-25166","published":"2023-02-08T19:28:29Z","modified":"2025-03-10T21:14:39Z","title":"Regular Expression Denial of Service (ReDoS) Vulnerability","vendor":"hapijs","product":"formula","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00636,"percentile":0.51431,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hapijs/formula/commit/9fbc20a02d75ae809c37a610a57802cd1b41b3fe","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":10.29},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"hapijs","affectedVersions":[{"vendor":"hapijs","product":"formula","versions":["< 3.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T20:58:12.667100Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@sideway/formula","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-c2jc-4fpr-4vhg"],"provenance":"source"}],"summary":{"text":"The formula parser in the hapijs formula library, a math and string formula parser, contains a regular expression complexity flaw (CWE-1333, Inefficient Regular Expression Complexity) that causes polynomial-time execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:11Z"},"euvd":{"id":"EUVD-2023-0685","exploited":false,"provenance":"source"}}