CVE-2022-31129
06.07.2022, 18:15
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.Enginsight
Vendor | Product | Version |
---|---|---|
momentjs | moment | 2.18.0 ≤ 𝑥 < 2.29.4 |
momentjs | moment | 2.18.0 ≤ 𝑥 < 2.29.4 |
debian | debian_linux | 10.0 |
𝑥
= Vulnerable software versions

Debian Releases

Ubuntu Releases
Ubuntu Product | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gnucash |
| ||||||||||||||||||||
mediawiki |
| ||||||||||||||||||||
node-moment |
| ||||||||||||||||||||
ntopng |
| ||||||||||||||||||||
odoo |
| ||||||||||||||||||||
omnidb |
| ||||||||||||||||||||
postfixadmin |
| ||||||||||||||||||||
ruby-momentjs-rails |
| ||||||||||||||||||||
sabnzbdplus |
| ||||||||||||||||||||
syncthing |
| ||||||||||||||||||||
wordpress |
|
Common Weakness Enumeration
- CWE-400 - Uncontrolled Resource ConsumptionThe software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
- CWE-1333 - Inefficient Regular Expression ComplexityThe product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.
References