CWE
119 189
Advisory Published
CVE Published
Updated

CVE-2013-0211: Buffer Overflow

First published: Tue Jan 22 2013(Updated: )

Fabian Yamaguchi reported a read buffer overflow flaw in libarchive on 64-bit systems where sizeof(size_t) is equal to 8. In the archive_write_zip_data() function in libarchive/archive_write_set_format_zip.c, the "s" parameter is of type size_t (64 bit, unsigned) and is cast to a 64 bit signed integer. If "s" is larger than MAX_INT, it will not be set to "zip->remaining_data_bytes" even though it is larger than "zip->remaining_data_bytes", 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/libarchive<3.2.0
3.2.0
libarchive<=3.1.2
Ubuntu Linux=12.04
Ubuntu Linux=14.04
Ubuntu Linux=14.10
openSUSE=13.1
openSUSE=13.2
Fedoraproject Fedora=17
Fedoraproject Fedora=18
FreeBSD FreeBSD=9.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • How do I fix CVE-2013-0211?

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

  • What systems are affected by CVE-2013-0211?

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

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203