CVE-2016-4302

Source
https://cve.org/CVERecord?id=CVE-2016-4302
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4302.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-4302
Downstream
Related
Published
2016-09-21T14:25:04.517Z
Modified
2026-07-08T12:41:28.371487Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Heap-based buffer overflow in the parsecodes function in archivereadsupportformat_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_desktop",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_hpc_node",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.2"
                },
                {
                    "last_affected": "7.2"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_hpc_node_eus",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_hpc_node_eus:7.2:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_server",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.2"
                },
                {
                    "last_affected": "7.2"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_server_aus:7.2:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.2"
                },
                {
                    "last_affected": "7.2"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_server_eus",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_server_eus:7.2:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "redhat:enterprise_linux_workstation",
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/libarchive/libarchive

Affected ranges

Type
GIT
Repo
https://github.com/libarchive/libarchive
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "3.2.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*"
}

Affected versions

v3.*
v3.0.0a
v3.0.1b
v3.1.900a
v3.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4302.json"
vanir_signatures_modified
"2026-07-08T12:41:28Z"
vanir_signatures
[
    {
        "digest": {
            "function_hash": "297510741690200676578543826215927548601",
            "length": 6430.0
        },
        "id": "CVE-2016-4302-3903f264",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700",
        "signature_type": "Function",
        "target": {
            "function": "parse_codes",
            "file": "libarchive/archive_read_support_format_rar.c"
        }
    },
    {
        "digest": {
            "line_hashes": [
                "246565802277398610842427763265886724405",
                "269429852712907734954635047388062957012",
                "192885178850317703560125968378055403273"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2016-4302-cd2b8b72",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700",
        "signature_type": "Line",
        "target": {
            "file": "libarchive/archive_read_support_format_rar.c"
        }
    }
]