{"id":"CVE-2022-25883","published":"2023-06-21T05:00:03Z","modified":"2024-12-06T16:55:09Z","title":"Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the…","vendor":null,"product":null,"tier":"tail","description":{"text":"Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.\r\r\r","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02761,"percentile":0.86619,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795","tags":[]},{"url":"https://github.com/npm/node-semver/blob/main/internal/re.js%23L160","tags":[]},{"url":"https://github.com/npm/node-semver/blob/main/internal/re.js%23L138","tags":[]},{"url":"https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104","tags":[]},{"url":"https://github.com/npm/node-semver/pull/564","tags":[]},{"url":"https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241025-0004/","tags":[]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":17.32},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"semver","versions":["< 7.5.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-12-06T16:54:52.064322Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"semver","vulnerableRanges":[">=7.0.0, <7.5.2",">=6.0.0, <6.3.1",">=2.0.0-alpha, <5.7.2"],"patched":["7.5.2","6.3.1","5.7.2"],"from":["GHSA-c2qf-rxjj-qqgw"],"provenance":"source"}],"summary":{"text":"The semver npm package, in versions before 7.5.2, contains a flaw in its new Range function that makes it vulnerable to Regular Expression Denial of Service (ReDoS) when untrusted user data is supplied as the range. An attacker who can supply that range input over the network without authentication or user interaction can cause excessive processing that degrades availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:33Z"},"euvd":{"id":"EUVD-2023-1769","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-semver-cve-2015-8855","parents":[{"from":"CVE-2015-8855","to":"CVE-2022-25883","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["semver.js"],"commits":["https://github.com/npm/node-semver/commit/5c4c9f6e26c7052a42b5ced2a7481c5c9b4363a0","https://github.com/npm/node-semver/commit/c80180d8341a8ada0236815c29a2be59864afd70","https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441","https://github.com/npm/node-semver/commit/2f8fd41487acf380194579ecb6f8b1bbfe116be0"],"basis":"shared function","functions":["SemVer","replaceXRanges"]},{"kind":"similar","provenance":"machine","score":0.67,"basis":"same package + description similarity"}]}]}}