# CVE-2021-23358: Arbitrary Code Injection

- Severity: Low 3.3 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.20%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2021-03-29T13:15:34.770Z
- Modified: 2026-06-17T03:38:37.023Z
- Also known as: GHSA-cf4h-3jhx-xvhq
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- underscore: from 1.13.0-0 before unspecified; from unspecified before 1.13.0-2; from 1.3.2 before unspecified; from unspecified before 1.12.1
- underscore (npm): from 1.3.2 before 1.12.1
- underscorejs underscore: from 1.3.2 before 1.12.1; from 1.13.0-0 before 1.13.0-2
- debian debian_linux: 9.0; 10.0
- tenable tenable.sc: up to 5.18.0
- fedoraproject fedora: 33; 34

## Every score

- snyk: CVSS:3.1 3.3 Low `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`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: 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`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505> (exploit, third-party-advisory, web)
- <https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71> (broken-link, web)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00038.html> (mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-4883> (third-party-advisory, vendor-advisory, web)
- <https://lists.apache.org/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf%40%3Cissues.cordova.apache.org%3E> (mailing-list, web)
- <https://lists.apache.org/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1%40%3Cissues.cordova.apache.org%3E> (mailing-list, web)
- <https://lists.apache.org/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba%40%3Cissues.cordova.apache.org%3E> (mailing-list, web)
- <https://lists.apache.org/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039%40%3Cissues.cordova.apache.org%3E> (mailing-list, web)
- <https://lists.apache.org/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306%40%3Cissues.cordova.apache.org%3E> (mailing-list, web)
- <https://www.tenable.com/security/tns-2021-14> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240808-0003/>
- <http://seclists.org/fulldisclosure/2025/Apr/14> (web)
- <https://security.netapp.com/advisory/ntap-20241108-0002/>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23358> (advisory)
- <https://github.com/jashkenas/underscore/pull/2917> (web)
- <https://github.com/jashkenas/underscore/commit/4c73526d43838ad6ab43a6134728776632adeb66> (web)
- <https://www.npmjs.com/package/underscore> (web)
- <https://security.netapp.com/advisory/ntap-20241108-0002> (web)
- <https://security.netapp.com/advisory/ntap-20240808-0003> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z> (web)
- <https://lists.apache.org/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf@%3Cissues.cordova.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039@%3Cissues.cordova.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba@%3Cissues.cordova.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306@%3Cissues.cordova.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1@%3Cissues.cordova.apache.org%3E> (web)
- <https://github.com/jashkenas/underscore/releases/tag/1.12.1> (web)
- <https://github.com/jashkenas/underscore> (package)

## Sources

- CVE List: [CVE-2021-23358](https://www.cve.org/CVERecord?id=CVE-2021-23358), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-cf4h-3jhx-xvhq](https://github.com/advisories/GHSA-cf4h-3jhx-xvhq), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2021-23358](https://nvd.nist.gov/vuln/detail/CVE-2021-23358), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23358 · Whole record: https://cve.day/CVE-2021-23358.json · Rebuilt by cve.day 2026-11-25T22:58:00.477Z
