CVE-2022-31129

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub_MCNA
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 85%
VendorProductVersion
momentjsmoment
2.18.0 ≤
𝑥
< 2.29.4
momentjsmoment
2.18.0 ≤
𝑥
< 2.29.4
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-moment
bullseye
2.29.1+ds-2+deb11u2
fixed
sid
2.29.4+ds-1
fixed
trixie
2.29.4+ds-1
fixed
bookworm
2.29.4+ds-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
gnucash
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
ignored
mediawiki
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
dne
trusty
ignored
node-moment
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
Fixed 2.29.1+ds-3ubuntu0.2
released
impish
ignored
focal
Fixed 2.24.0+ds-2ubuntu0.1
released
bionic
Fixed 2.20.1+ds-1ubuntu0.1
released
xenial
needs-triage
trusty
dne
ntopng
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
dne
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
dne
odoo
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
dne
bionic
dne
xenial
dne
trusty
dne
omnidb
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
dne
xenial
dne
trusty
dne
postfixadmin
noble
needed
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
Fixed 3.3.10-2ubuntu0.1~esm1
released
impish
ignored
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
ignored
ruby-momentjs-rails
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
dne
xenial
dne
trusty
dne
sabnzbdplus
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
ignored
syncthing
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
dne
trusty
dne
wordpress
noble
needs-triage
mantic
ignored
lunar
ignored
kinetic
ignored
jammy
needs-triage
impish
ignored
focal
needs-triage
bionic
needs-triage
xenial
needs-triage
trusty
ignored
References