CVE-2021-42377
busybox: an attacker-controlled pointer free in hush applet leads to denial of service and possible code execution when processing a crafted shell command
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium).
Description
An attacker-controlled pointer free in Busybox's hush applet leads to denial of service and possible code execution when processing a crafted shell command, due to the shell mishandling the &&& string. This may be used for remote code execution under rare conditions of filtered command input.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.11 | busybox | 0 |
| alpine 3.12 | busybox | 0 |
| alpine 3.13 | busybox | 0 |
| alpine 3.14 | busybox | 0 |
| alpine 3.15 | busybox | 0 |
| alpine 3.16 | busybox | 0 |
| alpine 3.17 | busybox | 0 |
| alpine 3.18 | busybox | 0 |
| alpine 3.19 | busybox | 0 |
| alpine 3.20 | busybox | 0 |
| alpine 3.21 | busybox | 0 |
| alpine 3.22 | busybox | 0 |
Show all 20 entries from 20 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.11 | busybox | 0 |
| alpine 3.12 | busybox | 0 |
| alpine 3.13 | busybox | 0 |
| alpine 3.14 | busybox | 0 |
| alpine 3.15 | busybox | 0 |
| alpine 3.16 | busybox | 0 |
| alpine 3.17 | busybox | 0 |
| alpine 3.18 | busybox | 0 |
| alpine 3.19 | busybox | 0 |
| alpine 3.20 | busybox | 0 |
| alpine 3.21 | busybox | 0 |
| alpine 3.22 | busybox | 0 |
| alpine 3.23 | busybox | 0 |
| alpine 3.24 | busybox | 0 |
| alpine edge | busybox | 0 |
| debian 11 | busybox | no fix listed |
| debian 12 | busybox | 1:1.35.0-1 |
| debian 13 | busybox | 1:1.35.0-1 |
| debian 14 | busybox | 1:1.35.0-1 |
| echo | busybox | 1:1.35.0-1 |
References
- https://access.redhat.com/security/cve/CVE-2021-42377
- https://claroty.com/team82/research/unboxing-busybox-14-vulnerabilities-uncovered-by-claroty-jfrog
- https://jfrog.com/blog/unboxing-busybox-14-new-vulnerabilities-uncovered-by-claroty-and-jfrog/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6T2TURBYYJGBMQTTN2DSOAIQGP7WCPGV/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UQXGOGWBIYWOIVXJVRKHZR34UMEHQBXS/
- https://nvd.nist.gov/vuln/detail/CVE-2021-42377
- https://security.netapp.com/advisory/ntap-20211223-0002/
- https://www.cve.org/CVERecord?id=CVE-2021-42377