luxon.js inefficient regular expression complexity vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| moment | luxon | 1.0.0 to before 1.38.1; 2.0.0 to before 2.5.2; 3.0.0 to before 3.2.1 | 1.38.1, 2.5.2, 3.2.1 | Patch available | CNA |
| — | luxon (npm) | 1.0.0 to before 1.28.1 | 1.28.1 | Patch available | GHSA-3xq5-wjfh-ppjc |
| — | luxon (npm) | 2.0.0 to before 2.5.2 | 2.5.2 | Patch available | GHSA-3xq5-wjfh-ppjc |
| — | luxon (npm) | 3.0.0 to before 3.2.1 | 3.2.1 | Patch available | GHSA-3xq5-wjfh-ppjc |
- luxon Vendormoment Affected 1.0.0 to before 1.38.1; 2.0.0 to before 2.5.2; 3.0.0 to before 3.2.1 Fixed in 1.38.1, 2.5.2, 3.2.1 Patch available CNA
- luxon (npm) Vendor— Affected 1.0.0 to before 1.28.1 Fixed in 1.28.1 Patch available GHSA-3xq5-wjfh-ppjc
- luxon (npm) Vendor— Affected 2.0.0 to before 2.5.2 Fixed in 2.5.2 Patch available GHSA-3xq5-wjfh-ppjc
- luxon (npm) Vendor— Affected 3.0.0 to before 3.2.1 Fixed in 3.2.1 Patch available GHSA-3xq5-wjfh-ppjc
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:momentjs:luxon:*:*:*:*:*:node.js:*:* | 1.0.0 to before 1.28.1; 2.0.0 to before 2.5.2; 3.0.0 to before 3.2.1 | Vulnerable | moment |
- cpe:2.3:a:momentjs:luxon:*:*:*:*:*:node.js:*:* Versions 1.0.0 to before 1.28.1; 2.0.0 to before 2.5.2; 3.0.0 to before 3.2.1 Vulnerable ·moment
Remediation
- Fix · CNA luxon (moment) Fixed in 1.38.1, 2.5.2, 3.2.1
- Fix · GHSA-3xq5-wjfh-ppjc luxon (npm) Fixed in 1.28.1 Advisory →
- Fix · GHSA-3xq5-wjfh-ppjc luxon (npm) Fixed in 2.5.2 Advisory →
- Fix · GHSA-3xq5-wjfh-ppjc luxon (npm) Fixed in 3.2.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-22467
- 2026-10-03 Alias added: GHSA-3xq5-wjfh-ppjc
References
Patch 2
Advisory 3
Other 5
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4LIVOASKBQH7FEUI5RWM3SOHR6VK7ZZR/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/44I3WAJKYXDLOVYRGMHAUXMIV4SPFXDZ/
- https://github.com/moment/luxon
- https://lists.fedoraproject.org/archives/list/[email protected]/message/44I3WAJKYXDLOVYRGMHAUXMIV4SPFXDZ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4LIVOASKBQH7FEUI5RWM3SOHR6VK7ZZR
Sources
- CVE-2023-22467 · CVE Program
- CVE-2023-22467 · NVD
- FIRST EPSS
- GHSA-3xq5-wjfh-ppjc · GitHub Advisory Database · CC BY 4.0
- CVE-2023-22467 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences