Security Advisory

CVE-2023-42363: BusyBox awk Use-After-Free

Last updated:
  • CVE-2023-42363

CVE-2023-42363 is a use-after-free in the BusyBox awk applet that a crafted awk program can trigger to crash the process. NVD scores it 5.5 for BusyBox 1.36.1, and the fix shipped in BusyBox 1.37.0. Siemens lists it for RUGGEDCOM and SCALANCE devices on SINEC OS before V3.3, fixed in V3.3.

Vulnerability summary

CVSS base score

5.5

Medium severity

EPSS score (FIRST)

0.4%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2023-42363 · Source: NVD

Affected components

ComponentCPEVersion range
BusyBox (awk applet, editors/awk.c)cpe:2.3:a:busybox:busybox:1.36.1:*:*:*:*:*:*:*NVD CPE: 1.36.1; Debian traces the trigger to a change in the 1_34_0 line; fixed by commit fb08d43, listed in the 1.37.0 change log
Siemens SINEC OS devices: RUGGEDCOM RST2428P, SCALANCE XCM-/XRM-/XCH-/XRH-300 and XC-300/XR-300/XC-400/XR-500 families—all versions before V3.3; fixed in V3.3 (Siemens ProductCERT SSA-089022)

What does this mean for affected devices?

CVE-2023-42363 is a use-after-free (CWE-416). NVD's description names the xasprintf function in xfuncs_printf.c:344 of BusyBox 1.36.1, which is where the freed memory is touched; the bug itself sits in awk. NVD scores it 5.5 (medium), vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H: local, needs user interaction, availability impact only. Its CPE lists 1.36.1 alone (NVD).

The upstream fix is commit fb08d43 by Natanael Copa, dated 2024-05-20, titled "awk: fix use after free (CVE-2023-42363)". It changes evaluate in editors/awk.c. The same line appears in the BusyBox 1.37.0 change log on the BusyBox news page, released 27 September 2024. The Debian Security Tracker adds a useful version note: the proof of concept "triggers on bookworm but not on bullseye" and starts with a change in the 1_34_0 line, so the published proof of concept does not trigger on builds that predate that change. Debian fixed bookworm in 1:1.35.0-4+deb12u1 and marked bullseye and buster as a minor issue it ignores.

The device angle is Siemens ProductCERT SSA-089022, published 2026-01-28 and updated 2026-02-24. It lists CVE-2023-42363 together with the other 2023 awk CVEs (CVE-2023-42364, -42365 and -42366) and the ash flaw CVE-2022-48174 for all SINEC OS versions before V3.3. Affected devices are the RUGGEDCOM RST2428P, the SCALANCE XCM-/XRM-/XCH-/XRH-300 family and the SCALANCE XC-300/XR-300/XC-400/XR-500 family running SINEC OS. Siemens scores this CVE the same as NVD, 5.5, and recommends updating to V3.3.

Whether a device is exposed depends on how awk is used. The flaw needs an attacker-supplied awk program. Fixed one-liners written by the firmware author are low risk; scripts that build awk programs from received data, or a shell that lets users run awk, are what make the bug reachable. Our BusyBox vulnerabilities in embedded Linux firmware guide explains how to check whether awk is compiled in and called on untrusted input, and how to drop it with the AWK config symbol when nothing needs it. The older awk flaw CVE-2021-42386 follows the same pattern.

CVE-2023-42363 is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13), and FIRST EPSS gives it 0.0042, the 37th percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

To fix it, update Siemens SINEC OS devices to V3.3. In your own firmware, move to BusyBox 1.37.0 or later or backport fb08d43, or remove awk, then re-scan the image. Our memory corruption fix guide covers use-after-free 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

  • Use-after-free in xasprintf (xfuncs_printf.c:344) in BusyBox 1.36.1; NVD CVSS 3.1 5.5 (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H), CWE-416; CPE 1.36.1. — NVD
  • Fix commit fb08d43 (2024-05-20) "awk: fix use after free (CVE-2023-42363)" changes evaluate in editors/awk.c. — BusyBox commit fb08d43 (GitHub mirror)
  • BusyBox 1.37.0 (27 September 2024) change log lists "awk: fix use after free (CVE-2023-42363)". — BusyBox news
  • PoC triggers on bookworm but not bullseye, starting with a 1_34_0 change; bookworm fixed in 1:1.35.0-4+deb12u1; bullseye and buster ignored as minor. — Debian Security Tracker
  • SINEC OS before V3.3 on RUGGEDCOM RST2428P and SCALANCE XC/XR/XCM/XRM/XCH/XRH devices affected; Siemens CVSS 5.5; fixed in V3.3. — Siemens ProductCERT SSA-089022
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.00424 (37th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-089022: Third-Party Components in SINEC OS before V3.3
  3. BusyBox commit fb08d43 (GitHub mirror)
  4. BusyBox news: 1.37.0 change log
  5. Debian Security Tracker
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which devices does Siemens list for CVE-2023-42363?

SSA-089022 lists all SINEC OS versions before V3.3 on the RUGGEDCOM RST2428P and on SCALANCE XCM-/XRM-/XCH-/XRH-300 and XC-300/XR-300/XC-400/XR-500 devices running SINEC OS, fixed in V3.3 (per Siemens ProductCERT).

Is CVE-2023-42363 in awk or in xasprintf?

NVD names xasprintf in xfuncs_printf.c, where the freed memory is used, but the fix commit fb08d43 changes the evaluate function in editors/awk.c. A build without the awk applet does not contain the faulty code (per NVD and the BusyBox commit).

Which BusyBox version fixes CVE-2023-42363?

BusyBox 1.37.0, released 27 September 2024, whose change log lists "awk: fix use after free (CVE-2023-42363)". Debian backported the fix to bookworm's 1:1.35.0-4+deb12u1 (per busybox.net and the Debian Security Tracker).

Is CVE-2023-42363 in the CISA KEV catalog?

No, not as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.0042, the 37th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).