ghsa-8hfj-j24r-96c4
Vulnerability from github
Published
2022-04-04 21:25
Modified
2022-04-04 21:25
Summary
Path Traversal: 'dir/../../filename' in moment.locale
Details

Impact

This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr is directly used to switch moment locale.

Patches

This problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive).

Workarounds

Sanitize user-provided locale name before passing it to moment.js.

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory: * Open an issue in moment repo

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "npm",
            name: "moment",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "2.29.2",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         package: {
            ecosystem: "NuGet",
            name: "Moment.js",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "2.29.2",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2022-24785",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-22",
         "CWE-27",
      ],
      github_reviewed: true,
      github_reviewed_at: "2022-04-04T21:25:48Z",
      nvd_published_at: "2022-04-04T17:15:00Z",
      severity: "HIGH",
   },
   details: "### Impact\nThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg `fr` is directly used to switch moment locale.\n\n### Patches\nThis problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive).\n\n### Workarounds\nSanitize user-provided locale name before passing it to moment.js.\n\n### References\n_Are there any links users can visit to find out more?_\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [moment repo](https://github.com/moment/moment)\n",
   id: "GHSA-8hfj-j24r-96c4",
   modified: "2022-04-04T21:25:48Z",
   published: "2022-04-04T21:25:48Z",
   references: [
      {
         type: "WEB",
         url: "https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4",
      },
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2022-24785",
      },
      {
         type: "WEB",
         url: "https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/moment/moment",
      },
      {
         type: "WEB",
         url: "https://lists.debian.org/debian-lts-announce/2023/01/msg00035.html",
      },
      {
         type: "WEB",
         url: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q",
      },
      {
         type: "WEB",
         url: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5",
      },
      {
         type: "WEB",
         url: "https://security.netapp.com/advisory/ntap-20220513-0006",
      },
      {
         type: "WEB",
         url: "https://www.tenable.com/security/tns-2022-09",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
         type: "CVSS_V3",
      },
   ],
   summary: "Path Traversal: 'dir/../../filename' in moment.locale",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.