{"id":"CVE-2023-22467","published":"2023-01-04T21:52:14Z","modified":"2025-02-13T16:43:52Z","title":"luxon.js inefficient regular expression complexity vulnerability","vendor":"moment","product":"luxon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01852,"percentile":0.79657,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/moment/luxon/security/advisories/GHSA-3xq5-wjfh-ppjc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g","tags":["x_refsource_MISC"]},{"url":"https://github.com/moment/moment/pull/6015#issuecomment-1152961973","tags":["x_refsource_MISC"]},{"url":"https://github.com/moment/luxon/commit/5ab3bf64a10da929a437629cdb2f059bb83212bf","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4LIVOASKBQH7FEUI5RWM3SOHR6VK7ZZR/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/44I3WAJKYXDLOVYRGMHAUXMIV4SPFXDZ/","tags":[]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":15.93},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"moment","affectedVersions":[{"vendor":"moment","product":"luxon","versions":[">= 1.0.0, < 1.38.1",">= 2.0.0, < 2.5.2",">= 3.0.0, < 3.2.1"]}],"affected":[{"ecosystem":"npm","package":"luxon","vulnerableRanges":[">=1.0.0, <1.28.1",">=2.0.0, <2.5.2",">=3.0.0, <3.2.1"],"patched":["1.28.1","2.5.2","3.2.1"],"from":["GHSA-3xq5-wjfh-ppjc"],"provenance":"source"}],"summary":{"text":"Luxon, a JavaScript date and time library, has an inefficient regular expression complexity flaw in its DateTime.fromRFC2822() method, where certain inputs cause quadratic processing time on the 1.x, 2.x and 3.x branches. An attacker who can supply untrusted input to that method, which can be done over the network without authentication or user interaction, can trigger a noticeable slowdown on inputs longer than about 10,000 characters, leading to denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:44Z"},"euvd":{"id":"EUVD-2023-0326","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-moment-cve-2022-31129","parents":[{"from":"CVE-2022-31129","to":"CVE-2023-22467","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-wc69-rhjr-hc9g","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-3xq5-wjfh-ppjc","via":"reference","url":"https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g"}]}]}}