CVE-2022-31129
A public proof of concept exists; no exploitation attested.
- Published2022-07-06
- WeaknessCWE-1333 · CWE-400
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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
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.
Timeline
dates in UTC- 2022-07-0618:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 35.x | = 35 | no fix published | NVD |
| 36.x | = 36 | no fix published | NVD |
| 37.x | = 37 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.x | ≥ 2.18.0, < 2.29.4 | 2.29.4 | NVD · OSV |
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 GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- momentAffected
- = >= 2.18.0, < 2.29.4no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2023-01-31
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/momentRoot:npmall versions · fixed in 2.24.0-root.io.1
- @rootio/momentRoot:npmall versions · fixed in 2.24.0-root.io.2
- @rootio/momentRoot:npmall versions · fixed in 2.24.0-root.io.3
- @rootio/momentRoot:npmall versions · fixed in 2.26.0-root.io.1
- @rootio/momentRoot:npmall versions · fixed in 2.26.0-root.io.2
- @rootio/momentRoot:npmall versions · fixed in 2.27.0-root.io.1
- @rootio/momentRoot:npmall versions · fixed in 2.27.0-root.io.2
- @rootio/momentRoot:npmall versions · fixed in 2.29.3-root.io.1
142 more package ranges on OSV.dev
Vendor advisories
moment: inefficient parsing algorithm resulting in DoS
servicemesh-grafana as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana-prometheus as a component of OpenShift Service Mesh 2.0 · servicemesh-grafana.src as a component of OpenShift Service Mesh 2.0 · +112 more
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 5.0.0 security, enhancement & bug fix update
Red Hat Security Advisory: Red Hat Ceph Storage 6.1 security and bug fix update
Red Hat Security Advisory: Red Hat Gluster Storage web-admin-build security update
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update on RHEL 7
Red Hat Security Advisory: Red Hat Single Sign-On 7.6.2 security update
22 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2026:100741 · 112 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://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/5.0/html/updating_openshift_data_foundation/updating-ocs-t…
- Vendor fix Red Hat Product Security RHSA-2023:3623 · 159 productsFor details on how to apply this update, see Upgrade a Red Hat Ceph Storage cluster using cephadm in the Red Hat Storage Ceph Upgrade Guide (https://access.redhat.com/documentation/en-us/red_hat_ceph_storage).
- Vendor fix Red Hat Product Security RHSA-2023:1486 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2023:1043 · 3 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
- Vendor fix Red Hat Product Security RHSA-2022:8652 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Installation instructions are available from the Fuse 7.11.1 product documentation page: https://access.redhat.com/documentation/en-us/red_ha…
- Vendor fix Red Hat Product Security RHSA-2022:7313 · 192 productsFor Red Hat Advanced Cluster Management for Kubernetes, see the following documentation, which will be updated shortly for this release, for important instructions on installing this release: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html-…
Advisories and patches
- github.comPatch
- github.comPatch
- huntr.devPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-04-22
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-04-22
- CNACVSS 3.17.5known since 2026-10-23
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- CNAweakness (CWE)CWE-400known since 2026-10-23
- NVDweakness (CWE)CWE-1333read 2026-10-23
- FIRST EPSSEPSS score5.6 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHigh2022-07-06
Identifiers
- CGA-g47x-x7x4-68vgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gf45-j243-v6qrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-q59g-w9vh-7hw9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-wgxf-fwj2-hmmjsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2022-6433same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-wc69-rhjr-hc9gsame flawGitHub Advisory Database · CC-BY-4.0
- DLA-3295-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2022-0323advisory covering several CVEsMageia · LicenseRef-unstated
- MGASA-2024-0067advisory covering several CVEsMageia · LicenseRef-unstated
- RHSA-2022:6272advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6277advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6392advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6393advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1043advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1044advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1045advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1486advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:3623advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2022:3313-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3314-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3761-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:0592-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5559-1advisory covering several CVEsUbuntu
- USN-6550-1advisory covering several CVEsUbuntu
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
- 2022-07-06
- Last modified
- 2025-11-03
- NVD status
- Modified
- GitHub advisory
- GHSA-wc69-rhjr-hc9g
Frequently asked questions
What is CVE-2022-31129?
Is CVE-2022-31129 actively exploited?
What is the CVSS score for CVE-2022-31129?
Running moment? 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 checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-wc69-rhjr-hc9g
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0