CVE-2013-0211: Buffer Overflow

Published Jan 22, 2013
·
Updated

Fabian Yamaguchi reported a read buffer overflow flaw in libarchive on 64-bit systems where sizeof(sizet) is equal to 8. In the archivewritezipdata() function in libarchive/archivewritesetformatzip.c, the "s" parameter is of type sizet (64 bit, unsigned) and is cast to a 64 bit signed integer. If "s" is larger than MAXINT, it will not be set to "zip->remainingdatabytes" even though it is larger than "zip->remainingdatabytes", which leads to a buffer overflow when calling deflate().

This can lead to a segfault in an application that uses libarchive to create ZIP archives.

Other sources

Integer signedness error in the archivewritezipdata function in archivewritesetformatzip.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.

MITRE

Affected Software

10 affected componentsFixes available
redhat/libarchive<3.2.0
3.2.0
Libarchive Libarchive X64<=3.1.2
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
Fedoraproject Fedora=17
Fedoraproject Fedora=18
FreeBSD FreeBSD=9.3

Event History

Jan 22, 2013
Data Sourced
via Red Hat·10:03 PM
DescriptionSeverityAffected Software
Sep 30, 2013
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2013-0211?

CVE-2013-0211 has been classified as a high severity vulnerability due to its read buffer overflow flaw.

2

How do I fix CVE-2013-0211?

To fix CVE-2013-0211, update libarchive to version 3.2.0 or later.

3

What systems are affected by CVE-2013-0211?

CVE-2013-0211 affects 64-bit systems running vulnerable versions of libarchive.

4

What functions are involved in the CVE-2013-0211 vulnerability?

The vulnerability is related to the archive_write_zip_data() function in the libarchive library.

5

Has CVE-2013-0211 been patched in Linux distributions?

Yes, various Linux distributions have included patches for CVE-2013-0211 in their updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203