CVE-2023-42365 is a use-after-free in the copyvar function of the BusyBox awk applet, reached through a crafted awk pattern. NVD scores it 5.5 for BusyBox 1.36.1, while Siemens scores it 7.8. The fix is in the 1.37.0 line. 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-42365 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| BusyBox (awk applet, copyvar in editors/awk.c) | cpe:2.3:a:busybox:busybox:1.36.1:*:*:*:*:*:*:* | NVD CPE: 1.36.1; fixed by commits 0256e00 and 38335df in the 1.37.0 line |
| Siemens SINEC OS devices: RUGGEDCOM RST2428P, SCALANCE XCM-/XRM-/XCH-/XRH-300 family, and SCALANCE XC-300/XR-300/XC-400/XR-500 family when migrated to SINEC OS | — | all versions before V3.3; fixed in V3.3 (Siemens ProductCERT SSA-089022, CISA ICSA-26-043-06) |
What does this mean for affected devices?
CVE-2023-42365 is a use-after-free (CWE-416). NVD's description says it "was discovered in BusyBox v.1.36.1 via a crafted awk pattern in the awk.c copyvar function". 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, and its CPE lists 1.36.1 alone (NVD).
Siemens reads the impact differently. In SSA-089022 it scores the same CVE 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, counting confidentiality and integrity impact as well as availability. Of the four 2023 awk CVEs, it is the only one Siemens scores higher than NVD; it gives CVE-2023-42363, -42364 and -42366 5.5.
The Debian Security Tracker traces the fix for both CVE-2023-42364 and CVE-2023-42365 to BusyBox commit 0256e00, "awk: fix precedence of = relative to ==", dated 2023-05-30, plus commit 38335df, dated 2024-07-09, which repairs a regression the first one caused. Neither commit title names a CVE, and both are in the 1_37_0 line, so the upstream fix arrives with BusyBox 1.37.0 (27 September 2024). Debian fixed bookworm in 1:1.35.0-4+deb12u1 and bullseye in 1:1.30.1-6+deb11u1 through DLA-4019-1.
Siemens ProductCERT SSA-089022, published 2026-01-28 and updated 2026-02-24, lists it for all SINEC OS versions before V3.3, republished by CISA as ICSA-26-043-06 on 2026-02-12. The affected devices are the RUGGEDCOM RST2428P Layer 2 switch, the SCALANCE XCM-/XRM-/XCH-/XRH-300 family and, since the 2026-02-24 update, the SCALANCE XC-300/XR-300/XC-400/XR-500 family, which Siemens says is affected only when it has been migrated from MSPS to SINEC OS firmware. The fix is SINEC OS V3.3. The advisory lists the CVE with its siblings CVE-2023-42363, CVE-2023-42364 and CVE-2023-42366, the cpio flaw CVE-2023-39810 and the ash flaw CVE-2022-48174.
As with the other awk bugs, the device question is whether untrusted text ever becomes an awk program. Our BusyBox vulnerabilities in embedded Linux firmware guide shows how to find awk callers in an image and how to drop the applet with the AWK config symbol.
CVE-2023-42365 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13), and FIRST EPSS gives it 0.0039, the 34th percentile, in the 2026-11-16 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 0256e00 together with 38335df, or remove awk, then re-scan the image. Our memory corruption fix guide covers use-after-free as a class.
Evidence
- Use-after-free in awk.c copyvar 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
- Siemens CVSS 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) for CVE-2023-42365; 5.5 for -42363, -42364, -42366; SINEC OS before V3.3 affected, fixed in V3.3. — Siemens ProductCERT SSA-089022
- Fixed by commit 0256e00 with regression fix 38335df (both 1_37_0); bookworm fixed in 1:1.35.0-4+deb12u1; bullseye fixed via DLA-4019-1. — Debian Security Tracker
- Commit 0256e00 (2023-05-30) "awk: fix precedence of = relative to ==". — BusyBox commit 0256e00 (GitHub mirror)
- Commit 38335df (2024-07-09) "awk: restore assignment precedence to be lower than ternary ?:". — BusyBox commit 38335df (GitHub mirror)
- DLA-4019-1 (19 January 2025) fixes CVE-2023-42365 in busybox 1:1.30.1-6+deb11u1. — Debian LTS Advisory DLA-4019-1
- Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
- EPSS 0.00393 (34th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Why does Siemens score CVE-2023-42365 7.8 when NVD scores 5.5?
Both rate it local with user interaction, but Siemens counts high confidentiality and integrity impact as well, while NVD counts availability only (per Siemens ProductCERT SSA-089022 and NVD).
Which devices does Siemens list for CVE-2023-42365?
All SINEC OS versions before V3.3 on the RUGGEDCOM RST2428P, the SCALANCE XCM-/XRM-/XCH-/XRH-300 family and the SCALANCE XC-300/XR-300/XC-400/XR-500 family when migrated to SINEC OS, fixed in V3.3 (per Siemens ProductCERT).
Which BusyBox version fixes CVE-2023-42365?
The fix commits 0256e00 and 38335df are in the 1.37.0 line, released 27 September 2024. Debian backported them to bookworm 1:1.35.0-4+deb12u1 and bullseye 1:1.30.1-6+deb11u1 (per the Debian Security Tracker).
Is CVE-2023-42365 in the CISA KEV catalog?
No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0039, the 34th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?