cve.bz

CVE-2021-23358 Code Injection

7.2 highExploit referenceEPSS 4.2%Fix available

High (7.2). EPSS 4.2% estimated probability of exploitation activity in the next 30 days. Fixed in underscore 1.12.1.

On this page
The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Injection via the template function, particularly when a variable property is passed as an argument as it is not sanitized.

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
4.2% (unchanged from 4.2% a week ago; 4.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2024-08-29. 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-23358 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23358?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23358?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-23358 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
underscorejs:underscorefrom 1.3.2 before 1.12.1
underscorejs:underscorefrom 1.13.0-0 before 1.13.0-2
debian:debian_linux9.0
debian:debian_linux10.0
tenable:tenable.scthrough 5.18.0
fedoraproject:fedora33
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cf4h-3jhx-xvhqnpmunderscore>=1.3.2 <1.12.11.12.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9underscore1.8.3~dfsg-1+deb9u1DLA-2613-1
Debian10underscore1.9.1~dfsg-1+deb10u1DSA-4883-1
Debian12, 13, 14underscore1.9.1~dfsg-2DEBIAN-CVE-2021-23358
Ubuntu16.04:LTSunderscore1.7.0~dfsg-1ubuntu1.1UBUNTU-CVE-2021-23358 USN-4913-1
Ubuntu18.04:LTSunderscore1.8.3~dfsg-1ubuntu0.1UBUNTU-CVE-2021-23358 USN-4913-1
Ubuntu20.04:LTSunderscore1.9.1~dfsg-1ubuntu0.20.04.1UBUNTU-CVE-2021-23358 USN-4913-1
UbuntuPro:14.04:LTSunderscore1.4.4-2ubuntu1+esm1UBUNTU-CVE-2021-23358 USN-4913-1
Red Hatceph_storage:7.1::el8ceph, librbd1, librgw2 and 51 more2:18.2.1-381.el8cpRHSA-2026:2769
Red Hatceph_storage:7.1::el9ceph, cephadm, librbd1 and 53 more2:18.2.1-381.el9cpRHSA-2026:2769
Red Hatrhev_manager:4.4:el8ovirt-engine-ui-extensions0:1.2.7-1.el8evRHSA-2021:2865
Red Hatrhev_manager:4.4:el8ovirt-engine-ui-extensions0:1.3.5-1.el8evRHSA-2022:6393
Red Hatrhev_manager:4.4:el8ovirt-log-collector0:4.4.7-2.el8evRHSA-2022:6393
Red Hatrhev_manager:4.4:el8ovirt-web-ui0:1.9.1-1.el8evRHSA-2022:6393
Red Hatrhev_manager:4.4:el8rhvm, ovirt-engine, ovirt-engine-setup and 17 more0:4.5.2.4-0.1.el8evRHSA-2022:6393
openSUSELeap 15.2nodejs-underscore1.13.1-lp152.4.3.1openSUSE-SU-2021:0601-1
openSUSETumbleweednodejs-underscore1.13.1-1.3openSUSE-SU-2024:11095-1
Azure Linux3js-jqueryno fix listedAZL-45222

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; SUSE security data, 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 · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Whilst the OpenShift Container Platform (OCP) openshift4/ose-grafana and openshift3/grafana as well as console, grc-ui and search-ui containers for Red Hat Advanced Management for Kubernetes (RHACM) include the vulnerable underscore library, the access to it is protected by OpenShift OAuth. Additionally this library is used in openshift4/ose-grafana container only in Grafana End-to-End Test package. Therefore the impact by this flaw is reduced to Low and the affected OCP components are marked as "will not fix" at this time and to Moderate for the affected RHACM components. This might be fixed in a future release.

Red Hat Enterprise Virtualization includes the vulnerable underscore library, however it is not parsing any untrusted data, therefore impact is reduced to Low.

Below Red Hat products include the underscore dependency, but it is not used by the product and hence this issue has been rated as having a security impact of Low.

* Red Hat Quay

* Red Hat Gluster Storage 3

* Red Hat OpenShift Container Storage 4

* Red Hat Ceph Storage 3 and 4

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2.0 for RHEL 8rhacm2/acm-operator-bundle:v2.0.10-8Fixed 2021-04-28RHSA-2021:1448
Red Hat Ceph Storage 7.1ceph-2:18.2.1-381.el8cpFixed 2026-02-17RHSA-2026:2769
Red Hat Virtualization Engine 4.4ovirt-engine-ui-extensions-0:1.2.7-1.el8evFixed 2021-07-22RHSA-2021:2865
Red Hat Virtualization Engine 4.4ovirt-web-ui-0:1.9.1-1.el8evFixed 2022-09-08RHSA-2022:6393
Red Hat Ceph Storage 8rhceph/grafana-rhel9:1770630607Fixed 2026-02-16RHSA-2026:2737
Red Hat Ceph Storage 9rhceph/grafana-rhel10:1771399331Fixed 2026-02-26RHSA-2026:3406
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/grc-ui-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-ui-rhel8Affected
Red Hat Ceph Storage 3grafanaOut of support scope
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Not affected
Red Hat Ceph Storage 6grafanaAffected
Red Hat Ceph Storage 8grafanaAffected
Red Hat Ceph Storage 9grafanaAffected
Red Hat Enterprise Linux 7pki-coreWill not fix
Red Hat Enterprise Linux 8pki-core:10.6/pki-coreWill not fix
Red Hat OpenShift Container Platform 3.11openshift3/grafanaWill not fix
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaFix deferred
Red Hat Openshift Container Storage 4ocs4/mcg-core-rhel8Affected
Red Hat Quay 3quay/quay-rhel8Fix deferred
Red Hat Storage 3grafanaFix deferred

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-23358.

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