CVE-2022-25883
semver vulnerable to Regular Expression Denial of Service
Reported by snyk · Published June 21, 2023
semver is fixed in 7.5.2, 6.3.1 and 5.7.2 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| semver | npm | 7.5.2, 6.3.1, 5.7.2 |
| npm | Amazon Linux | 1:8.19.2-1.18.12.1.1.amzn2023.0.9 |
| nodejs-14 | Chainguard | 14.21.3-r1 |
| v8-devel | Amazon Linux | 2:10.2.154.15-1.18.12.1.1.amzn2023.0.9 |
| arangodb-3.12 | Chainguard | 3.12.9.4-r33 |
| nodejs-devel | Amazon Linux | 1:18.12.1-1.amzn2023.0.9 |
| nodejs | Amazon Linux | 1:18.12.1-1.amzn2023.0.9 |
| nodejs-libs | Amazon Linux | 1:18.12.1-1.amzn2023.0.9 |
| nodejs-full-i18n | Amazon Linux | 1:18.12.1-1.amzn2023.0.9 |
| nodejs-docs | Amazon Linux | 1:18.12.1-1.amzn2023.0.9 |
| arangodb-3.11 | Chainguard | 3.11.14.5-r7 |
| semver | npmjs | 7.5.3, 6.3.1, 5.7.2 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | semver | 0 |
| amazon:2023 | npm | 0 |
| chainguard | nodejs-14 | 0 |
| amazon:2023 | v8-devel | 0 |
| chainguard | arangodb-3.12 | 0 |
| amazon:2023 | nodejs-devel | 0 |
| npm | semver | 7.0.0, 2.0.0-alpha, 6.0.0 |
| amazon:2023 | nodejs | 0 |
| npm | semver | |
| amazon:2023 | nodejs-libs | 0 |
| amazon:2023 | nodejs-full-i18n | 0 |
| n/a | semver | 0 |
| amazon:2023 | nodejs-docs | 0 |
| chainguard | arangodb-3.11 | 0 |
Timeline
- Jun 21, 2023 CVE Published
- Jun 21, 2023 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (14 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (11 in total, the first dated here)
- Jun 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-25883
vulnetix vdb fixes CVE-2022-25883
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-25883/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://security.netapp.com/advisory/ntap-20241025-0004/ url
- https://nvd.nist.gov/vuln/detail/CVE-2022-25883 advisory
- https://github.com/advisories/GHSA-c2qf-rxjj-qqgw advisory
- https://github.com/npm/node-semver/pull/585 patch
- https://github.com/npm/node-semver/pull/593 patch
- https://github.com/npm/node-semver/commit/2f8fd41487acf380194579ecb6f8b1bbfe116be0 patch
- https://github.com/npm/node-semver/commit/928e56d21150da0413a3333a3148b20e741a920c patch
- https://github.com/npm/node-semver url
- https://github.com/npm/node-semver/blob/main/classes/range.js#L97-L104 url
- https://github.com/npm/node-semver/blob/main/internal/re.js#L138 url
- https://github.com/npm/node-semver/blob/main/internal/re.js#L160 url
- https://security.netapp.com/advisory/ntap-20241025-0004 advisory