Skip to content
Fencer Vulns
low 3.3

CVE-2021-23358 json

Arbitrary Code Injection

published 2021-03-29 5 y ago modified 2026-06-17 4 mo ago also GHSA-cf4h-3jhx-xvhq , EUVD-2021-1042

cvss
3.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
4.2%
EPSS 4.2% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm underscore 1.12.1
  • n/a underscore 1.12.1, 1.13.0-2
  • underscore Debian 14, Debian 13, Debian 12 1.9.1~dfsg-2

debian advisories DEBIAN-CVE-2021-23358

  • underscore Ubuntu 16.04 LTS 1.7.0~dfsg-1ubuntu1.1
  • underscore Ubuntu 18.04 LTS 1.8.3~dfsg-1ubuntu0.1
  • underscore Ubuntu 20.04 LTS 1.9.1~dfsg-1ubuntu0.20.04.1
  • underscore Ubuntu Pro 14.04 LTS 1.4.4-2ubuntu1+esm1

ubuntu advisories UBUNTU-CVE-2021-23358

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ceph ceph storage 7.1 2:18.2.1-381.el8cp
  • ceph ceph storage 7.1 2:18.2.1-381.el9cp
  • cephadm ceph storage 7.1 2:18.2.1-381.el9cp
  • librbd1 ceph storage 7.1 2:18.2.1-381.el8cp
  • librbd1 ceph storage 7.1 2:18.2.1-381.el9cp
  • librgw2 ceph storage 7.1 2:18.2.1-381.el8cp
  • librgw2 ceph storage 7.1 2:18.2.1-381.el9cp
  • rbd-nbd ceph storage 7.1 2:18.2.1-381.el8cp

red hat advisories RHSA-2026:2769RHSA-2022:6393RHSA-2021:2865

  • nodejs-underscore openSUSE Tumbleweed 1.13.1-1.3
  • nodejs-underscore openSUSE Leap 15.2 1.13.1-lp152.4.3.1

opensuse advisories openSUSE-SU-2024:11095-1openSUSE-SU-2021:0601-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-23358 updated cvss 7.2

nodejs-underscore: Arbitrary code execution via the template function

  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8, rhacm2/search-ui-rhel8
    affected: no fix available
  • Red Hat Ceph Storage 3 grafana
    affected: no fix planned “Out of support scope”
  • Red Hat Ceph Storage 6 grafana Red Hat Ceph Storage 8 grafana Red Hat Ceph Storage 9 grafana
    affected: no fix available
  • Red Hat Enterprise Linux 7 pki-ca, pki-kra, pki-base, pki-core, pki-tools, pki-server, +3 more Red Hat Enterprise Linux 8 jss, pki-ca, idm-jss, ldapjdk, pki-kra, pki-acme, +25 more Red Hat OpenShift Container Platform 3.11 openshift3/grafana
    affected: no fix planned “Will not fix”
  • Red Hat OpenShift Container Platform 4 openshift4/ose-grafana
    affected: no fix available “Fix deferred”
  • Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8
    affected: no fix available
  • Red Hat Quay 3 quay/quay-rhel8 Red Hat Storage 3 grafana
    affected: no fix available “Fix deferred”
  • Red Hat Advanced Cluster Management for Kubernetes 2.0 for RHEL 8 rhacm2/acm-operator-bundle v2.0.10-8
    fixed: vendor fix RHSA-2021:1448
show 5 more
  • Red Hat Ceph Storage 7.1 Tools ceph 18.2.1-381.el8cp, ceph 18.2.1-381.el9cp, cephadm 18.2.1-381.el9cp, librbd1 18.2.1-381.el8cp, librbd1 18.2.1-381.el9cp, librgw2 18.2.1-381.el8cp, +37 more
    fixed: vendor fix RHSA-2026:2769
  • Red Hat Ceph Storage 8 rhceph 1770630607
    fixed: vendor fix RHSA-2026:2737
  • Red Hat Ceph Storage 9 rhceph 1771399331
    fixed: vendor fix RHSA-2026:3406
  • Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 ovirt-web-ui 1.9.1-1.el8ev, ovirt-engine-ui-extensions 1.2.7-1.el8ev
    fixed: vendor fix RHSA-2021:2865
  • Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat Ceph Storage 8 rhceph 1770630907, rhceph 1770631713, rhceph 1770631941, rhceph 1770632172, rhceph 1770632233 Red Hat Ceph Storage 9 rhceph 1771398877, rhceph 1771399022, rhceph 1771399060, rhceph 1771399158, rhceph 1771816028 Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 rhvm 4.5.2.4-0.1.el8ev, rhvm 4.4.7.6-0.11.el8ev, ovirt-web-ui 1.7.0-1.el8ev, ovirt-engine 4.5.2.4-0.1.el8ev, ovirt-engine-dwh 4.5.4-1.el8ev, ovirt-engine 4.4.7.6-0.11.el8ev, +54 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

4.20% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • snyk.io https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 3.3 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C
CNA 3.1 3.3 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
NVD 3.1 7.2 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
npm underscore
>=1.3.2, <1.12.1
1.12.1

Affected products

  • n/a underscore

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.