CVE-2023-7207 Path traversal in Debian cpio

Medium 4.9 Published Updated

A path traversal vulnerability in Debian's cpio allows attackers to read or modify files outside the intended directory.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-7207?

CVE-2023-7207 is a medium-severity path traversal vulnerability in Debian cpio, published on 5 Jan 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Debian's cpio contains a path traversal vulnerability. This issue was introduced by reverting CVE-2015-1197 patches which had caused a regression in --no-absolute-filenames. Upstream has since provided a proper fix to --no-absolute-filenames.

Weakness: CWE-22

Which versions are affected by CVE-2023-7207?

It affects 1 product.

Linux distribution packages (35)
cpio SUSE:Enterprise Storage 7.1All versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Micro 5.1All versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise Micro 5.2All versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise Micro 5.3All versions2.13-150400.3.3.1
cpio SUSE:Linux Enterprise Micro 5.3All versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Micro 5.4All versions2.13-150400.3.3.1
cpio SUSE:Linux Enterprise Micro 5.4All versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Micro 5.5All versions2.13-150400.3.3.1
cpio SUSE:Linux Enterprise Micro 5.5All versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Micro 5.5All versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions2.13-150400.3.3.1
cpio SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Server 12 SP5All versions2.11-36.18.1
cpio SUSE:Linux Enterprise Server 12 SP5All versions2.11-36.21.1
cpio SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions2.13-150400.3.6.1
cpio SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions2.11-36.18.1
cpio SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions2.11-36.21.1
cpio SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions2.12-150000.3.12.1
cpio SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions2.13-150400.3.6.1
cpio SUSE:Manager Proxy 4.3All versions2.13-150400.3.6.1
cpio SUSE:Manager Server 4.3All versions2.13-150400.3.6.1
cpio openSUSE:Leap 15.5All versions2.13-150400.3.3.1
cpio openSUSE:Leap 15.5All versions2.13-150400.3.6.1
cpio openSUSE:Leap Micro 5.3All versions2.13-150400.3.3.1
cpio openSUSE:Leap Micro 5.3All versions2.13-150400.3.6.1
cpio openSUSE:Leap Micro 5.4All versions2.13-150400.3.3.1
cpio openSUSE:Leap Micro 5.4All versions2.13-150400.3.6.1
cpio openSUSE:TumbleweedAll versions2.15-1.1

Products include Gnu Cpio.

How do I fix CVE-2023-7207?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-7207 being exploited?

There is no known exploitation of CVE-2023-7207 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-7207, GHSA-x4gq-xcr8-xwp7, SUSE-SU-2024:0238-1, SUSE-SU-2024:0248-1, SUSE-SU-2024:0305-1, SUSE-SU-2024:0305-2 and 6 more.

Is CVE-2023-7207 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free