CVE-2011-5325
High · 7.5CVSS
7.5
EPSS
7.0%
Published
Aug 7, 2017
CISA due date
—
Cloudanix analysis
A flaw in an older version of a common file-extraction tool can let attackers place files anywhere on a computer when someone unpacks a specially made archive, potentially damaging or taking over the system.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits a malicious tar archive containing symlinks to cause extraction to write files outside the intended target directory by following those symlinks during unpacking.
Why it matters to the business
Attackers can overwrite or place arbitrary files on systems that extract untrusted archives with the vulnerable tar implementation, leading to configuration tampering, data corruption, or potential system compromise; the issue affects widely used embedded and Linux distributions with high ecosystem prevalence.
How an attack unfolds
An attacker crafts a tar archive embedding symlinks that traverse outside the extraction root, then delivers the archive to a victim system running vulnerable BusyBox tar; when the victim extracts the archive the symlinks cause files to be written to unauthorized locations, potentially overwriting critical system files or planting malicious content.
How to fix it
Upgrade BusyBox to version 1.22.0 v5 or later on all affected systems; rebuild or replace embedded BusyBox instances in firmware and distributions; verify extraction of untrusted archives occurs only inside isolated directories with least-privilege accounts.
How to confirm the fix worked
Confirm BusyBox version is 1.22.0 v5 or newer via binary version string or package manager output; test extraction of a known symlink tarball in a controlled directory and verify no files appear outside the target path.
Typical attack path
- Craft malicious tar archive with crafted symlinks pointing outside extraction directory
- Deliver archive to target via download, email attachment, or supply-chain vector
- Victim invokes vulnerable BusyBox tar to extract the archive
- Symlinks cause writes to arbitrary filesystem locations outside intended directory
- Attacker achieves file overwrite or placement leading to further compromise
How to detect it
Search system and application logs for tar extraction events that reference unexpected paths or symlink creation; inspect file-system timestamps for files written outside normal extraction directories during archive operations; review process execution history for invocations of vulnerable BusyBox tar on untrusted inputs.
What your security team should do
- Immediately inventory all BusyBox deployments and prioritize upgrade of internet-facing or multi-tenant systems
- Implement archive extraction inside chroot or containerized sandboxes pending patches
- Add monitoring for unexpected file writes during tar operations in critical paths
- Review supply-chain and firmware update processes for embedded BusyBox instances
The record
Directory traversal vulnerability in the BusyBox implementation of tar before 1.22.0 v5 allows remote attackers to point to files outside the current working directory via a symlink.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | busybox | 0 | 1:1.27.2-1 |
| Debian:12 | busybox | 0 | 1:1.27.2-1 |
| Debian:13 | busybox | 0 | 1:1.27.2-1 |
| Debian:8 | busybox | 0 | 1:1.22.0-9+deb8u2 |
| Debian:9 | busybox | 0 | 1:1.22.0-19+deb9u1 |
| SUSE:Enterprise Storage 6 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Enterprise Storage 6 | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Enterprise Storage 6 | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Enterprise Storage 7 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP2 | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP2 | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | busybox | 0 | 1.35.0-150400.3.3.1 |
| SUSE:Linux Enterprise Real Time 15 SP2 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 12 SP5 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server 15 SP2-BCL | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15-LTSS | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server 15-LTSS | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | busybox | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | busybox-static | 0 | 1.26.2-4.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Manager Proxy 4.1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Manager Retail Branch Server 4.1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:Manager Server 4.1 | busybox | 0 | 1.34.1-4.9.1 |
| SUSE:OpenStack Cloud 9 | busybox | 0 | 1.35.0-4.3.1 |
| SUSE:OpenStack Cloud Crowbar 9 | busybox | 0 | 1.35.0-4.3.1 |
| Ubuntu:14.04:LTS | busybox | 0 | 1:1.21.0-1ubuntu1.4 |
| Ubuntu:16.04:LTS | busybox | 0 | 1:1.22.0-15ubuntu1.4 |
| Ubuntu:18.04:LTS | busybox | 0 | 1:1.27.2-2ubuntu3 |
| Ubuntu:18.04:LTS | busybox | 0 | 1:1.27.2-2ubuntu3.2 |
| openSUSE:Leap 15.2 | busybox | 0 | 1.26.2-lp152.5.3.1 |
| openSUSE:Leap 15.2 | busybox-static | 0 | 1.26.2-lp152.5.3.1 |
| openSUSE:Leap 15.3 | busybox | 0 | 1.34.1-4.9.1 |
| openSUSE:Leap 15.3 | busybox | 0 | 1.26.2-4.5.1 |
| openSUSE:Leap 15.3 | busybox-static | 0 | 1.26.2-4.5.1 |
| openSUSE:Leap 15.3 | virtualbox | 0 | 6.1.34-lp153.2.27.2 |
| openSUSE:Leap 15.3 | virtualbox-kmp | 0 | 6.1.34-lp153.2.27.1 |
| openSUSE:Leap 15.4 | busybox | 0 | 1.35.0-150400.3.3.1 |
| openSUSE:Tumbleweed | busybox | 0 | 1.35.0-1.1 |
Related vulnerabilities
- CVE-2023-39810 An issue in the CPIO command of Busybox v1.33.2 allows attackers to execute a directory… Also affects busybox
- CVE-2014-4607 Integer overflow in the LZO algorithm variant in Oberhumer liblzo2 and lzo-2 before 2.07… Also affects busybox
- CVE-2016-2148 Heap-based buffer overflow in the DHCP client (udhcpc) in BusyBox before 1.25.0 allows… Also affects busybox
- CVE-2022-21571 Vulnerability in the Oracle VM VirtualBox product of Oracle Virtualization (component… Also affects virtualbox
- CVE-2022-21554 Vulnerability in the Oracle VM VirtualBox product of Oracle Virtualization (component… Also affects virtualbox
- CVE-2022-21394 Vulnerability in the Oracle VM VirtualBox product of Oracle Virtualization (component… Also affects virtualbox
- CVE-2026-29004 BusyBox before commit 42202bf contains a heap buffer overflow vulnerability in the DHCPv6… Also affects busybox
- CVE-2026-26158 A flaw was found in BusyBox. Also affects busybox