CVE-2022-31129
Summary
| CVE | CVE-2022-31129 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-07-06 18:15:00 UTC |
| Updated | 2023-11-07 03:47:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| [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 |
No vendor comments have been submitted for this CVE.
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)