{"id":"CVE-2023-22467","aliases":["CVE-2023-22467","GHSA-3xq5-wjfh-ppjc"],"related":[],"kind":"vulnerability","state":"published","title":"luxon.js inefficient regular expression complexity vulnerability","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"# Impact\nLuxon'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.\n\nThis is the same bug as Moment's https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g\n\n# Workarounds\nLimit the length of the input.\n\n# References\nThere is an excellent writeup of the same issue in Moment: https://github.com/moment/moment/pull/6015#issuecomment-1152961973\n\n# Details\n`DateTime.fromRFC2822(\"(\".repeat(500000))` takes a couple minutes to complete.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Luxon es una librería para trabajar con fechas y horas en JavaScript. En la rama 1.x anterior a 1.38.1, la rama 2.x anterior a 2.5.2 y la rama 3.x en 3.2.1, `DateTime.fromRFC2822() de Luxon tiene complejidad cuadrática (N^2) en algunas entradas específicas. Esto provoca una notable desaceleración en las entradas con longitudes superiores a 10&#xa0;000 caracteres. Por lo tanto, los usuarios que proporcionan datos no confiables a este método son vulnerables a ataques (Re)DoS. Este problema también aparece en Moment como CVE-2022-31129. Las versiones 1.38.1, 2.5.2 y 3.2.1 contienen parches para este problema. Como workaround, limite la longitud de la entrada.","source":"nvd"}],"published":"2023-01-04T21:52:14.329Z","modified":"2026-06-17T05:35:31.100Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.38.1","status":"affected"},{"version":">= 2.0.0, < 2.5.2","status":"affected"},{"version":">= 3.0.0, < 3.2.1","status":"affected"}],"vendor":"moment","product":"luxon","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.28.1"}],"ecosystem":"npm","package":"luxon","purl":"pkg:npm/luxon","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.5.2"}],"ecosystem":"npm","package":"luxon","purl":"pkg:npm/luxon","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.2.1"}],"ecosystem":"npm","package":"luxon","purl":"pkg:npm/luxon","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"1.28.1"},{"status":"affected","introduced":"2.0.0","fixed":"2.5.2"},{"status":"affected","introduced":"3.0.0","fixed":"3.2.1"}],"vendor":"momentjs","product":"luxon","cpe":"cpe:2.3:a:momentjs:luxon:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/moment/luxon/security/advisories/GHSA-3xq5-wjfh-ppjc","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g","tags":["not-applicable","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moment/moment/pull/6015#issuecomment-1152961973","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moment/luxon/commit/5ab3bf64a10da929a437629cdb2f059bb83212bf","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4LIVOASKBQH7FEUI5RWM3SOHR6VK7ZZR/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/44I3WAJKYXDLOVYRGMHAUXMIV4SPFXDZ/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22467","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/moment/luxon","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/44I3WAJKYXDLOVYRGMHAUXMIV4SPFXDZ","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4LIVOASKBQH7FEUI5RWM3SOHR6VK7ZZR","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-22467","url":"https://www.cve.org/CVERecord?id=CVE-2023-22467","licence":"CVE Terms of Use","modified":"2025-02-13T16:43:52.699Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3xq5-wjfh-ppjc","url":"https://github.com/advisories/GHSA-3xq5-wjfh-ppjc","licence":"CC-BY-4.0","modified":"2026-02-04T04:08:25.579Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-22467","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22467","licence":"Public domain","modified":"2026-06-17T05:35:31.100Z"}],"updatedAt":"2026-11-25T22:58:21.484Z","epss":{"score":0.01852,"percentile":0.79749,"date":"2026-12-01T12:00:22.000Z"}}