CVE-2021-42380 in Busybox and 59 more products
A use-after-free in Busybox's awk applet leads to denial of service and possibly code execution when processing a crafted awk pattern in the clrvar function
Affects 60 products from 3 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Busybox | Busybox | ≥ 1.28.0, ≤ 1.33.1 |
| Fedoraproject | Fedora | 33 34 |
| Siemens | SCALANCE WAM763-1 (device and firmware) | < 2.0 |
| Siemens | SCALANCE WAM766-1 (device and firmware) | < 2.0 |
| Siemens | SCALANCE WUM763-1 (device and firmware) | < 2.0 |
| Siemens | SCALANCE WUM766-1 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7DA0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7DB0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7TA0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-7TB0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-3DA0 (device and firmware) | < 2.0 |
| Siemens | 6GK5766-1GE00-3DB0 (device and firmware) | < 2.0 |
| Siemens | SCALANCE M804PB (device and firmware) | < 7.2 |
| Siemens | SCALANCE M874-2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE M876-3 (device and firmware) | < 7.2 |
| Siemens | SCALANCE M876-4 (device and firmware) | < 7.2 |
| Siemens | SCALANCE MUM856-1 (device and firmware) | < 7.2 |
| Siemens | 6GK5812-1AA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5812-1BA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5816-1AA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5816-1BA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5876-3AA02-2BA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5615-0AA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE MUM853-1 (device and firmware) | < 7.2 |
| Siemens | SCALANCE M812-1 Adsl-Router (device and firmware) | < 7.2 |
| Siemens | SCALANCE M816-1 Adsl-Router (device and firmware) | < 7.2 |
| Siemens | SCALANCE M826-2 Shdsl-Router (device and firmware) | < 7.2 |
| Siemens | SCALANCE S615 Eec (device and firmware) | < 7.2 |
| Siemens | SIMATIC S7-1500 Tm Mfp (device and firmware) | < 1.3.0 |
| Siemens | 6GK5615-0AA01-2AA2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE S615 (device and firmware) | < 7.2 |
| Phoenixcontact | Axc F 1152 Firmware | < 2022.0.3 |
| Phoenixcontact | Axc F 2152 Firmware | < 2022.0.3 |
| Phoenixcontact | Axc F 3152 Firmware | < 2022.0.5 |
| Siemens | 6Gk5853-2Ea00-2Da1 (device and firmware) | < 7.2 |
| Siemens | 6Gk5856-2Ea00-3Aa1 (device and firmware) | < 7.2 |
| Siemens | 6Gk5856-2Ea00-3Da1 (device and firmware) | < 7.2 |
| Siemens | 6Gk5874-3Aa00-2Aa2 (device and firmware) | < 7.2 |
| Siemens | 6Gk5876-3Aa02-2Ea2 (device and firmware) | < 7.2 |
| Siemens | 6Gk5876-4Aa00-2Ba2 (device and firmware) | < 7.2 |
| Siemens | 6Gk5876-4Aa00-2Da2 (device and firmware) | < 7.2 |
| Siemens | 6Gk6108-4Am00-2Ba2 (device and firmware) | < 7.2 |
| Siemens | 6Gk6108-4Am00-2Da2 (device and firmware) | < 7.2 |
| Siemens | Ruggedcom Rm1224 Lte(4G) Eu Firmware | < 7.2 |
| Siemens | Ruggedcom Rm1224 Lte(4G) Nam Firmware | < 7.2 |
| Siemens | Scalance M874-3 Firmware | < 7.2 |
| Siemens | Sinamics Perfect Harmony Gh180 Firmware | All versions |
Fix and vendor advisory
- RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2), RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2), SCALANCE M804PB (6GK5804-0AP00-2AA2) and 17 more: Update to V7.2 or later version
Source: ICSA-23-075-01
- SCALANCE WAM763-1 (6GK5763-1AL00-7DA0), SCALANCE WAM766-1 (EU) (6GK5766-1GE00-7DA0), SCALANCE WAM766-1 (US) (6GK5766-1GE00-7DB0) and 6 more: Update to V2.0 or later version
Source: ICSA-23-080-07
- SIMATIC S7-1500 TM MFP - BIOS: Update to V1.3.0 or later version
Source: ICSA-23-166-10
- SINAMICS PERFECT HARMONY GH180 6SR5: Update the firmware of the integrated SCALANCE S615 device to V7.2 or later version
Source: ICSA-23-166-12
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-42380 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-299206-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-11-15 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement input validation and sanitization for awk patterns processed by the awk applet. Restrict access to the awk applet to trusted users and sources.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.