CVE-2022-24785
Moment.js Path Traversal Vulnerability in npm Server
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.
INFO
Published Date :
April 4, 2022, 5:15 p.m.
Last Modified :
Nov. 7, 2023, 3:44 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2022-24785 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2022-24785
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-24785
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-24785
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-24785
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/ -
Modified Analysis by [email protected]
Feb. 16, 2023
Action Type Old Value New Value Changed Reference Type https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5 Patch, Third Party Advisory https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5 Patch Changed Reference Type https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 Third Party Advisory https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 Vendor Advisory Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Jan. 31, 2023
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html [No Types Assigned] -
Modified Analysis by [email protected]
Jul. 30, 2022
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/ Mailing List, Third Party Advisory Changed Reference Type https://security.netapp.com/advisory/ntap-20220513-0006/ No Types Assigned https://security.netapp.com/advisory/ntap-20220513-0006/ Third Party Advisory Changed Reference Type https://www.tenable.com/security/tns-2022-09 No Types Assigned https://www.tenable.com/security/tns-2022-09 Patch, Release Notes, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* versions up to (excluding) 5.21.0 Added CPE Configuration OR *cpe:2.3:a:netapp:active_iq:-:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Jul. 23, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/ [No Types Assigned] Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/ [No Types Assigned] -
CVE Modified by [email protected]
May. 13, 2022
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20220513-0006/ [No Types Assigned] -
CVE Modified by [email protected]
Apr. 20, 2022
Action Type Old Value New Value Added Reference https://www.tenable.com/security/tns-2022-09 [No Types Assigned] -
Initial Analysis by [email protected]
Apr. 12, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Changed Reference Type https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5 No Types Assigned https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5 Patch, Third Party Advisory Changed Reference Type https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 No Types Assigned https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4 Third Party Advisory Added CWE NIST CWE-22 Added CPE Configuration OR *cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:* versions from (including) 1.0.1 up to (excluding) 2.29.2 *cpe:2.3:a:momentjs:moment:*:*:*:*:*:nuget:*:* versions from (including) 1.0.1 up to (excluding) 2.29.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-24785
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-24785
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.39 }} 0.06%
score
0.73759
percentile