Vulnerability in Npmjs Semver
CVE-2022-25883
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS: 0.028 (85.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 86th percentile — 85.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.028 · newest: 0.028 · change: 0.000
Affected products
- Npmjs Semver
- Semver — versions 0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 (Exploit, Patch, Third Party Advisory)
- github.com/npm/node-semver/blob/main/internal/re.js#L160 (Broken Link)
- github.com/npm/node-semver/blob/main/internal/re.js#L138 (Broken Link)
- github.com/npm/node-semver/blob/main/classes/range.js#L97-L104 (Broken Link)
- github.com/npm/node-semver/pull/564 (Patch, Third Party Advisory)
- github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441 (Patch, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Third Party Advisory)
Frequently asked questions
- What is CVE-2022-25883?
- CVE-2022-25883 is a medium-severity vulnerability in Npmjs Semver, classified under Inefficient Regular Expression Complexity. CVSS score: 5.3/10. Published 2023-06-21.
- How severe is CVE-2022-25883?
- Medium severity. CVSS v3 base score is 5.3 out of 10.
- Is CVE-2022-25883 known to be exploited?
- 13 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.