CVE-2022-24785
mediumpriority · attend · 45EPSS 0.138 · 96 %ileexploit · PoCDEEUFRRUUSEPSS · scored 2026-10-26
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- AnomalousVectors/cve-2022-24785-poc-labMoment.js vuln labPoC · poc_in_github
affected products (43)
Products and version ranges known to be affected.
- Red Hat Enterprise Linux Service Interconnect 1all versionscert_bundDEcpe:/o:redhat:enterprise_linux:service_interconnect_1
- Red Hat OpenShift Developer Tools and Services 4.11all versionscert_bundDEcpe:/a:redhat:openshift:developer_tools_and_services_4.11
advisories (6)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0288Red Hat OpenShift: Mehrere SchwachstellenDeutsch2022-06-13csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat OpenShift ausnutzen, um einen Denial of Service Angriff durchzuführen, einen nicht näher spezifizierten Angriff durchzuführen, vertrauliche Informationen offenzulegen und Daten zu manipulieren.
- WID-SEC-W-2023-0026IBM Maximo Asset Management: Mehrere SchwachstellenDeutsch2023-01-04csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM Maximo Asset Management ausnutzen, um Sicherheitsvorkehrungen zu umgehen und einen Denial-of-Service-Zustand auszulösen.
- WID-SEC-W-2023-0395Splunk Splunk Enterprise: Mehrere SchwachstellenDeutsch2023-02-14csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Splunk Splunk Enterprise ausnutzen, um vertrauliche Informationen offenzulegen, Sicherheitsmaßnahmen zu umgehen, einen Denial-of-Service-Zustand zu verursachen, Daten zu manipulieren und einen Cross-Site-Scripting-Angriff durchzuführen.
- WID-SEC-W-2023-0809IBM QRadar SIEM: Mehrere SchwachstellenDeutsch2023-03-30csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM QRadar SIEM ausnutzen, um beliebigen Programmcode auszuführen, Informationen offenzulegen, Informationen falsch darzustellen, einen Denial of Service Zustand herbeizuführen, Sicherheitsvorkehrungen zu umgehen, einen Cross-Site-Scripting-Angriff durchzuführen oder unbekannte Auswirkungen zu verursachen.
- GHSA-8hfj-j24r-96c4Path Traversal: 'dir/../../filename' in moment.locale2022-04-04ghsa · osvUS
### 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](https://github.com/moment/moment)
- CERTFR-2026-AVI-1378Multiples vulnérabilités dans les produits IBMFrançais2026-10-23vendor · certfrFR
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (51)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2022-24785cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-24785/cnnvd
- https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5cnnvd
- https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4cnnvd
- https://lists.debian.org/debian-lts-announce/2023/01/msg00035.htmlcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/cnnvd
- https://packetstormsecurity.com/files/166946/Red-Hat-Security-Advisory-2022-1681-01.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan