CVE-2017-14502: Buffer Overflow

Published Sep 17, 2017
·
Updated

libarchive is vulnerable to a buffer overflow, caused by improper bounds checking by the readheader function in archivereadsupportformatrar.c. By persuading a victim to open a specially-crafted RAR file, a remote attacker could overflow a buffer and execute arbitrary code on the system.

Other sources

readheader in archivereadsupportformatrar.c in libarchive 3.3.2 suffers from an off-by-one error for UTF-16 names in RAR archives, leading to an out-of-bounds read in archivereadformatrarreadheader.

— Ubuntu

Affected Software

6 affected componentsFixes available
IBM Cloud Pak for Security (CP4S)<=1.7.2.0
IBM Cloud Pak for Security (CP4S)<=1.7.1.0
IBM Cloud Pak for Security (CP4S)<=1.7.0.0
Libarchive libarchive=3.3.2
redhat/libarchive<3.3.3
3.3.3
debian/libarchive
3.1.2-11+deb8u43.2.2-2+deb9u13.2.2-4.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.1.2-11+deb8u4Fixed in 3.2.2-2+deb9u1Fixed in 3.2.2-4.1

Event History

Sep 17, 2017
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
via OSV·06:29 PM
DescriptionSeverity
Sep 22, 2017
Data Sourced
via Red Hat·10:10 AM
DescriptionSeverityAffected Software
Oct 3, 2019
Data Sourced
12:03 AM
Weakness
Data Sourced
via NVD·12:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·12:03 AM
Affected Software
Oct 19, 2021
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Apr 20, 2025
Updated
via NVD·01:37 AM
Affected Software
Aug 25, 2025
Updated
via Ubuntu·12:00 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2017-14502?

CVE-2017-14502 is a vulnerability in libarchive 3.3.2 that allows a remote attacker to execute arbitrary code on the system by exploiting a buffer overflow in the read_header function in archive_read_support_format_rar.c.

2

How does CVE-2017-14502 impact libarchive?

CVE-2017-14502 can lead to a buffer overflow in libarchive, potentially allowing an attacker to execute arbitrary code on the system.

3

Which versions of libarchive are affected by CVE-2017-14502?

CVE-2017-14502 affects libarchive version 3.3.2.

4

What is the severity of CVE-2017-14502?

CVE-2017-14502 has a severity rating of 7.8 (High).

5

How can I fix CVE-2017-14502 in libarchive?

To fix CVE-2017-14502 in libarchive, it is recommended to update to a version that includes the fix, such as version 3.3.3 or later.

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