CVE-2022-24785
Public on
Last Modified:
Description
A path traversal vulnerability was found in Moment.js that impacts npm (server) users. This issue occurs if a user-provided locale string is directly used to switch moment locale, which an attacker can exploit to change the correct path to one of their choice. This can result in a loss of integrity.
Statement
In Quay 3.10 and above, no version of affected momentjs is present.
Mitigation
Sanitize the user-provided locale name before passing it to Moment.js.
Additional Information
- This content is not included.Bugzilla 2072009: Moment.js: Path traversal in moment.locale
- Content from cwe.mitre.org is not included.CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- FAQ: Frequently asked questions about CVE-2022-24785
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2022-24785
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2022-24785
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| OpenShift Service Mesh 2.0 | kiali | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Fixed | RHSA-2022:6272 |
| OpenShift Service Mesh 2.1 | openshift-service-mesh/kiali-rhel8 | Fixed | RHSA-2022:5006 |
| OpenShift Service Mesh 2.1 | servicemesh-prometheus | Fixed | RHSA-2022:6277 |
| OpenShift Service Mesh 2.1 | servicemesh-grafana | Will not fix | |
| RHEL-8 based Middleware Containers | rh-sso-7/sso76-openshift-rhel8 | Fixed | RHSA-2023:1047 |
| RHPAM 7.13.1 async | Moment.js | Fixed | RHSA-2022:6813 |
| Red Hat 3scale API Management Platform 2 | 3scale-apicast-operator-bundle-container | Affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-apicast-operator-container | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/application-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/grc-ui-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/grc-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/kui-web-terminal-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/search-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-header-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-ui-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/mcm-topology-rhel8 | Fix deferred | |
| Red Hat Ceph Storage 3 | grafana | Out of support scope | |
| Red Hat Ceph Storage 4 | ceph | Will not fix | |
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Will not fix | |
| Red Hat Ceph Storage 5 | rhceph/rhceph-5-dashboard-rhel8 | Affected | |
| Red Hat Ceph Storage 5.3 | ceph | Fixed | RHSA-2023:0076 |
| Red Hat Ceph Storage 6.1 | rhceph/rhceph-6-dashboard-rhel9 | Fixed | RHSA-2023:3642 |
| Red Hat Data Grid 8 | Moment.js | Will not fix | |
| Red Hat Enterprise Linux 8 | cockpit | Not affected | |
| Red Hat Enterprise Linux 8 | cockpit-appstream | Not affected | |
| Red Hat Enterprise Linux 8 | cockpit-composer | Not affected | |
| Red Hat Enterprise Linux 8 | cockpit-session-recording | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:2.0/cockpit-podman | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:3.0/cockpit-podman | Not affected | |
| Red Hat Enterprise Linux 8 | container-tools:rhel8/cockpit-podman | Not affected | |
| Red Hat Enterprise Linux 8 | grafana | Not affected | |
| Red Hat Enterprise Linux 8 | 389-ds:1.4/389-ds-base | Will not fix | |
| Red Hat Enterprise Linux 9 | cockpit | Not affected | |
| Red Hat Enterprise Linux 9 | cockpit-composer | Not affected | |
| Red Hat Enterprise Linux 9 | cockpit-session-recording | Not affected | |
| Red Hat Enterprise Linux 9 | grafana | Not affected | |
| Red Hat Fuse 7.11.1 | Moment.js | Fixed | RHSA-2022:8652 |
| Red Hat Fuse 7.12 | Fixed | RHSA-2023:3954 | |
| Red Hat Integration Camel K 1 | Moment.js | Fix deferred | |
| Red Hat Integration Camel Quarkus 1 | Moment.js | Not affected | |
| Red Hat Integration Data Virtualisation Operator | Moment.js | Out of support scope | |
| Red Hat Integration Service Registry | Moment.js | Out of support scope | |
| Red Hat JBoss Data Grid 7 | Moment.js | Out of support scope | |
| Red Hat JBoss Enterprise Application Platform 7 | Moment.js | Fixed | RHSA-2022:4922 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-activemq-artemis | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-artemis-native | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jboss-xnio-base | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-jsoup | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-undertow | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-wildfly | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-woodstox-core | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 | eap7-xml-security | Fixed | RHSA-2025:4226 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-activemq-artemis | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-gson | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-hal-console | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-jboss-server-migration | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-jboss-xnio-base | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-wildfly | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 | eap7-woodstox-core | Fixed | RHSA-2025:4437 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-hal-console | Fixed | RHSA-2022:4919 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-hal-console | Fixed | RHSA-2022:4918 |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Moment.js | Not affected | |
| Red Hat OpenShift Container Platform 3.11 | openshift3/grafana | Out of support scope | |
| Red Hat OpenShift Container Platform 3.11 | openshift3/ose-console | Out of support scope | |
| Red Hat OpenShift Container Platform 3.11 | openshift3/prometheus | Out of support scope | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-prometheus | Not affected | |
| Red Hat OpenShift Data Foundation 4.11 on RHEL8 | odf4/mcg-core-rhel8 | Fixed | RHSA-2022:6156 |
| Red Hat OpenShift GitOps | openshift-gitops-1/argocd-rhel8 | Affected | |
| Red Hat OpenShift distributed tracing 2 | rhosdt/jaeger-agent-rhel8 | Affected | |
| Red Hat OpenStack Platform 16.1 | qpid-dispatch | Not affected | |
| Red Hat OpenStack Platform 16.2 | qpid-dispatch | Not affected | |
| Red Hat Openshift Container Storage 4 | ceph | Out of support scope | |
| Red Hat Openshift Container Storage 4 | ocs4/mcg-core-rhel8 | Out of support scope | |
| Red Hat Openshift Data Foundation 4 | noobaa-core-container | Affected | |
| Red Hat Openshift Data Foundation 4 | ceph | Will not fix | |
| Red Hat Quay 3 | quay/quay-rhel8 | Not affected | |
| Red Hat Satellite 6 | qpid-dispatch | Affected | |
| Red Hat Single Sign-On 7 | Moment.js | Fixed | RHSA-2023:1049 |
| Red Hat Single Sign-On 7.6 for RHEL 7 | rh-sso7-keycloak | Fixed | RHSA-2023:1043 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | rh-sso7-keycloak | Fixed | RHSA-2023:1044 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | rh-sso7-keycloak | Fixed | RHSA-2023:1045 |
| Red Hat Storage 3 | grafana | Will not fix | |
| Red Hat Virtualization 4 | ovirt-engine-api-explorer | Out of support scope | |
| Red Hat build of Apicurio Registry 2 | Moment.js | Affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 7.5 | 7.5 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | None | None |
| Integrity Impact | High | High |
| Availability Impact | None | None |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.