CVE-2021-23358
Arbitrary Code Injection
Check your servers for CVE-2021-23358
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-23358 affects underscore, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 4.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 29 Aug 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
underscore
n/a
|
affected from 1.13.0-0, before unspecified affected before 1.13.0-2 affected from 1.3.2, before unspecified affected before 1.12.1
|
Is my server affected?
Find the installed version of underscore and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i underscore
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-23358 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-23358RHEL, Rocky, Alma, Fedora
rpm -q underscore
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-23358Alpine
apk list --installed | grep -i underscoreWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-23358
trivy image --scanners vuln IMAGE | grep CVE-2021-23358
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- DSA-4883 debian.org · vendor advisory
- https://www.tenable.com/security/tns-2021-14 tenable.com
- FEDORA-2021-e49f936d9f lists.fedoraproject.org · vendor advisory
- FEDORA-2021-f278299902 lists.fedoraproject.org · vendor advisory
Other references
- https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984 snyk.io
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503 snyk.io
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504 snyk.io
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505 snyk.io
- https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71 github.com
- [debian-lts-announce] 20210331 [SECURITY] [DLA 2613-1] underscore security update lists.debian.org · mailing list
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek closed issue #163: Security Vulnerability in underscore… lists.apache.org · mailing list
- [cordova-issues] 20210414 [GitHub] [cordova-common] breautek commented on issue #163: Security Vulnerability in… lists.apache.org · mailing list
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley opened a new issue #163: Security Vulnerability… lists.apache.org · mailing list
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley commented on issue #163: Security Vulnerability… lists.apache.org · mailing list
- [cordova-issues] 20210414 [GitHub] [cordova-common] RichardMcSorley edited a comment on issue #163: Security… lists.apache.org · mailing list
- https://security.netapp.com/advisory/ntap-20240808-0003/ security.netapp.com
- http://seclists.org/fulldisclosure/2025/Apr/14 seclists.org
- https://security.netapp.com/advisory/ntap-20241108-0002/ security.netapp.com
Source: the record CVE-2021-23358 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse