Security Advisory

CVE-2023-39810: BusyBox cpio Path Traversal

Last updated:
  • CVE-2023-39810

CVE-2023-39810 is a path traversal in the BusyBox cpio applet: an archive with ../ in its file names makes cpio write files outside the destination directory. NVD scores it 7.8. BusyBox 1.38.0 adds a fix behind a config option that is off by default. Siemens lists it for RUGGEDCOM and SCALANCE devices on SINEC OS before V3.3.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

0.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
BusyBox (cpio applet, archival/libarchive)cpe:2.3:a:busybox:busybox:1.33.2:*:*:*:*:*:*:*NVD CPE: 1.30.1 and 1.33.2; fixed by commit 9a87964 in 1.38.0 (13 May 2026) behind FEATURE_PATH_TRAVERSAL_PROTECTION, default off
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-39810 is a path traversal (CWE-22) in BusyBox's cpio applet. NVD's description is short: "An issue in the CPIO command of Busybox v1.33.2 allows attackers to execute a directory traversal." NVD scores it 7.8 (high), vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, and its CPE lists BusyBox 1.30.1 and 1.33.2 (NVD).

The Pentagrid advisory, by Tobias Ospelt and Martin Schobert, explains the behaviour. BusyBox cpio extracts members with relative ../ names, and unlike GNU cpio it has no option to refuse them. An untrusted archive can therefore overwrite files such as shell start-up scripts or ~/.ssh/authorized_keys, as far as the cpio process has write access. Pentagrid reproduced it on BusyBox 1.33.2 and 1.30.1, published on 2023-08-28 after its e-mails to the maintainer went unanswered, and scored it 6.1 (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L).

The upstream fix is commit 9a87964, titled "archival: disallow path traversals (CVE-2023-39810)" and based on a patch by Peter Kaestle of Nokia. It adds the config option FEATURE_PATH_TRAVERSAL_PROTECTION, which strips leading / and ../ components for cpio, ar, rpm and the other unpacking applets (tar and unzip already did this). The option defaults to n, so a rebuild with default settings stays affected. The fix line is in the BusyBox 1.38.0 change log on the BusyBox news page, released 13 May 2026. The Debian Security Tracker shows bookworm and trixie as vulnerable (minor issue) and the fix in unstable from 1:1.37.0-7.

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. Siemens scores this CVE 6.1, matching Pentagrid rather than NVD.

On a device this matters wherever cpio unpacks data from outside: update or recovery images, initramfs handling or configuration bundles in cpio format. Our BusyBox vulnerabilities in embedded Linux firmware guide lists cpio with tar and unlzma among the applets to check and drop with their config symbols. The same Siemens advisory covers the awk flaws CVE-2023-42364, CVE-2023-42365, CVE-2023-42366 and CVE-2023-42363, and the ash flaw CVE-2022-48174.

CVE-2023-39810 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13), and FIRST EPSS gives it 0.0077, the 56th 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, take BusyBox 1.38.0 or backport 9a87964, then set CONFIG_FEATURE_PATH_TRAVERSAL_PROTECTION=y; or extract only named members, as Pentagrid suggests, or drop cpio. Our path traversal fix guide covers the class.

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

Evidence

  • Directory traversal in BusyBox cpio v1.33.2; NVD CVSS 3.1 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), CWE-22; CPE 1.30.1 and 1.33.2. — NVD
  • cpio extracts ../ names with no option to prevent it; reproduced on 1.33.2 and 1.30.1; published 2023-08-28; Pentagrid CVSS 6.1; found by Tobias Ospelt and Martin Schobert. — Pentagrid
  • Commit 9a87964 "archival: disallow path traversals (CVE-2023-39810)" adds FEATURE_PATH_TRAVERSAL_PROTECTION, default n, based on a patch by Peter Kaestle (Nokia). — BusyBox commit 9a87964 (GitHub mirror)
  • BusyBox 1.38.0 (13 May 2026) change log lists "archival: disallow path traversals (CVE-2023-39810)". — BusyBox news
  • bookworm and trixie vulnerable (no-dsa, minor issue); fixed in unstable 1:1.37.0-7. — Debian Security Tracker
  • SINEC OS before V3.3 on RUGGEDCOM RST2428P and SCALANCE XC/XR/XCM/XRM/XCH/XRH devices affected; Siemens CVSS 6.1; fixed in V3.3. — Siemens ProductCERT SSA-089022
  • Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.00765 (56th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-089022: Third-Party Components in SINEC OS before V3.3
  3. CISA ICS Advisory ICSA-26-043-06
  4. Pentagrid: BusyBox cpio directory traversal vulnerability
  5. BusyBox commit 9a87964 (GitHub mirror)
  6. BusyBox news: 1.38.0 change log
  7. Debian Security Tracker
  8. CISA KEV
  9. FIRST EPSS

Frequently asked questions

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

SSA-089022 lists 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).

Does upgrading to BusyBox 1.38.0 fix CVE-2023-39810?

Only if the new option is enabled. Commit 9a87964 adds FEATURE_PATH_TRAVERSAL_PROTECTION with a default of n, so a default build still extracts ../ names (per the BusyBox commit and the busybox.net change log).

When is a device exposed to CVE-2023-39810?

When BusyBox cpio extracts an archive an attacker can supply, such as an update or configuration bundle, and the process can write outside the target directory (per Pentagrid).

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

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