cve.bz

CVE-2021-23337 Code Injection

7.2 highExploit referenceEPSS 20%Fix available

High (7.2). EPSS 20% estimated probability of exploitation activity in the next 30 days. Fixed in lodash 4.17.21.

On this page
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
20% (unchanged from 21% a week ago; 21% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23337 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23337?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23337?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23337 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-23337

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-23337](https://cve.bz/cve/badge/CVE-2021-23337.svg)](https://cve.bz/cve/CVE-2021-23337)

HTML:

<a href="https://cve.bz/cve/CVE-2021-23337"><img src="https://cve.bz/cve/badge/CVE-2021-23337.svg" alt="CVE-2021-23337"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
lodash:lodashbefore 4.17.21
oracle:banking_corporate_lending_process_management14.2.0
oracle:banking_corporate_lending_process_management14.3.0
oracle:banking_corporate_lending_process_management14.5.0
oracle:banking_credit_facilities_process_management14.2.0
oracle:banking_credit_facilities_process_management14.3.0
oracle:banking_credit_facilities_process_management14.5.0
oracle:banking_extensibility_workbench14.2.0
oracle:banking_extensibility_workbench14.3.0
oracle:banking_extensibility_workbench14.5.0
oracle:banking_supply_chain_finance14.2.0
oracle:banking_supply_chain_finance14.3.0
oracle:banking_supply_chain_finance14.5.0
oracle:banking_trade_finance_process_management14.2.0
oracle:banking_trade_finance_process_management14.3.0
oracle:banking_trade_finance_process_management14.5.0
oracle:communications_cloud_native_core_binding_support_function1.9.0
oracle:communications_cloud_native_core_policy1.11.0
oracle:communications_design_studio7.4.2.0.0
oracle:communications_services_gatekeeper7.0
oracle:communications_session_border_controller8.4
oracle:communications_session_border_controller9.0
oracle:enterprise_communications_broker3.2.0
oracle:enterprise_communications_broker3.3.0
oracle:financial_services_crime_and_compliance_management_studio8.0.8.2.0
oracle:financial_services_crime_and_compliance_management_studio8.0.8.3.0
oracle:health_sciences_data_management_workbench2.5.2.1
oracle:health_sciences_data_management_workbench3.0.0.0
oracle:jd_edwards_enterpriseone_toolsbefore 9.2.6.1
oracle:peoplesoft_enterprise_peopletools8.58
oracle:peoplesoft_enterprise_peopletools8.59
oracle:primavera_gatewayfrom 17.12.0 through 17.12.11
oracle:primavera_gatewayfrom 18.8.0 through 18.8.12
oracle:primavera_gatewayfrom 19.12.0 through 19.12.11
oracle:primavera_gatewayfrom 20.12.0 through 20.12.7
oracle:primavera_unifierfrom 17.7 through 17.12
oracle:primavera_unifier18.8
oracle:primavera_unifier19.12
oracle:primavera_unifier20.12
oracle:retail_customer_management_and_segmentation_foundation19.0
netapp:system_manager9.0
siemens:sinec_insbefore 1.0
siemens:sinec_ins1.0
siemens:sinec_ins1.0:sp1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-35jh-r3h4-6jhmnpmlodash<4.17.214.17.21
GHSA-35jh-r3h4-6jhmnpmlodash-es<4.17.214.17.21
GHSA-35jh-r3h4-6jhmnpmlodash.template<=4.5.0no fix published
GHSA-35jh-r3h4-6jhmnpmlodash-template<=1.0.0no fix published
GHSA-35jh-r3h4-6jhmRubyGemslodash-rails<4.17.214.17.21

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-lodash4.17.21+dfsg+~cs8.31.173-1DEBIAN-CVE-2021-23337
Ubuntu25.10node-lodash4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1USN-8411-1
UbuntuPro:16.04:LTSnode-lodash2.4.1+dfsg-3ubuntu0.1~esm1UBUNTU-CVE-2021-23337 USN-8411-1
UbuntuPro:18.04:LTSnode-lodash4.17.4+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2021-23337 USN-8411-1
UbuntuPro:20.04:LTSnode-lodash4.17.15+dfsg-2ubuntu0.1~esm1UBUNTU-CVE-2021-23337 USN-8411-1
UbuntuPro:22.04:LTSnode-lodash4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1USN-8411-1
UbuntuPro:24.04:LTSnode-lodash4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1USN-8411-1
UbuntuPro:26.04:LTSnode-lodash4.17.23+dfsg-1ubuntu0.1~esm1USN-8411-1
Red Hatrhev_hypervisor:4.4::el8cockpit-ovirt, cockpit-ovirt-dashboard0:0.15.1-2.el8evRHSA-2021:3459
Red Hatrhev_manager:4.4:el8ovirt-engine-ui-extensions0:1.2.6-1.el8evRHSA-2021:2179
Red Hatrhev_manager:4.4:el8ovirt-web-ui0:1.6.9-1.el8evRHSA-2021:2179
Azure Linux3js-jqueryno fix listedAZL-44655

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In OpenShift ServiceMesh (OSSM) and Red Hat OpenShift Jaeger (RHOSJ) the affected containers are behind OpenShift OAuth authentication. This restricts access to the vulnerable nodejs-lodash library to authenticated users only, therefore the impact is low.

While Red Hat Virtualization's cockpit-ovirt has a dependency on lodash it doesn't use the vulnerable template function.

While Red Hat Quay has a dependency on lodash via restangular it doesn't use the vulnerable template function.

ProductPackageStateAdvisory
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-migration-ui-rhel8:v1.7.4-12Fixed 2022-09-13RHSA-2022:6429
Red Hat OpenShift Container Platform 4.8openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-grafana:v4.8.0-202106291913.p0.git.b987e4b.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-prometheus:v4.8.0-202106291913.p0.git.f3beb88.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Container Platform 4.8openshift4/ose-thanos-rhel8:v4.8.0-202106291913.p0.git.c358e96.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat OpenShift Jaeger 1.20distributed-tracing/jaeger-all-in-one-rhel8:1.20.4-18Fixed 2021-06-24RHSA-2021:2543
Red Hat OpenShift Jaeger 1.20distributed-tracing/jaeger-query-rhel8:1.20.4-18Fixed 2021-06-24RHSA-2021:2543
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8cockpit-ovirt-0:0.15.1-2.el8evFixed 2021-09-08RHSA-2021:3459
Red Hat Virtualization Engine 4.4ovirt-engine-ui-extensions-0:1.2.6-1.el8evFixed 2021-06-01RHSA-2021:2179
Red Hat Virtualization Engine 4.4ovirt-web-ui-0:1.6.9-1.el8evFixed 2021-06-01RHSA-2021:2179
OpenShift Service Mesh 2.0kialiAffected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/application-ui-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-api-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-header-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-api-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/kui-web-terminal-rhel8Affected
16 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23337.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-258-05Siemens SINEC INS2022-09-13MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON