libjs-moment: moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates
CVE-2022-31129 is fixed in 3 products on 1 platform, first by libjs-moment 2.20.1+ds-1ubuntu0.1, released July 6, 2022. It is not reported as exploited. Patch Radar priority: High.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| libjs-moment · Ubuntu 18.04.6 LTS (bionic) | 2.20.1+ds-1ubuntu0.1 | libjs-moment 2.20.1+ds-1ubuntu0.1 | Jul 6, 2022 |
| libjs-moment · Ubuntu 20.04 LTS (focal) | 2.24.0+ds-2ubuntu0.1 | libjs-moment 2.24.0+ds-2ubuntu0.1 | Jul 6, 2022 |
| libjs-moment · Ubuntu 22.04.1 LTS (jammy) | 2.29.1+ds-3ubuntu0.2 | libjs-moment 2.29.1+ds-3ubuntu0.2 | Jul 6, 2022 |
| node-moment · Debian 12.15 (bookworm) | 2.29.4+ds-1 | DEBIAN-CVE-2022-31129 | Jul 6, 2022 |
| node-moment · Debian 13.5 (trixie) | 2.29.4+ds-1 | DEBIAN-CVE-2022-31129 | Jul 6, 2022 |
| node-moment · Debian 14 | 2.29.4+ds-1 | DEBIAN-CVE-2022-31129 | Jul 6, 2022 |
| node-moment · Ubuntu 18.04.6 LTS (bionic) | 2.20.1+ds-1ubuntu0.1 | node-moment 2.20.1+ds-1ubuntu0.1 | Jul 6, 2022 |
| node-moment · Ubuntu 20.04 LTS (focal) | 2.24.0+ds-2ubuntu0.1 | node-moment 2.24.0+ds-2ubuntu0.1 | Jul 6, 2022 |
| node-moment · Ubuntu 22.04.1 LTS (jammy) | 2.29.1+ds-3ubuntu0.2 | node-moment 2.29.1+ds-3ubuntu0.2 | Jul 6, 2022 |
| postfixadmin · Ubuntu 22.04.1 LTS (jammy) | 3.3.10-2ubuntu0.1~esm1 | postfixadmin 3.3.10-2ubuntu0.1~esm1 | Mar 28, 2023 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.