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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-semver | Fix pending | UBUNTU-CVE-2022-25883 | |
| Ubuntu 26.04 | node-semver | Under investigation | UBUNTU-CVE-2022-25883 | |
| Ubuntu 25.10 | node-semver | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-25883 | |
| Ubuntu 24.04 | node-semver | Under investigation | UBUNTU-CVE-2022-25883 | |
| Ubuntu 22.04 | node-semver | Under investigation | UBUNTU-CVE-2022-25883 | |
| Ubuntu 20.04 | node-semver | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-25883 | |
| Ubuntu 18.04 | node-semver | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-25883 | |
| Ubuntu 16.04 | node-semver | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-25883 | |
| Ubuntu 14.04 | node-semver | Fix pending | UBUNTU-CVE-2022-25883 | |
| Debian 14 | node-semver | Fixed | 7.5.4+~7.5.0-1 | DEBIAN-CVE-2022-25883 |
| Debian 13 | node-semver | Fixed | 7.5.4+~7.5.0-1 | DEBIAN-CVE-2022-25883 |
| Debian 12 | node-semver | Fix pending | DEBIAN-CVE-2022-25883 | |
| Red Hat Enterprise Linux 9 | gjs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs | Fixed Will not fix | 1:18.17.1-1.module+el9.2.0.z+19753+58118bc0 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | nodejs-devel | Fixed | 1:18.17.1-1.module+el9.2.0.z+19753+58118bc0 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | nodejs-docs | Fixed Will not fix | 1:18.17.1-1.module+el9.2.0.z+19753+58118bc0 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fixed Will not fix | 1:18.17.1-1.module+el9.2.0.z+19753+58118bc0 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | nodejs-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed Will not fix | 0:3.0.1-1.module+el9.2.0.z+19753+58118bc0 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | npm | Fixed Will not fix | 1:9.6.7-1.18.17.1.1.module+el9.2.0.z+19753+58118bc0 | RHSA-2023:5363 |
| Red Hat Enterprise Linux 9 | pcs | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | polkit-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-legacy-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | 389-ds-base-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-389-ds | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-bridge | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-composer | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-dashboard | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-machines | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-packagekit | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-pcp | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-podman | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-storaged | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-system | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-ws | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:18.17.1-1.module+el8.8.0+19757+8ca87034 | RHSA-2023:5360 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:16.20.2-2.module+el8.8.0+19898+ab99ba34 | RHSA-2023:5362 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:18.17.1-1.module+el8.8.0+19757+8ca87034 | RHSA-2023:5360 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:18.17.1-1.module+el8.8.0+19757+8ca87034 | RHSA-2023:5360 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el8.8.0+19764+7eed1ca3 | RHSA-2023:5362 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:5360 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:5362 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:8.19.4-1.16.20.2.2.module+el8.8.0+19898+ab99ba34 | RHSA-2023:5362 |
| Red Hat Enterprise Linux 8 | pcs | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-lib389 | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-bundled-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-racc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | firefox | Will not fix Out of support scope | ||
| AlmaLinux 9 | nodejs | Fixed | 1:18.17.1-1.module_el9.2.0+36+853e48f5 | ALSA-2023:5363 |
| AlmaLinux 9 | nodejs-devel | Fixed | 1:18.17.1-1.module_el9.2.0+36+853e48f5 | ALSA-2023:5363 |
| AlmaLinux 9 | nodejs-docs | Fixed | 1:18.17.1-1.module_el9.2.0+36+853e48f5 | ALSA-2023:5363 |
| AlmaLinux 9 | nodejs-full-i18n | Fixed | 1:18.17.1-1.module_el9.2.0+36+853e48f5 | ALSA-2023:5363 |
| AlmaLinux 9 | nodejs-nodemon | Fixed | 3.0.1-1.module_el9.2.0+36+853e48f5 | ALSA-2023:5363 |
| AlmaLinux 9 | nodejs-packaging | Fixed | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:5363 |
| AlmaLinux 9 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:5363 |
| AlmaLinux 9 | npm | Fixed | 1:9.6.7-1.18.17.1.1.module_el9.2.0+36+853e48f5 | ALSA-2023:5363 |
| AlmaLinux 8 | nodejs | Fixed | 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d | ALSA-2023:5360 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:16.20.2-2.module_el8.8.0+3614+204d6f43 | ALSA-2023:5362 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d | ALSA-2023:5360 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:16.20.2-2.module_el8.8.0+3614+204d6f43 | ALSA-2023:5362 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 3.0.1-1.module_el8.8.0+3614+204d6f43 | ALSA-2023:5362 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:5360 |
| AlmaLinux 8 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:5362 |
| AlmaLinux 8 | npm | Fixed | 1:9.6.7-1.18.17.1.1.module_el8.8.0+3613+1ed8c91d | ALSA-2023:5360 |
| Rocky Linux 9 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el9.6.0+32185+bd121a25 | RLSA-2023:5363 |
| Rocky Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.6.0+32045+2e5d342d | RLSA-2023:5363 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:3.0.1-1.module+el8.10.0+1924+614dc87f | RLSA-2023:5360 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:2021.06-4.module+el8.10.0+1924+614dc87f | RLSA-2023:5360 |
| npm library | semver | Fixed | 7.5.2 | GHSA-c2qf-rxjj-qqgw |
What the vendor says
As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- semver: affected: before 7.5.2; fixed in
7.5.2
References
- https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L160
- https://github.com/npm/node-semver/blob/main/internal/re.js%23L138
- https://github.com/npm/node-semver/blob/main/classes/range.js%23L97-L104
- https://github.com/npm/node-semver/pull/564
- https://github.com/npm/node-semver/commit/717534ee353682f3bcf33e60a8af4292626d4441
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.