Vulnerability identifier: #VU65835
Vulnerability risk: Medium
CVSSv4.0: [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID:
CWE-ID:
CWE-185
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
Moment
Web applications /
JS libraries
Vendor: Moment.js
Description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to improper validation of user-supplied input when parsing overly long strings. A remote attacker can pass a string that contains more that 10k characters and perform regular expression denial of service (ReDoS) attack.
Mitigation
Install updates from vendor's website.
Vulnerable software versions
Moment: 2.18.0 - 2.29.3
External links
http://github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3
http://github.com/moment/moment/pull/6015#issuecomment-1152961973
http://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g
http://huntr.dev/bounties/f0952b67-f2ff-44a9-a9cd-99e0a87cb633/
http://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/
http://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.