Security Advisory

CVE-2021-42374: BusyBox unlzma Out-of-Bounds Read

Last updated:
  • CVE-2021-42374

CVE-2021-42374 is an out-of-bounds heap read in BusyBox's LZMA decompressor: crafted LZMA data leaks memory and can crash the applet, and tar, unzip and other LZMA-capable applets reach the same code. NVD scores it 5.3 for BusyBox 1.27.0 through 1.33.1, the fix is in 1.34.0, and Siemens lists SCALANCE, RUGGEDCOM and SINAMICS products.

Vulnerability summary

CVSS base score

5.3

Medium severity

EPSS score (FIRST)

0.6%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2021-42374 · Source: NVD

Affected components

ComponentCPEVersion range
BusyBox (unlzma and LZMA-capable applets)cpe:2.3:a:busybox:busybox:*:*:*:*:*:*:*:*1.27.0 through 1.33.1; fixed in 1.34.0 (19 August 2021)
Siemens RUGGEDCOM RM1224 and SCALANCE M-800 / S615 routers (M804PB, M812-1, M816-1, M826-2, M874-x, M876-x, MUM853-1, MUM856-1, S615, S615 EEC)—before V7.2; fixed in V7.2 (Siemens ProductCERT SSA-419740, CISA ICSA-23-075-01)
Siemens SCALANCE W-700 IEEE 802.11ax (WAM763-1, WAM766-1, WUM763-1, WUM766-1)—before V2.0; fixed in V2.0 (Siemens ProductCERT SSA-565386, CISA ICSA-23-080-07)
Siemens SINAMICS PERFECT HARMONY GH180 (integrated SCALANCE S615)—integrated S615 firmware before V7.2; update the S615 to V7.2 (Siemens ProductCERT SSA-942865, CISA ICSA-23-166-12)

What does this mean for affected devices?

NVD describes CVE-2021-42374 as "an out-of-bounds heap read in Busybox's unlzma applet" that "leads to information leak and denial of service when crafted LZMA-compressed input is decompressed". NVD scores it 5.3 (medium), vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H, CWE-125, and its CPE covers BusyBox 1.27.0 through 1.33.1 (NVD).

It is one of 14 BusyBox CVEs that Claroty's Team82 and JFrog published on 9 November 2021, all fixed in BusyBox 1.34.0 (19 August 2021). The JFrog post locates the bug in an "insufficient size check in the unpack_lzma_stream function" and scores it 6.5. Reach is wider than the applet name: "even if the unlzma applet is not available, but CONFIG_FEATURE_SEAMLESS_LZMA (enabled by default) is enabled, other applets such as tar, unzip, rpm, dpkg, lzma and man can also reach the vulnerable code". JFrog calls ZIP the better attack vector, giving the example of an embedded web service that accepts uploaded zip files and extracts them where the leaked data can be read back.

Siemens lists the device impact in three advisories, all scoring it 6.5 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H). SSA-419740 (CISA ICSA-23-075-01) covers the RUGGEDCOM RM1224 and 18 SCALANCE M-800, MUM-800 and S615 router variants before V7.2. SSA-565386 (CISA ICSA-23-080-07) covers nine SCALANCE W-700 IEEE 802.11ax variants before V2.0. SSA-942865 (CISA ICSA-23-166-12) covers the SCALANCE S615 built into SINAMICS PERFECT HARMONY GH180 medium-voltage drives; the fix is to update that S615 to V7.2, and the interim advice is to restrict physical access and disconnect direct network connections to it.

The Debian Security Tracker notes that the code entered in BusyBox 1.27.0 and lists the fix in bullseye 1:1.30.1-6+deb11u1 (DLA-4019-1). Our BusyBox vulnerabilities in embedded Linux firmware guide maps this CVE to the TAR, CPIO, UNLZMA and FEATURE_SEAMLESS_LZMA config symbols: it matters when firmware unpacks archives it receives. Other CVEs from the same disclosure and the same Siemens advisories include CVE-2021-42375, CVE-2021-42377 and CVE-2021-42378.

CVE-2021-42374 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13), and FIRST EPSS gives it 0.0063, the 51st percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).

To fix it, update Siemens routers and the GH180's S615 to V7.2 and W-700 devices to V2.0. In your own firmware, ship BusyBox 1.34.0 or later, or disable LZMA support if no update path accepts LZMA archives. Our memory corruption fix guide covers out-of-bounds reads as a class.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Out-of-bounds heap read in unlzma on crafted LZMA input; NVD CVSS 3.1 5.3 (AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H), CWE-125; CPE 1.27.0 through 1.33.1. — NVD
  • Insufficient size check in unpack_lzma_stream; JFrog score 6.5; CONFIG_FEATURE_SEAMLESS_LZMA lets tar, unzip, rpm, dpkg, lzma and man reach the code; fixed in 1.34.0. — JFrog
  • Disclosure of 14 BusyBox CVEs by Claroty Team82 and JFrog on 9 November 2021. — Claroty Team82
  • RUGGEDCOM RM1224 and SCALANCE M-800/MUM-800/S615 before V7.2 affected; Siemens CVSS 6.5. — Siemens ProductCERT SSA-419740
  • SCALANCE W-700 IEEE 802.11ax before V2.0 affected. — Siemens ProductCERT SSA-565386
  • SINAMICS PERFECT HARMONY GH180 integrated SCALANCE S615 affected; update the S615 to V7.2. — Siemens ProductCERT SSA-942865
  • Debian: introduced in 1.27.0; bullseye fixed 1:1.30.1-6+deb11u1 (DLA-4019-1). — Debian Security Tracker
  • Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.00628 (51st percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-419740: Third-Party Component Vulnerabilities in RUGGEDCOM and SCALANCE Products before V7.2
  3. CISA ICS Advisory ICSA-23-075-01
  4. Siemens ProductCERT SSA-565386: Third-Party Component Vulnerabilities in SCALANCE W-700 IEEE 802.11ax devices before V2.0
  5. CISA ICS Advisory ICSA-23-080-07
  6. Siemens ProductCERT SSA-942865: Integrated SCALANCE S615 of SINAMICS Medium Voltage Products
  7. CISA ICS Advisory ICSA-23-166-12
  8. JFrog: Unboxing BusyBox, 14 new vulnerabilities
  9. Claroty Team82: Unboxing BusyBox, 14 vulnerabilities
  10. Debian Security Tracker
  11. CISA KEV
  12. FIRST EPSS

Frequently asked questions

Which BusyBox applets can trigger CVE-2021-42374?

unlzma, and with FEATURE_SEAMLESS_LZMA enabled (the default) also tar, unzip, rpm, dpkg, lzma and man when they handle LZMA data (per JFrog).

Which Siemens products are affected by CVE-2021-42374?

RUGGEDCOM RM1224 and SCALANCE M-800, MUM-800 and S615 routers before V7.2, SCALANCE W-700 IEEE 802.11ax devices before V2.0, and the SCALANCE S615 integrated in SINAMICS PERFECT HARMONY GH180 drives (per Siemens ProductCERT SSA-419740, SSA-565386 and SSA-942865).

Which BusyBox version fixes CVE-2021-42374?

BusyBox 1.34.0, released 19 August 2021. NVD lists 1.27.0 through 1.33.1 as affected, and Debian notes the code was introduced in 1.27.0 (per NVD, JFrog and the Debian Security Tracker).

Is CVE-2021-42374 in the CISA KEV catalog?

No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0063, the 51st percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).