#VU72033 Incorrect Regular Expression in Luxon


Published: 2023-02-07

Vulnerability identifier: #VU72033

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-22467

CWE-ID: CWE-185

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Luxon
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 an incorrect regular expression when parsing untrusted input within the Luxon's DateTime.fromRFC2822() function. A remote attacker can causes a noticeable slowdown for inputs with lengths above 10k characters.

Note, this is the same vulnerability as #VU65835 (CVE-2022-31129) reported earlier for moment.js.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Luxon: 3.0.0 - 3.2.0, 2.0.0 - 2.5.1, 1.0.0 - 1.28.0


External links
http://github.com/moment/luxon/commit/5ab3bf64a10da929a437629cdb2f059bb83212bf
http://github.com/moment/luxon/security/advisories/GHSA-3xq5-wjfh-ppjc


Q & A

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.


Latest bulletins with this vulnerability