CVE-2022-31129: Inefficient Regular Expression Complexity in moment
moment
Vendor fix available · Affected: moment · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 92% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- moment · moment>= 2.18.0, < 2.29.4
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Published
- July 2022
- Bounty reports
- 1 disclosed on HackerOne
Disclosed bug bounty reports about CVE-2022-31129
The reports on HackerOne that name this CVE, with HackerOne's own outcome. Titles and metadata only.
- [nextcloud/server] Moment.js vulnerable to Inefficient Regular Expression ComplexityNextcloud · 2022Valid
CoverageNo articles yet
No CyberSIXT article names CVE-2022-31129 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-400cwe.mitre.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9ggithub.com
- github.com/moment/moment/pull/6015#issuecomment-1152961973github.com
- github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528github.com
- huntr.dev/bounties/f0952b67-f2ff-44a9-a9cd-99e0a87cb633huntr.dev
- security.netapp.com/advisory/ntap-20221014-0003security.netapp.com
- security.netapp.com/advisory/ntap-20241108-0002security.netapp.com
- Mailing listlists.debian.org