Skip to main content
Public proof of conceptFix available

CVE-2022-25883

A public proof of concept exists; no exploitation attested.

  • Published2023-06-21
  • Fixed in7.5.3 · 7.5.2 · 6.3.1 · 5.7.2
  • WeaknessCWE-1333

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2023-06-2105:15CVE publishedNVD

Versions per branch

NVD · OSV
Npmjs semver
BranchAffectedFixed in
7.x≥ 7.0.0, < 7.5.37.5.3
7.x≥ 7.0.0, < 7.5.27.5.2
6.x≥ 6.0.0, < 6.3.16.3.1
5.7< 5.7.25.7.2
5.7≥ 2.0.0-alpha, < 5.7.25.7.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As snyk, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • semver
    Affected
    • < 7.5.2fixed in 7.5.2semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-06-21

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/semverRoot:npmall versions · fixed in 5.7.1-root.io.1
  • @rootio/semverRoot:npmall versions · fixed in 5.0.3-root.io.1
  • @rootio/semverRoot:npmall versions · fixed in 5.0.3-root.io.2
  • @rootio/semverRoot:npmall versions · fixed in 5.3.0-root.io.1
  • @rootio/semverRoot:npmall versions · fixed in 5.7.1-root.io.2
  • @rootio/semverRoot:npmall versions · fixed in 6.3.0-root.io.1
  • @rootio/semverRoot:npmall versions · fixed in 7.0.0-root.io.1
  • @rootio/semverRoot:npmall versions · fixed in 7.0.0-root.io.2

160 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-25883 Red Hat Product Security838 products fixed · 60 known affected

    nodejs-semver: Regular expression denial of service

    mta/mta-ui-rhel9 as a component of Migration Toolkit for Applications 6 · migration-toolkit-virtualization/mtv-ui-rhel8 as a component of Migration Toolkit for Virtualization · openshift-pipelines/pipelines-hub-ui-rhel8 as a component of OpenShift Pipelines · +57 more

  • RHSA-2025:19094 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.24.0 Release.

  • RHSA-2024:6044 Red Hat Product Security171 products fixed

    Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.11.2 bug fixes and container updates

  • RHSA-2024:5955 Red Hat Product Security155 products fixed

    Red Hat Security Advisory: Multicluster Engine for Kubernetes 2.6.2 security updates and bug fixes

  • RHSA-2024:0719 Red Hat Product Security7 products fixed

    Red Hat Security Advisory: Migration Toolkit for Runtimes security, bug fix and enhancement update

  • RHSA-2023:7222 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.8.2 security and bug fix update

10 more advisories

Full record on NVD

Fix

  1. Update Npmjs semver to 7.5.3 · 7.5.2 · 6.3.1 · 5.7.2
  2. Vendor fix Red Hat Product Security RHSA-2025:19094 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2024:6044 · 171 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2024:5955 · 155 productsFor multicluster engine for Kubernetes, see the following documentation for details on how to install the images: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.11/html/clusters/cluster_mce_overview#mce-install-intro
  5. Vendor fix Red Hat Product Security RHSA-2024:0719 · 7 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2023:5485 · 119 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  7. Vendor fix Red Hat Product Security RHSA-2023:5488 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link (you must log in to download the update).

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-12-06
  • CNACVSS 3.15.3known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CISA-ADPweakness (CWE)CWE-13332024-12-06
  • CNAweakness (CWE)CWE-1333known since 2026-10-23
  • NVDweakness (CWE)CWE-1333read 2026-10-23
  • FIRST EPSSEPSS score2.8 %2026-11-09
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2023-06-22

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2023-06-21
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-c2qf-rxjj-qqgw

Frequently asked questions

What is 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.

Is CVE-2022-25883 actively exploited?

A proof-of-concept exploit exists for CVE-2022-25883, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-25883?

CVE-2022-25883 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running semver? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record