cve.bz

CVE-2022-31129 Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 5.6%Fix available

High (7.5). EPSS 5.6% estimated probability of exploitation activity in the next 30 days. Fixed in moment 2.29.4.

On this page
moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. Affected versions of moment were found to use an inefficient parsing algorithm. Specifically using string-to-date parsing in moment (more specifically rfc2822 parsing, which is tried by default) has quadratic (N^2) complexity on specific inputs. Users may notice a noticeable slowdown is observed with inputs above 10k characters. Users who pass user-provided strings without sanity length checks to moment constructor are vulnerable to (Re)DoS attacks. The problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. Users are advised to upgrade. Users unable to upgrade should consider limiting date lengths accepted from user input.

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
5.6% (unchanged from 5.6% a week ago; 5.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-21. 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 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-1333 Inefficient Regular Expression Complexity
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31129 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31129?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31129?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-31129 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
momentjs:momentfrom 2.18.0 before 2.29.4
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wc69-rhjr-hc9gnpmmoment>=2.18.0 <2.29.42.29.4
GHSA-wc69-rhjr-hc9gNuGetMoment.js>=2.18.0 <2.29.42.29.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-moment2.24.0+ds-1+deb10u1DLA-3295-1
Debian12, 13, 14node-moment2.29.4+ds-1DEBIAN-CVE-2022-31129
Ubuntu16.04:LTSgnucash, wordpress, sabnzbdplusno fix listedUBUNTU-CVE-2022-31129
Ubuntu18.04:LTSgnucash, mediawiki, syncthing and 2 moreno fix listedUBUNTU-CVE-2022-31129
Ubuntu18.04:LTSnode-moment2.20.1+ds-1ubuntu0.1UBUNTU-CVE-2022-31129 USN-5559-1
Ubuntu20.04:LTSnode-moment2.24.0+ds-2ubuntu0.1UBUNTU-CVE-2022-31129 USN-5559-1
Ubuntu20.04:LTSntopng, omnidb, gnucash and 4 moreno fix listedUBUNTU-CVE-2022-31129
Ubuntu22.04:LTSnode-moment2.29.1+ds-3ubuntu0.2UBUNTU-CVE-2022-31129 USN-5559-1
Ubuntu22.04:LTS, 24.04:LTSodoo, ntopng, omnidb and 4 moreno fix listedUBUNTU-CVE-2022-31129
Ubuntu25.10odoo, ntopng, omnidb and 6 moreno fix listedUBUNTU-CVE-2022-31129
Ubuntu26.04:LTSodoo, gnucash, mediawiki and 3 moreno fix listedUBUNTU-CVE-2022-31129
Ubuntu26.10odoo, gnucash, mediawiki and 4 moreno fix listedUBUNTU-CVE-2022-31129
UbuntuPro:16.04:LTSntopng, node-momentno fix listedUBUNTU-CVE-2022-31129
UbuntuPro:18.04:LTSntopngno fix listedUBUNTU-CVE-2022-31129
7 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatceph_storage:6.1::el9ansible-collection-ansible-posix0:1.2.0-1.3.el9ostRHSA-2023:3623
Red Hatceph_storage:6.1::el9ceph, cephadm, librbd1 and 52 more2:17.2.6-70.el9cpRHSA-2023:3623
Red Hatceph_storage:6.1::el9cephadm-ansible0:2.15.0-1.el9cpRHSA-2023:3623
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el7ssoRHSA-2023:1043
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el8ssoRHSA-2023:1044
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.6-1.redhat_00001.1.el9ssoRHSA-2023:1045
Red Hatrhev_hypervisor:4.4::el8cockpit-ovirt, cockpit-ovirt-dashboard0:0.16.2-1.el8evRHSA-2022:6392
Red Hatrhev_manager:4.4:el8ovirt-engine-ui-extensions0:1.3.5-1.el8evRHSA-2022:6393
Red Hatrhev_manager:4.4:el8ovirt-log-collector0:4.4.7-2.el8evRHSA-2022:6393
Red Hatrhev_manager:4.4:el8ovirt-web-ui0:1.9.1-1.el8evRHSA-2022:6393
Red Hatrhev_manager:4.4:el8rhvm, ovirt-engine, ovirt-engine-setup and 17 more0:4.5.2.4-0.1.el8evRHSA-2022:6393
Red Hatservice_mesh:2.0::el8servicemesh-prometheus0:2.14.0-18.el8.1RHSA-2022:6272
6 more for Red Hat in the JSON and on Red Hat's page.
SUSEManager Proxy 4.2, Manager Retail Branch Server 4.2release-notes-susemanager-proxy4.2.9-150300.3.43.1SUSE-SU-2022:3313-1
SUSEManager Proxy 4.3, Manager Retail Branch Server 4.3release-notes-susemanager-proxy4.3.2-150400.3.9.3SUSE-SU-2022:3761-1
SUSEManager Proxy Module 4.2mgr-daemon4.2.10-150300.2.9.4SUSE-SU-2022:3314-1
SUSEManager Proxy Module 4.2spacewalk-proxy4.2.12-150300.3.21.3SUSE-SU-2022:3314-1
SUSEManager Proxy Module 4.2spacewalk-proxy4.2.13-150300.3.24.2SUSE-SU-2023:0592-1
SUSEManager Proxy Module 4.2spacewalk-proxy-installer4.2.11-150300.3.14.2SUSE-SU-2023:0592-1
SUSEManager Proxy Module 4.2susemanager-tftpsync-recv4.2.5-150300.3.6.2SUSE-SU-2022:3314-1
SUSEManager Proxy Module 4.2, Manager Server Module 4.2mgr-osad4.2.9-150300.2.12.2SUSE-SU-2023:0592-1
SUSEManager Proxy Module 4.2, Manager Server Module 4.2patterns-suse-manager4.2-150300.4.12.2SUSE-SU-2022:3314-1
SUSEManager Proxy Module 4.2, Manager Server Module 4.2rhnlib4.2.7-150300.4.12.2SUSE-SU-2023:0592-1
SUSEManager Proxy Module 4.2, Manager Server Module 4.2spacecmd4.2.19-150300.4.27.2SUSE-SU-2022:3314-1
SUSEManager Proxy Module 4.2, Manager Server Module 4.2spacecmd4.2.21-150300.4.33.2SUSE-SU-2023:0592-1
49 more for SUSE in the JSON and on SUSE's page.

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Fuse provides the affected software but does not use the functionality and as such its impact has been downgraded to Low.

Red Hat Advanced Cluster Management for Kubernetes (RHACM) ships a vulnerable version of the moment library. However, this affected functionality is restricted behind OAuth, reducing the impact to Moderate.

Red Hat Satellite ships a vulnerable version of the moment library. However, this only affects a specific component (qpid-dispatch), reducing the impact to Moderate.

Red Hat Ceph Storage (RHCS) ships a vulnerable version of the moment library, however, it is not directly used and is a transitive dependency from Angular. In addition, the impact would only be to the grafana browser, and not the underlying RHCS system, which reduces the impact to Moderate.

Red Hat OpenShift Service Mesh (OSSM) ships a vulnerable version of the moment library, however, it is not directly used, and as such, the impact has been lowered to Moderate.

Red Hat OpenShift distributed tracing ships a vulnerable version of the moment library, however, it is not directly used, and as such, the impact has been lowered to Moderate.

In Logging Subsystem for Red Hat OpenShift the vulnerable moment nodejs package is bundled in the ose-logging-kibana6 container as a transitive dependency, hence the direct impact is reduced to Moderate.

In OpenShift Container Platform 4 the vulnerabile moment package is a third party dependency, hence the direct impact is reduced to Moderate.

In Quay IO 3.10 and above, no version of affected momentjs is present.

ProductPackageStateAdvisory
OpenShift Service Mesh 2.0openshift-service-mesh/kiali-rhel8:1.24.16-1Fixed 2022-08-08RHSA-2022:5913
OpenShift Service Mesh 2.0servicemesh-prometheus-0:2.14.0-18.el8.1Fixed 2022-08-31RHSA-2022:6272
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8:1.36.12-1Fixed 2022-08-08RHSA-2022:5914
OpenShift Service Mesh 2.1servicemesh-prometheus-0:2.23.0-9.el8Fixed 2022-08-31RHSA-2022:6277
Red Hat Fuse 7.11.1momentFixed 2022-11-28RHSA-2022:8652
Red Hat Gluster Storage 3.5 for RHEL 7grafana-0:5.2.4-6.el7rhgsFixed 2023-03-28RHSA-2023:1486
Red Hat OpenShift Data Foundation 4.11 on RHEL8odf4/mcg-core-rhel8:v4.11.0-30Fixed 2022-08-24RHSA-2022:6156
Red Hat OpenShift Service Mesh 2.2 for RHEL 8openshift-service-mesh/kiali-rhel8:1.48.2-1Fixed 2022-08-08RHSA-2022:5915
Red Hat Single Sign-On 7.0momentFixed 2023-03-01RHSA-2023:1049
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.6-1.redhat_00001.1.el7ssoFixed 2023-03-01RHSA-2023:1043
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected
OpenShift Service Mesh 2.0servicemesh-grafanaWill not fix
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-api-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-header-rhel8Will not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-ui-rhel8Will not fix
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-api-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Affected
48 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-31129.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

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

References

Check your stackJSON