CVE-2022-31129

Summary

CVECVE-2022-31129
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-07-06 18:15:00 UTC
Updated2023-11-07 03:47:00 UTC
Descriptionmoment 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.

Risk And Classification

Problem Types: CWE-1333

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Fedoraproject Fedora 35 All All All
Operating System Fedoraproject Fedora 36 All All All
Operating System Fedoraproject Fedora 37 All All All
Application Momentjs Moment All All All All
Application Momentjs Moment All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 37 Update: subscription-manager-cockpit-4-1.fc37 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Inefficient Regular Expression Complexity in moment · Advisory · moment/moment · GitHub CONFIRM github.com
[SECURITY] Fedora 35 Update: python-notebook-6.4.0-4.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[bugfix] Fix redos in preprocessRFC2822 regex by vovikhangcdv · Pull Request #6015 · moment/moment · GitHub MISC github.com
[SECURITY] Fedora 37 Update: subscription-manager-cockpit-4-1.fc37 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] [DLA 3295-1] node-moment security update MLIST lists.debian.org
[SECURITY] Fedora 36 Update: subscription-manager-cockpit-4-1.fc36 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 36 Update: python-notebook-6.4.11-3.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Regular Expression Denial of Service (ReDoS) vulnerability found in moment MISC huntr.dev
CVE-2022-31129 Node.js Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
[bugfix] Fix redos in preprocessRFC2822 regex (#6015) · moment/moment@9a3b589 · GitHub MISC github.com
[SECURITY] Fedora 35 Update: python-notebook-6.4.0-4.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 36 Update: python-notebook-6.4.11-3.fc36 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 36 Update: subscription-manager-cockpit-4-1.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 181017 Debian Security Update for node-moment (CVE-2022-31129)
  • 181530 Debian Security Update for node-moment (DLA 3295-1)
  • 198899 Ubuntu Security Notification for Moment.js Vulnerabilities (USN-5559-1)
  • 199998 Ubuntu Security Notification for PostfixAdmin Vulnerabilities (USN-6550-1)
  • 241726 Red Hat Update for red hat ceph storage 6.1 (RHSA-2023:3623)
  • 282965 Fedora Security Update for python (FEDORA-2022-35b698150c)
  • 282966 Fedora Security Update for python (FEDORA-2022-85aa8e5706)
  • 283088 Fedora Security Update for subscription (FEDORA-2022-b9ef7c3c3c)
  • 285305 Fedora Security Update for python (FEDORA-2023-3256575fc8)
  • 377909 Oracle PeopleSoft Enterprise PeopleTools Product Multiple Vulnerabilities (CPUJAN2023)
  • 378004 Splunk Enterprise Multiple Vulnerabilities (SVD-2023-0215,SVD-2023-0211,SVD-2023-0208)
  • 378599 Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)
  • 378883 Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)
  • 691087 Free Berkeley Software Distribution (FreeBSD) Security Update for mantis (bed545c6-bdb8-11ed-bca8-a33124f1beb1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report