Skip to content
Fencer Vulns
medium 5.3

CVE-2022-25883 json

semver vulnerable to Regular Expression Denial of Service

published 2023-06-21 3 y ago modified 2026-09-10 1 mo ago also GHSA-c2qf-rxjj-qqgw , EUVD-2023-1769

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.8%
EPSS 2.8% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm semver 5.7.2, 6.3.1, 7.5.2
  • n/a semver 7.5.2
  • node-semver Debian 14, Debian 13 7.5.4+~7.5.0-1

debian advisories DEBIAN-CVE-2022-25883

  • npm RHEL 8 1:8.19.4-1.16.20.2.2.module+el8.8.0+19898+ab99ba34
  • nodejs RHEL 8 1:16.20.2-2.module+el8.8.0+19898+ab99ba34
  • nodejs-nodemon RHEL 8 3.0.1-1.module+el8.8.0+19764+7eed1ca3
  • nodejs-full-i18n RHEL 8 1:16.20.2-2.module+el8.8.0+19898+ab99ba34
  • nodejs-packaging RHEL 8 26-1.module+el8.8.0+19857+6d2a104d
  • npm RHEL 8 1:9.6.7-1.18.17.1.1.module+el8.8.0+19757+8ca87034
  • nodejs RHEL 8 1:18.17.1-1.module+el8.8.0+19757+8ca87034
  • nodejs-nodemon RHEL 8 3.0.1-1.module+el8.8.0+19757+8ca87034

red hat advisories RHSA-2023:5360RHSA-2023:5361RHSA-2023:5362RHSA-2023:5363RHSA-2023:5485RHSA-2023:5486

  • velociraptor openSUSE Tumbleweed 0.7.0.4.git74.3426c0a-9.1

opensuse advisories openSUSE-SU-2024:14012-1

  • npm AlmaLinux 8 1:8.19.4-1.16.20.2.2.module_el8.8.0+3614+204d6f43
  • nodejs AlmaLinux 8 1:16.20.2-2.module_el8.8.0+3614+204d6f43
  • nodejs-nodemon AlmaLinux 8 3.0.1-1.module_el8.8.0+3614+204d6f43
  • nodejs-full-i18n AlmaLinux 8 1:16.20.2-2.module_el8.8.0+3614+204d6f43
  • nodejs-packaging AlmaLinux 8 26-1.module_el8.8.0+3614+204d6f43
  • npm AlmaLinux 8 1:9.6.7-1.18.17.1.1.module_el8.8.0+3613+1ed8c91d
  • nodejs AlmaLinux 8 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-nodemon AlmaLinux 8 3.0.1-1.module_el8.8.0+3613+1ed8c91d

almalinux advisories ALSA-2023:5360ALSA-2023:5362ALSA-2023:5363

  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1667+4a788d89
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1823+b5789597
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1935+d3cbe60f
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1988+437f3d23
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1824+532140ee
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1924+614dc87f
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.9.0+1760+903d54b9
  • nodejs-nodemon Rocky Linux 8 3.0.1-1.module+el8.10.0+1989+e60144d9

rocky linux advisories RLSA-2023:5360RLSA-2023:5362RLSA-2023:5363

  • nodejs CBL-Mariner 2.0 16.20.1-2
  • nodejs18 CBL-Mariner 2.0 18.16.0-3

azure linux advisories AZL-27207AZL-27208

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-25883 updated cvss 7.5

nodejs-semver: Regular expression denial of service

  • Red Hat Migration Toolkit for Applications 6 mta/mta-ui-rhel8 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8 Red Hat OpenShift Serverless nodejs-semver nodejs-semver
    affected: workaround, no fix available
  • Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8, acm-cluster-templates-console-plugin-container
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-main-rhel8
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Ansible Automation Platform 2 aap-azure-ui, automation-controller, automation-eda-controller
    affected: workaround, no fix available “Fix deferred”
  • Red Hat build of OptaPlanner 8 nodejs-semver nodejs-semver
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Ceph Storage 4 cockpit-ceph-installer Red Hat Certification for Red Hat Enterprise Linux 6 redhat-certification-backend Red Hat Certification for Red Hat Enterprise Linux 7 redhat-certification
    affected: workaround, no fix planned “Out of support scope”
show 19 more
  • Red Hat Data Grid 8 nodejs-semver nodejs-semver
    affected: workaround, no fix available
  • Red Hat Decision Manager 7 nodejs-semver nodejs-semver
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Discovery 1 discovery-server-container
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 6 firefox Red Hat Enterprise Linux 7 firefox
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Fuse 7 nodejs-semver nodejs-semver
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Integration Camel K 1 nodejs-semver nodejs-semver
    affected: workaround, no fix planned “Will not fix”
  • Red Hat JBoss Data Grid 7 nodejs-semver nodejs-semver Red Hat JBoss Enterprise Application Platform 6 nodejs-semver nodejs-semver
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat JBoss Enterprise Application Platform Expansion Pack nodejs-semver nodejs-semver
    affected: workaround, no fix available
  • Red Hat OpenShift Container Platform 3.11 openshift3/ose-console
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat OpenShift Container Platform 4 openshift4/ose-console
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Openshift Data Foundation 4 odf4/odf-console-rhel9
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift Data Science (RHODS) rhods/odh-dashboard-rhel8 Red Hat OpenShift Dev Spaces devspaces/code-rhel8, devspaces/traefik-rhel8 Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin, container-native-virtualization/kubevirt-console-plugin-rhel9
    affected: workaround, no fix available
  • Red Hat Process Automation 7 nodejs-semver nodejs-semver
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Quay 3 quay/quay-rhel8
    affected: workaround, no fix available
  • Red Hat Single Sign-On 7 nodejs-semver nodejs-semver Red Hat Software Collections rh-nodejs14-npm, rh-nodejs14-nodejs, rh-nodejs14-nodejs-nodemon, rh-nodejs14-nodejs-full-i18n Red Hat Virtualization 4 ovirt-web-ui
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Migration Toolkit for Runtimes 1 on RHEL 8 mtr/mtr-web-container-rhel8 1.2-10, mtr/mtr-web-executor-container-rhel8 1.2-8
    fixed: vendor fix RHSA-2024:0719
  • Red Hat multicluster engine for Kubernetes 2.6 for RHEL 8 multicluster-engine/assisted-installer-rhel8 v2.6.2-5, multicluster-engine/assisted-service-8-rhel8 v2.6.2-6, multicluster-engine/assisted-image-service-rhel8 v2.6.2-5, multicluster-engine/assisted-installer-agent-rhel8 v2.6.2-6, multicluster-engine/assisted-installer-controller-rhel8 v2.6.2-5 Red Hat multicluster engine for Kubernetes 2.6 for RHEL 9 multicluster-engine/hive-rhel9 v2.6.2-6, multicluster-engine/work-rhel9 v2.6.2-7, multicluster-engine/discovery-rhel9 v2.6.2-9, multicluster-engine/placement-rhel9 v2.6.2-6, multicluster-engine/cluster-api-rhel9 v2.6.2-6, multicluster-engine/console-mce-rhel9 v2.6.2-8, +28 more
    fixed: vendor fix RHSA-2024:5955

12 more fixed, 13 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
23 mo ago

Exploit prediction

2.76% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SEMVER-3247795 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
npm semver
>=7.0.0, <7.5.2
>=6.0.0, <6.3.1
>=2.0.0-alpha, <5.7.2
7.5.2
6.3.1
5.7.2

Affected products

  • n/a semver

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.