CVEfocus › CVE database › CVE-2021-23358

CVE-2021-23358Arbitrary Code Injection

CVSS 3.3 LowEPSS 4.2% (higher than 92% of CVEs)Published 2021-03-29Updated 2025-11-03Assigner: snyk

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.

What to do

Fixed builds are available from Debian, Ubuntu, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
1Fix pending
40Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04underscoreFixed1.9.1~dfsg-1ubuntu0.20.04.1UBUNTU-CVE-2021-23358
Ubuntu 18.04underscoreFixed1.8.3~dfsg-1ubuntu0.1UBUNTU-CVE-2021-23358
Ubuntu 16.04underscoreFixed1.7.0~dfsg-1ubuntu1.1UBUNTU-CVE-2021-23358
Ubuntu 14.04underscoreFix pending1.4.4-2ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23358
Debian 14underscoreFixed1.9.1~dfsg-2DEBIAN-CVE-2021-23358
Debian 13underscoreFixed1.9.1~dfsg-2DEBIAN-CVE-2021-23358
Debian 12underscoreFixed1.9.1~dfsg-2DEBIAN-CVE-2021-23358
Red Hat Enterprise Linux 8idm-jssWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-jss-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-ldapjdkWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-ldapjdk-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-acmeWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-baseWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-base-javaWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-caWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-kraWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-serverWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-symkeyWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-pki-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 8idm-tomcatjssWill not fix
Will not fix
Red Hat Enterprise Linux 8jssWill not fix
Will not fix
Red Hat Enterprise Linux 8jss-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8ldapjdkWill not fix
Will not fix
Red Hat Enterprise Linux 8ldapjdk-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-acmeWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-baseWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-base-javaWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-caWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-coreWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-kraWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-serverWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-symkeyWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-idm-pkiWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pkiWill not fix
Will not fix
Red Hat Enterprise Linux 8resteasyWill not fix
Will not fix
Red Hat Enterprise Linux 8resteasy-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8tomcatjssWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-baseWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-base-javaWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-caWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-coreWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-kraWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-serverWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-symkeyWill not fix
Will not fix
Red Hat Enterprise Linux 7pki-toolsWill not fix
Will not fix
npm libraryunderscoreFixed1.12.1GHSA-cf4h-3jhx-xvhq

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.