Skip to content
OpenAdvisories
Medium · 6.5 CVE-2016-4055 EUVD-2017-0191GHSA-87vv-r9j6-g5qv

Regular Expression Denial of Service in moment

Published Jan 23, 2017 · Updated Aug 6, 2024 · Assigned by mitre

Description

The duration function in the moment package before 2.11.2 for Node.js allows remote attackers to cause a denial of service (CPU consumption) via a long string, aka a "regular expression Denial of Service (ReDoS)."

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-moment 2.13.0+ds-1 —
Debian 13 node-moment 2.13.0+ds-1 —
Debian 12 node-moment 2.13.0+ds-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS node-moment 2.11.0+ds-1ubuntu0.1~esm1 USN-4786-1

Affected packages

EcosystemPackageAffectedFixedRecord
npm moment < 2.11.2 2.11.2 GHSA-87vv-r9j6-g5qv

Advisories 1

References