{"api_version":"1","generated_at":"2026-04-22T22:50:59+00:00","cve":"CVE-2022-24785","urls":{"html":"https://cve.report/CVE-2022-24785","api":"https://cve.report/api/cve/CVE-2022-24785.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24785","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24785"},"summary":{"title":"CVE-2022-24785","description":"Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-04-04 17:15:00","updated_at":"2023-11-07 03:44:00"},"problem_types":["CWE-22","CWE-27"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/","name":"FEDORA-2022-85aa8e5706","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: python-notebook-6.4.0-4.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html","name":"[debian-lts-announce] 20230130 [SECURITY] [DLA 3295-1] node-moment security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3295-1] node-moment security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.tenable.com/security/tns-2022-09","name":"https://www.tenable.com/security/tns-2022-09","refsource":"CONFIRM","tags":[],"title":"[R1] Tenable.sc 5.21.0 Fixes Multiple Third-Party Vulnerabilities - Security Advisory | Tenable®","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/","name":"FEDORA-2022-35b698150c","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: python-notebook-6.4.11-3.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20220513-0006/","name":"https://security.netapp.com/advisory/ntap-20220513-0006/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-24785 NPM Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5","name":"https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5","refsource":"MISC","tags":[],"title":"[bugfix] Avoid loading path-looking locales from fs · moment/moment@4211bfc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4","name":"https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4","refsource":"CONFIRM","tags":[],"title":"Path Traversal: 'dir/../../filename' in moment.locale · Advisory · moment/moment · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/","name":"FEDORA-2022-85aa8e5706","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: python-notebook-6.4.0-4.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/","name":"FEDORA-2022-35b698150c","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: python-notebook-6.4.11-3.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24785","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24785","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"momentjs","cpe5":"moment","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"momentjs","cpe5":"moment","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"nuget","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"netapp","cpe5":"active_iq","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"24785","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"tenable","cpe5":"tenable.sc","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-24785","qid":"180817","title":"Debian Security Update for node-moment (CVE-2022-24785)"},{"cve":"CVE-2022-24785","qid":"181530","title":"Debian Security Update for node-moment (DLA 3295-1)"},{"cve":"CVE-2022-24785","qid":"198899","title":"Ubuntu Security Notification for Moment.js Vulnerabilities (USN-5559-1)"},{"cve":"CVE-2022-24785","qid":"240458","title":"Red Hat Update for JBoss Enterprise Application Platform 7.4.5 on RHEL 7 (RHSA-2022:4918)"},{"cve":"CVE-2022-24785","qid":"240459","title":"Red Hat Update for JBoss Enterprise Application Platform 7.4.5 on RHEL 8 (RHSA-2022:4919)"},{"cve":"CVE-2022-24785","qid":"241043","title":"Red Hat Update for red hat ceph storage 5.3 (RHSA-2023:0076)"},{"cve":"CVE-2022-24785","qid":"282965","title":"Fedora Security Update for python (FEDORA-2022-35b698150c)"},{"cve":"CVE-2022-24785","qid":"282966","title":"Fedora Security Update for python (FEDORA-2022-85aa8e5706)"},{"cve":"CVE-2022-24785","qid":"285305","title":"Fedora Security Update for python (FEDORA-2023-3256575fc8)"},{"cve":"CVE-2022-24785","qid":"378004","title":"Splunk Enterprise Multiple Vulnerabilities (SVD-2023-0215,SVD-2023-0211,SVD-2023-0208)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24785","STATE":"PUBLIC","TITLE":"Path Traversal in Moment.js"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"moment","version":{"version_data":[{"version_value":">= 1.0.1, < 2.29.2"}]}}]},"vendor_name":"moment"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]},{"description":[{"lang":"eng","value":"CWE-27: Path Traversal: 'dir/../../filename'"}]}]},"references":{"reference_data":[{"name":"https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4","refsource":"CONFIRM","url":"https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4"},{"name":"https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5","refsource":"MISC","url":"https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5"},{"refsource":"CONFIRM","name":"https://www.tenable.com/security/tns-2022-09","url":"https://www.tenable.com/security/tns-2022-09"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20220513-0006/","url":"https://security.netapp.com/advisory/ntap-20220513-0006/"},{"refsource":"FEDORA","name":"FEDORA-2022-85aa8e5706","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/"},{"refsource":"FEDORA","name":"FEDORA-2022-35b698150c","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230130 [SECURITY] [DLA 3295-1] node-moment security update","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html"}]},"source":{"advisory":"GHSA-8hfj-j24r-96c4","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-04-04 17:15:00","lastModifiedDate":"2023-11-07 03:44:00","problem_types":["CWE-22","CWE-27"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:*","versionStartIncluding":"1.0.1","versionEndExcluding":"2.29.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:*","versionStartIncluding":"1.0.1","versionEndExcluding":"2.29.2","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*","versionEndExcluding":"5.21.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:netapp:active_iq:-:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24785","Ordinal":"228153","Title":"CVE-2022-24785","CVE":"CVE-2022-24785","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24785","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}