CVE-2022-31129
CVSS V2 Medium 5
CVSS V3 High 7.5
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.
Overview
- CVE ID
- CVE-2022-31129
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-07-06T18:15:19
- Last Modified Date
- 2023-02-23T16:39:30
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:* | 1 | OR | 2.18.0 | 2.29.4 |
cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:* | 1 | OR | 2.18.0 | 2.29.4 |
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:N/I:N/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- NONE
- Availability Impact
- PARTIAL
- Base Score
- 5
- Severity
- MEDIUM
- Exploitability Score
- 10
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- HIGH
- Base Score
- 7.5
- Base Severity
- HIGH
- Exploitability Score
- 3.9
- Impact Score
- 3.6
References
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-31129 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31129 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-07-06 19:00:09 | Added to TrackCVE | |||
2023-01-31 02:12:05 | 2023-01-31T01:15:11 | CVE Modified Date | updated | |
2023-01-31 02:12:05 | Analyzed | Modified | Vulnerability Status | updated |
2023-01-31 02:12:06 | Weakness Enumeration | update | ||
2023-01-31 02:12:07 | References | updated | ||
2023-02-01 19:13:27 | Modified | Undergoing Analysis | Vulnerability Status | updated |
2023-02-23 17:13:28 | 2023-02-23T16:39:30 | CVE Modified Date | updated | |
2023-02-23 17:13:28 | Undergoing Analysis | Analyzed | Vulnerability Status | updated |