CVE-2013-0211
NoneCVSS
—
EPSS
3.9%
Published
Sep 30, 2013
CISA due date
—
Cloudanix analysis
A bug in a common file-handling library can make programs crash when they try to work with certain archive files, interrupting services that depend on those programs.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer signedness error in archive_write_zip_data triggers improper signed-to-unsigned conversion on 64-bit systems, resulting in a buffer overflow that crashes the process during ZIP archive handling.
Why it matters to the business
Applications relying on libarchive for archive extraction or creation can be forced offline by specially crafted ZIP files, producing unplanned downtime for backup, packaging, and distribution workflows.
How an attack unfolds
An attacker prepares a ZIP archive that exercises the signedness flaw during write operations; when a vulnerable 64-bit libarchive instance processes the file, the resulting overflow causes an immediate crash and denial of service.
How to fix it
Upgrade libarchive to a release newer than 3.1.2 on all affected platforms; rebuild and redeploy any statically linked applications that embed the vulnerable library.
How to confirm the fix worked
Verify installed libarchive version is greater than 3.1.2; run regression tests that exercise ZIP write paths on 64-bit systems with boundary-sized archives.
Typical attack path
- Generate a ZIP archive containing crafted data that triggers the signedness error
- Deliver the archive to any service or tool that uses libarchive to read or write ZIP files
- Trigger archive processing (e.g., extraction, listing, or creation)
- Observe process termination due to buffer overflow
How to detect it
Search application and system logs for segmentation faults or abnormal exits immediately after ZIP archive processing; correlate with 64-bit process crashes on systems using libarchive.
What your security team should do
- Prioritize upgrade of libarchive across all distributions and containers
- Add version checks for libarchive to build and deployment pipelines
- Monitor application logs for unexpected crashes during ZIP operations
- Replace any remaining 3.1.2 or earlier packages identified in inventories
The record
Integer signedness error in the archive_write_zip_data function in archive_write_set_format_zip.c in libarchive 3.1.2 and earlier, when running on 64-bit machines, allows context-dependent attackers to cause a denial of service (crash) via unspecified vectors, which triggers an improper conversion between unsigned and signed types, leading to a buffer overflow.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libarchive | 0 | 3.0.4-3 |
| Debian:12 | libarchive | 0 | 3.0.4-3 |
| Debian:13 | libarchive | 0 | 3.0.4-3 |
| SUSE:Linux Enterprise Desktop 12 | libarchive | 0 | 3.1.2-9.1 |
| SUSE:Linux Enterprise Server 12 | libarchive | 0 | 3.1.2-9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | libarchive | 0 | 3.1.2-9.1 |
| SUSE:Linux Enterprise Software Development Kit 12 | libarchive | 0 | 3.1.2-9.1 |
| Ubuntu:14.04:LTS | libarchive | 0 | 3.1.2-7ubuntu2 |
| Ubuntu:14.04:LTS | libarchive | 0 | 3.1.2-7ubuntu2.1 |
| openSUSE:Tumbleweed | bsdtar | 0 | 3.2.2-2.1 |
Related vulnerabilities
- JLSEC-2025-250 libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in… Also affects libarchive
- CVE-2024-57970 libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in… Also affects libarchive
- CVE-2024-20696 Windows Libarchive Remote Code Execution Vulnerability Also affects libarchive
- CVE-2017-14502 read_header in archive_read_support_format_rar.c in libarchive 3.3.2 suffers from an… Also affects libarchive
- CVE-2016-10209 The archive_wstring_append_from_mbs function in archive_string.c in libarchive 3.2.2… Also affects libarchive
- CVE-2016-5418 The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries… Also affects libarchive
- CVE-2015-8921 The ae_strtofflags function in archive_entry.c in libarchive before 3.2.0 allows remote… Also affects libarchive
- CVE-2015-8916 bsdtar in libarchive before 3.2.0 returns a success code without filling the entry when… Also affects libarchive