CVE-2020-7677
thenify: Arbitrary Code Execution in thenify
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Ubuntu (medium).
Description
This affects the package thenify before 3.3.1. The name argument provided to the package can be controlled by users without any sanitization, and this is provided to the eval function without any sanitization.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.webjars.npm:thenify | 3.3.1 |
| npm::GitHub Security Advisory npm | thenify | 3.3.1 |
| debian 10 | node-thenify | 3.3.0-1+deb10u1 |
| debian 11 | node-thenify | 3.3.1-1 |
| debian 12 | node-thenify | 3.3.1-1 |
| debian 13 | node-thenify | 3.3.1-1 |
| debian 14 | node-thenify | 3.3.1-1 |
| echo | node-thenify | 3.3.1-1 |
| ubuntu 18.04 | node-thenify | 3.3.0-1+deb10u1build0.18.04.1 |
| ubuntu 18.04-ESM | node-thenify | 3.3.0-1+deb10u1build0.18.04.1 |
| ubuntu 20.04 | node-thenify | 3.3.0-1+deb10u1build0.20.04.1 |
| ubuntu 20.04-ESM | node-thenify | 3.3.0-1+deb10u1build0.20.04.1 |
References
- https://access.redhat.com/security/cve/CVE-2020-7677
- https://github.com/thenables/thenify
- https://github.com/thenables/thenify/blob/master/index.js%23L17
- https://github.com/thenables/thenify/commit/0d94a24eb933bc835d568f3009f4d269c4c4c17a
- https://github.com/thenables/thenify/issues/29
- https://lists.debian.org/debian-lts-announce/2022/09/msg00039.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MTEUUTNIEBHGKUKKLNUZSV7IEP6IP3Q3
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MTEUUTNIEBHGKUKKLNUZSV7IEP6IP3Q3/
All 15 references
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UM6XJ73Q3NAM5KSGCOKJ2ZIA6GUWUJLK
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UM6XJ73Q3NAM5KSGCOKJ2ZIA6GUWUJLK/
- https://nvd.nist.gov/vuln/detail/CVE-2020-7677
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-572317
- https://security.snyk.io/vuln/SNYK-JS-THENIFY-571690
- https://ubuntu.com/security/notices/USN-6016-1
- https://www.cve.org/CVERecord?id=CVE-2020-7677