CVE-2022-30065 in Busybox and 51 more products
A use-after-free in Busybox 1.35-x's awk applet leads to denial of service and possibly code execution when processing a crafted awk pattern in the copyvar function.
Affects 52 products from 2 vendors. Description from NVD and MITRE.
Requires local access, low complexity, no authentication required, requires user interaction, 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.35.0 |
| Siemens | SCALANCE S615 (device and firmware) | < 7.2 |
| Siemens | SCALANCE SC622-2C (device and firmware) | < 3.0 |
| Siemens | SCALANCE SC632-2C (device and firmware) | < 3.0 |
| Siemens | SCALANCE SC636-2C (device and firmware) | < 3.0 |
| Siemens | SCALANCE SC642-2C (device and firmware) | < 3.0 |
| Siemens | SCALANCE SC646-2C (device and firmware) | < 3.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 SC626-2C (device and firmware) | < 3.0 |
| 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 | SIMATIC S7-1500 Tm Mfp (device and firmware) | < 1.3.0 |
| Siemens | 6GK5615-0AA01-2AA2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE XCM332 | < 2.2 |
| Siemens | SCALANCE S615 Eec (device and firmware) | < 7.2 |
| Phoenixcontact | Axc F 1152 Firmware | < 2023.0.0 |
| Phoenixcontact | Axc F 2152 Firmware | < 2023.0.0 |
| Phoenixcontact | Axc F 3152 Firmware | < 2023.0.0 |
| Phoenixcontact | Bpc 9102S Firmware | < 2023.0.0 |
| Phoenixcontact | Rfc 4072R Firmware | < 2023.0.0 |
| Phoenixcontact | Rfc 4072S Firmware | < 2023.0.0 |
| 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 |
Fix and vendor advisory
- SCALANCE SC622-2C (6GK5622-2GS00-2AC2), SCALANCE SC626-2C (6GK5626-2GS00-2AC2), SCALANCE SC632-2C (6GK5632-2GS00-2AC2) and 3 more: Update to V3.0 or later version
Source: ICSA-22-349-18
- 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 XCM332 (6GK5332-0GA01-2AC2): Update to V2.2 or later version
Source: ICSA-23-103-09
- SIMATIC S7-1500 TM MFP - BIOS: Update to V1.3.0 or later version
Source: ICSA-23-166-10
- Update to the latest 2023.0.0 LTS Firmware Release. PHOENIX CONTACT recommends to always use an up-to-date version of the PLCnext Engineer.
Source: VDE-2023-001
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2022-30065 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-318580-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2022-05-18 |
| Last modified | 2026-07-07 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for awk patterns to prevent the use of crafted patterns that could trigger the use-after-free condition. Additionally, monitor system logs for unusual activity related to the awk applet.
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-07-07.