cve.bz

CVE-2022-25883 npmjs semver

7.5 highExploit referenceEPSS 2.8%Fix available

High (7.5) in npmjs semver. EPSS 2.8% estimated probability of exploitation activity in the next 30 days. Fixed in semver 5.7.2, 6.3.1, 7.5.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-12-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-25883 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25883?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25883?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-25883 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
npmjs:semverbefore 5.7.2
npmjs:semverfrom 6.0.0 before 6.3.1
npmjs:semverfrom 7.0.0 before 7.5.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c2qf-rxjj-qqgwnpmsemver>=7.0.0 <7.5.27.5.2
GHSA-c2qf-rxjj-qqgwnpmsemver>=6.0.0 <6.3.16.3.1
GHSA-c2qf-rxjj-qqgwnpmsemver>=2.0.0-alpha <5.7.25.7.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-semverno fix listedDEBIAN-CVE-2022-25883
Debian13, 14node-semver7.5.4+~7.5.0-1DEBIAN-CVE-2022-25883
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 6 morenode-semverno fix listedUBUNTU-CVE-2022-25883
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.20.2-2.module+el8.8.0+19898+ab99ba34RHSA-2023:5360
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.17.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5362
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5362
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.8.0+19764+7eed1ca3RHSA-2023:5360
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:26-1.module+el8.8.0+19857+6d2a104dRHSA-2023:5360
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:5362
Red Hatenterprise_linux:8::appstreamnpm1:8.19.4-1.16.20.2.2.module+el8.8.0+19898+ab99ba34RHSA-2023:5360
Red Hatenterprise_linux:8::appstreamnpm1:9.6.7-1.18.17.1.1.module+el8.8.0+19757+8ca87034RHSA-2023:5362
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.17.1-1.module+el9.2.0.z+19753+58118bc0RHSA-2023:5363
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:3.0.1-1.module+el9.2.0.z+19753+58118bc0RHSA-2023:5363
Red Hatenterprise_linux:9::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:5363
Red Hatenterprise_linux:9::appstreamnpm1:9.6.7-1.18.17.1.1.module+el9.2.0.z+19753+58118bc0RHSA-2023:5363
49 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedvelociraptor0.7.0.4.git74.3426c0a-9.1openSUSE-SU-2024:14012-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.20.2-2.module_el8.8.0+3614+204d6f43ALSA-2023:5360
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.17.1-1.module_el8.8.0+3613+1ed8c91dALSA-2023:5362
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2023:5362
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.8.0+3614+204d6f43ALSA-2023:5360
AlmaLinux8nodejs-packaging26-1.module_el8.8.0+3614+204d6f43ALSA-2023:5360
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:5362
AlmaLinux8npm1:8.19.4-1.16.20.2.2.module_el8.8.0+3614+204d6f43ALSA-2023:5360
AlmaLinux8npm1:9.6.7-1.18.17.1.1.module_el8.8.0+3613+1ed8c91dALSA-2023:5362
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.17.1-1.module_el9.2.0+36+853e48f5ALSA-2023:5363
AlmaLinux9nodejs-nodemon3.0.1-1.module_el9.2.0+36+853e48f5ALSA-2023:5363
AlmaLinux9nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:5363
AlmaLinux9npm1:9.6.7-1.18.17.1.1.module_el9.2.0+36+853e48f5ALSA-2023:5363
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1667+4a788d89RLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1823+b5789597RLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1824+532140eeRLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1924+614dc87fRLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1935+d3cbe60fRLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1988+437f3d23RLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1989+e60144d9RLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.9.0+1760+903d54b9RLSA-2023:5360 RLSA-2023:5362
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2023:5362
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1823+b5789597RLSA-2023:5362
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1824+532140eeRLSA-2023:5362
18 more for Rocky Linux in the JSON.
Azure Linux2js-jqueryno fix listedAZL-43717
Azure Linux2nodejs16.20.1-2AZL-27207
Azure Linux2nodejs-nodemonno fix listedAZL-43534
Azure Linux2nodejs1818.16.0-3AZL-27208
Azure Linux3js-jqueryno fix listedAZL-44694
Azure Linux3nodejs-nodemonno fix listedAZL-45168

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate for Red Hat Products versus NVD's High due to deployment context. The flaw in node-semver's new Range() function causes catastrophic regex backtracking on crafted input, leading to CPU exhaustion. However, exploitation requires untrusted input passed directly to the parser. So node-semver is a build-time dev dependency, not present in runtime environment in RHACM, and the functionality is additionally protected behind OAuth authentication, further limiting attack surface.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-web-container-rhel8:1.2-10Fixed 2024-02-07RHSA-2024:0719
Migration Toolkit for Runtimes 1 on RHEL 8mtr/mtr-web-executor-container-rhel8:1.2-8Fixed 2024-02-07RHSA-2024:0719
multicluster engine for Kubernetes 2.6 for RHEL 8multicluster-engine/assisted-image-service-rhel8:v2.6.2-5Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 8multicluster-engine/assisted-installer-agent-rhel8:v2.6.2-6Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 8multicluster-engine/assisted-installer-controller-rhel8:v2.6.2-5Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 8multicluster-engine/assisted-installer-rhel8:v2.6.2-5Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 8multicluster-engine/assisted-service-8-rhel8:v2.6.2-6Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 9multicluster-engine/addon-manager-rhel9:v2.6.2-6Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 9multicluster-engine/assisted-service-9-rhel9:v2.6.2-7Fixed 2024-08-28RHSA-2024:5955
multicluster engine for Kubernetes 2.6 for RHEL 9multicluster-engine/backplane-rhel9-operator:v2.6.2-7Fixed 2024-08-28RHSA-2024:5955
Cryostat 2nodejs-semverNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected
Migration Toolkit for Applications 6mta/mta-ui-rhel9Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-ui-rhel8Will not fix
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Affected
OpenShift Serverlessnodejs-semverAffected
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Will not fix
Red Hat Advanced Cluster Management for Kubernetes 2acm-cluster-templates-console-plugin-containerFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-api-rhel8Fix deferred
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Will not fix
198 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-25883.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON