CVE-2023-22467CWE-1333

luxon.js inefficient regular expression complexity vulnerability

High · published January 4, 2023

CVSS v3.1
7.5
EPSS
2%
Percentile
78.1
In the wild
Unconfirmed
What it is

Luxon is a library for working with dates and times in JavaScript. On the 1.x branch prior to 1.38.1, the 2.x branch prior to 2.5.2, and the 3.x branch on 3.2.1, Luxon's `DateTime.fromRFC2822() has quadratic (N^2) complexity on some specific inputs. This causes a noticeable slowdown for inputs with lengths above 10k characters. Users providing untrusted data to this method are therefore vulnerable to (Re)DoS attacks. This issue also appears in Moment as CVE-2022-31129. Versions 1.38.1, 2.5.2, and 3.2.1 contain patches for this issue. As a workaround, limit the length of the input.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01785 · 78.1th percentile
Weakness
CWE-1333 · Inefficient Regular Expression Complexity
Published
2023-01-04T21:52Z
EPSS history
Timeline
  • 04 JAN 21:52Z
    luxon.js inefficient regular expression complexity vulnerability
    cvelistv5