CVE-2023-22467
January 04, 2023
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.
Affected Packages
luxon (CDN_JS):
Affected version(s) >=2.0.0 <2.5.2Fix Suggestion:
Update to version 2.5.2luxon (CDN_JS):
Affected version(s) >=1.20.0 <1.28.1Fix Suggestion:
Update to version 1.28.1luxon (CDN_JS):
Affected version(s) >=3.0.0 <3.2.1Fix Suggestion:
Update to version 3.2.1luxon (NPM):
Affected version(s) >=3.0.0 <3.2.1Fix Suggestion:
Update to version 3.2.1luxon (NPM):
Affected version(s) >=1.0.0 <1.28.1Fix Suggestion:
Update to version 1.28.1luxon (NPM):
Affected version(s) >=2.0.0 <2.5.2Fix Suggestion:
Update to version 2.5.2Related ResourcesĀ (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.79