ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2022-31129

Details

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 packages

EcosystemPackageAffected versions
Ubuntu:16.04:LTSgnucash
All versions, no fix listed
Ubuntu:Pro:16.04:LTSnode-moment
All versions, no fix listed
Ubuntu:Pro:16.04:LTSntopng
All versions, no fix listed
Ubuntu:16.04:LTSsabnzbdplus
All versions, no fix listed
Ubuntu:16.04:LTSwordpress
All versions, no fix listed
Ubuntu:18.04:LTSnode-moment
All versions before 2.20.1+ds-1ubuntu0.1 (fixed in 2.20.1+ds-1ubuntu0.1)
Ubuntu:18.04:LTSgnucash
All versions, no fix listed
Ubuntu:18.04:LTSmediawiki
All versions, no fix listed
Ubuntu:Pro:18.04:LTSntopng
All versions, no fix listed
Ubuntu:18.04:LTSsabnzbdplus
All versions, no fix listed
Ubuntu:18.04:LTSsyncthing
All versions, no fix listed
Ubuntu:18.04:LTSwordpress
All versions, no fix listed
Ubuntu:20.04:LTSnode-moment
All versions before 2.24.0+ds-2ubuntu0.1 (fixed in 2.24.0+ds-2ubuntu0.1)
Ubuntu:20.04:LTSgnucash
All versions, no fix listed
Ubuntu:Pro:20.04:LTSmediawiki
All versions, no fix listed
Ubuntu:20.04:LTSntopng
All versions, no fix listed
Ubuntu:20.04:LTSomnidb
All versions, no fix listed
Ubuntu:20.04:LTSruby-momentjs-rails
All versions, no fix listed
Ubuntu:20.04:LTSsabnzbdplus
All versions, no fix listed
Ubuntu:20.04:LTSsyncthing
All versions, no fix listed
Ubuntu:20.04:LTSwordpress
All versions, no fix listed
Ubuntu:22.04:LTSgnucash
All versions, no fix listed
Ubuntu:22.04:LTSnode-moment
All versions before 2.29.1+ds-3ubuntu0.2 (fixed in 2.29.1+ds-3ubuntu0.2)
Ubuntu:22.04:LTSntopng
All versions, no fix listed
Ubuntu:22.04:LTSodoo
All versions, no fix listed
Ubuntu:22.04:LTSomnidb
All versions, no fix listed
Ubuntu:22.04:LTSruby-momentjs-rails
All versions, no fix listed
Ubuntu:22.04:LTSsabnzbdplus
All versions, no fix listed
Ubuntu:22.04:LTSwordpress
All versions, no fix listed
Ubuntu:Pro:22.04:LTSmediawiki
All versions, no fix listed
Ubuntu:Pro:22.04:LTSpostfixadmin
All versions before 3.3.10-2ubuntu0.1~esm1 (fixed in 3.3.10-2ubuntu0.1~esm1)
Ubuntu:Pro:22.04:LTSsyncthing
All versions, no fix listed
Ubuntu:24.04:LTSgnucash
All versions, no fix listed
Ubuntu:24.04:LTSntopng
All versions, no fix listed
Ubuntu:24.04:LTSodoo
All versions, no fix listed
Ubuntu:24.04:LTSomnidb
All versions, no fix listed
Ubuntu:24.04:LTSruby-momentjs-rails
All versions, no fix listed
Ubuntu:24.04:LTSsabnzbdplus
All versions, no fix listed
Ubuntu:24.04:LTSwordpress
All versions, no fix listed
Ubuntu:Pro:24.04:LTSmediawiki
All versions, no fix listed
Ubuntu:Pro:24.04:LTSpostfixadmin
All versions, no fix listed
Ubuntu:Pro:24.04:LTSsyncthing
All versions, no fix listed
Ubuntu:25.10gnucash
All versions, no fix listed
Ubuntu:25.10mediawiki
All versions, no fix listed
Ubuntu:25.10ntopng
All versions, no fix listed
Ubuntu:25.10odoo
All versions, no fix listed
Ubuntu:25.10omnidb
All versions, no fix listed
Ubuntu:25.10postfixadmin
All versions, no fix listed
Ubuntu:25.10sabnzbdplus
All versions, no fix listed
Ubuntu:25.10syncthing
All versions, no fix listed
Ubuntu:25.10wordpress
All versions, no fix listed
Ubuntu:26.10gnucash
All versions, no fix listed
Ubuntu:26.10mediawiki
All versions, no fix listed
Ubuntu:26.10odoo
All versions, no fix listed
Ubuntu:26.10postfixadmin
All versions, no fix listed
Ubuntu:26.10sabnzbdplus
All versions, no fix listed
Ubuntu:26.10syncthing
All versions, no fix listed
Ubuntu:26.10wordpress
All versions, no fix listed
Ubuntu:26.04:LTSgnucash
All versions, no fix listed
Ubuntu:26.04:LTSmediawiki
All versions, no fix listed
Ubuntu:26.04:LTSodoo
All versions, no fix listed
Ubuntu:26.04:LTSpostfixadmin
All versions, no fix listed
Ubuntu:26.04:LTSsabnzbdplus
All versions, no fix listed
Ubuntu:26.04:LTSwordpress
All versions, no fix listed
Ubuntu:Pro:26.04:LTSsyncthing
All versions, no fix listed

References