CVE-2021-23358
A public proof of concept exists; no exploitation attested.
- Published2021-03-29
- WeaknessCWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-03-2914:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| 34.x | = 34 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.13 | ≥ 1.13.0-0, < 1.13.0-2 | 1.13.0-2 | NVD |
| 1.x | ≥ 1.3.2, < 1.12.1 | 1.12.1 | NVD · OSV |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As snyk, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- underscoreAffected
- = 1.13.0-0no fix statedcustom
- < 1.13.0-2fixed in 1.13.0-2custom
- = 1.3.2no fix statedcustom
- < 1.12.1fixed in 1.12.1custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2021-08-24
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/underscoreRoot:npmall versions · fixed in 1.7.0-root.io.1
- @rootio/underscoreRoot:npmall versions · fixed in 1.12.1-root.io.1
- @rootio/underscoreRoot:npmall versions · fixed in 1.7.0-root.io.2
- @rootio/underscoreRoot:npmall versions · fixed in 1.8.3-root.io.1
- @rootio/underscoreRoot:npmall versions · fixed in 1.8.3-root.io.2
- @rootio/underscoreRoot:npmall versions · fixed in 1.8.3-root.io.3
- cephRed Hat:ceph_storage:8.1::el9all versions · fixed in 2:19.2.1-405.el9cpand 58 other packages
- cephRed Hat:ceph_storage:7.1::el9all versions · fixed in 2:18.2.1-381.el9cpand 55 other packages
30 more package ranges on OSV.dev
Vendor advisories
nodejs-underscore: Arbitrary code execution via the template function
rhacm2/grc-ui-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · rhacm2/search-ui-rhel8 as a component of Red Hat Advanced Cluster Management for Kubernetes 2 · grafana as a component of Red Hat Ceph Storage 3 · +54 more
Red Hat Security Advisory: Red Hat Ceph Storage 8.1 security and bug fix updates
Red Hat Security Advisory: New container image: rhceph-9.0
Red Hat Security Advisory: Red Hat Ceph Storage 7.1 security and bug fix updates
Red Hat Security Advisory: Red Hat Ceph Storage
Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.2] bug fix and security update
3 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2026:61939 · 316 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 For supported configurations, refer to: https://access.redhat.com/articles/1548993
- Vendor fix Red Hat Product Security RHSA-2026:3406 · 4 productsThe container images provided by this update can be downloaded from the Red Hat container registry at registry.redhat.io using the "podman pull" command.
- Vendor fix Red Hat Product Security RHSA-2022:6393 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/2974891
- Vendor fix Red Hat Product Security RHSA-2021:1499 · 77 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.2/html-single/install/index#instal…
- Vendor fix Red Hat Product Security RHSA-2021:1448 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.0/html-single/install/index#instal…
- No fix available, says the vendor Red Hat Product Security CVE-2021-23358 · 4 productsFix deferred
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-08-29
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01EkamSinghWalia/Detection-script-for-cve-2021-23358MehdiBoukhobza/SandBox_CVE-2021-23358
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-08-29
- CNACVSS 3.13.3known since 2026-10-23
- NVDCVSS 3.17.2read 2026-10-23
- NVDCVSS 2.06.5read 2026-10-23
- NVDweakness (CWE)CWE-94read 2026-10-23
- FIRST EPSSEPSS score4.2 %2026-12-04
- PoC-in-GitHubproof of concept2known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCritical2021-03-31
Identifiers
- AZL-45222same flawAzure Linux · MIT
- EUVD-2021-1042same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-cf4h-3jhx-xvhqsame flawGitHub Advisory Database · CC-BY-4.0
- DLA-2613-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-4883-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0269advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1174advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:0601-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11095-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:2865advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6393advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:2769advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:61939advisory covering several CVEsRed Hat · CC-BY-4.0
- USN-4913-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-03-29
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-cf4h-3jhx-xvhq
Frequently asked questions
What is CVE-2021-23358?
Is CVE-2021-23358 actively exploited?
What is the CVSS score for CVE-2021-23358?
Running underscore? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-cf4h-3jhx-xvhq
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0