CVE-2017-14166: Medium severity Libarchive libarchive vulnerability

Published Sep 6, 2017
·
Updated

Last updated 25 August 2025

Other sources

libarchive 3.3.2 allows attackers to cause a denial of service (xmldata heap-based buffer over-read and application crash) via a crafted xar archive, related to the mishandling of empty strings in the atol8 function in archivereadsupportformatxar.c.

Upstream patch:

https://github.com/libarchive/libarchive/commit/fa7438a0ff4033e4741c807394a9af6207940d71

References:

https://blogs.gentoo.org/ago/2017/09/06/libarchive-heap-based-buffer-overflow-in-xmldata-archivereadsupportformatxar-c/

— Red Hat

libarchive 3.3.2 allows remote attackers to cause a denial of service (xmldata heap-based buffer over-read and application crash) via a crafted xar archive, related to the mishandling of empty strings in the atol8 function in archivereadsupportformatxar.c.

— MITRE

Affected Software

7 affected componentsFixes available
Libarchive libarchive=3.3.2
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
redhat/libarchive<3.3.3
3.3.3
debian/libarchive
3.0.4-3+wheezy6+deb7u13.1.2-11+deb8u43.2.2-2+deb9u13.2.2-3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/libarchive to a version that resolves this vulnerability.

    Fixed in 3.3.3
  2. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.0.4-3+wheezy6+deb7u1Fixed in 3.1.2-11+deb8u4Fixed in 3.2.2-2+deb9u1Fixed in 3.2.2-3.1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch fa7438a0ff4033e4741c807394a9af6207940d71

Event History

Sep 6, 2017
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Sep 8, 2017
Data Sourced
via Red Hat·01:27 PM
DescriptionSeverityAffected Software
Aug 15, 2019
Data Sourced
06:15 PM
Weakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·06:15 PM
Affected Software
Apr 20, 2025
Updated
via NVD·01:37 AM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2017-14166?

CVE-2017-14166 has a high severity due to its potential to cause denial of service by crashing the application.

2

What versions of libarchive are affected by CVE-2017-14166?

CVE-2017-14166 affects libarchive version 3.3.2 and prior versions that mishandle crafted xar archives.

3

How do I fix CVE-2017-14166?

To fix CVE-2017-14166, update libarchive to a version higher than 3.3.2, such as 3.4.3 or later.

4

What kind of attack does CVE-2017-14166 enable?

CVE-2017-14166 enables remote attackers to execute a denial of service attack through manipulated xar archives.

5

Is there a workaround for CVE-2017-14166?

There is no official workaround for CVE-2017-14166; updating to a patched version is the recommended solution.

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