CVE-2022-24785 — Path Traversal: 'dir/../../filename' in moment —...
Path Traversal: 'dir/../../filename' in moment.locale
Summary
Advisory Timeline
- First published April 4, 2022 (1652 days ago).
- Last revised September 10, 2026 — 1619 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install moment@2.29.2
dotnet add package Moment.js --version 2.29.2
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 2 ecosystems: npm (1), nuget (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
- CWE-27
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24785ADVISORY
- https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5WEB
- https://github.com/moment/momentPACKAGE
- https://lists.debian.org/debian-lts-announce/2023/01/msg00035.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2QWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2QWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5WEB
- https://security.netapp.com/advisory/ntap-20220513-0006WEB
- https://security.netapp.com/advisory/ntap-20241108-0002WEB
- https://www.tenable.com/security/tns-2022-09WEB
Frequently Asked Questions
- What is CVE-2022-24785?
- Path Traversal: 'dir/../../filename' in moment.locale This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2022-24785?
- CVE-2022-24785 affects moment and Moment.js. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-24785 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-107375HIGH
JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort
- CVE-2026-107384HIGH
MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)
- CVE-2022-31129HIGH
Moment.js vulnerable to Inefficient Regular Expression Complexity
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies