CVE-2022-24785

Aliases:GHSA-8hfj-j24r-96c4RHSA-2023:0076DEBIAN-CVE-2022-24785CGA-42vc-qppf-fw65CGA-6rgj-5pwx-7q4fCGA-r76h-g92c-x48hCGA-wh97-vqhc-w9cc
Advisory lineage Upstream: 0 Downstream: 16
Modified
Published: 04 Apr 2022, 00:00
Last modified:03 Nov 2025, 21:46

Vulnerability Summary

Overall Risk (default)
medium
33/100
CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
13.9% MEDIUM
14% probability +12.46%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

04 Apr 2022, 00:00
Published
Vulnerability first disclosed
03 Nov 2025, 21:46
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • v2.0MEDIUMScore: 5AV:N/AC:L/Au:N/C:N/I:P/A:N

EPSS Trends

Current EPSS score: 13.90% Percentile: 96%

Techniques & Countermeasures

  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

  • CWE-27Path Traversal: 'dir/../../filename'

    The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize multiple internal "../" sequences that can resolve to a location that is outside of that directory.

Affected Systems

  • chainguardwazuh-dashboard-security-plugin

    < 4.14.6-r5

  • chainguardwazuh-dashboard-security-plugin-fips

    < 4.14.6-r2

  • debiannode-moment

    < 2.29.1+ds-2+deb11u1 | < 2.29.2+ds-1 | < 2.29.2+ds-1 | < 2.29.2+ds-1

  • debiandebian_linux

    10.0

  • fedoraprojectfedora

    35 | 36

  • momentmoment

    ≥ 1.0.1, < 2.29.2

  • momentjsmoment

    ≥ 1.0.1, < 2.29.2

  • netappactive_iq

    na

  • Npmmoment

    < 2.29.2

  • NuGetMoment.js

    < 2.29.2

  • redhatceph

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-base

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-base-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-common

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-common-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-debugsource

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-fuse

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-fuse-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-grafana-dashboards

    < 2:16.2.10-94.el8cp

  • redhatceph-immutable-object-cache

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-immutable-object-cache-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-mds

    < 2:16.2.10-94.el8cp

  • redhatceph-mds-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-mgr

    < 2:16.2.10-94.el8cp

  • redhatceph-mgr-cephadm

    < 2:16.2.10-94.el8cp

  • redhatceph-mgr-dashboard

    < 2:16.2.10-94.el8cp

  • redhatceph-mgr-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-mgr-diskprediction-local

    < 2:16.2.10-94.el8cp

  • redhatceph-mgr-k8sevents

    < 2:16.2.10-94.el8cp

  • redhatceph-mgr-modules-core

    < 2:16.2.10-94.el8cp

  • redhatceph-mgr-rook

    < 2:16.2.10-94.el8cp

  • redhatceph-mib

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-mon

    < 2:16.2.10-94.el8cp

  • redhatceph-mon-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-osd

    < 2:16.2.10-94.el8cp

  • redhatceph-osd-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-prometheus-alerts

    < 2:16.2.10-94.el8cp

  • redhatceph-radosgw

    < 2:16.2.10-94.el8cp

  • redhatceph-radosgw-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-resource-agents

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-selinux

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatceph-test

    < 2:16.2.10-94.el8cp

  • redhatceph-test-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatcephadm

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatcephfs-mirror

    < 2:16.2.10-94.el8cp

  • redhatcephfs-mirror-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatcephfs-top

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatlibcephfs-devel

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatlibcephfs2

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

  • redhatlibcephfs2-debuginfo

    < 2:16.2.10-94.el8cp | < 2:16.2.10-94.el9cp

Showing first 50 affected entries in server-rendered view.

References (124)