CVE-2016-4302

Source
https://cve.org/CVERecord?id=CVE-2016-4302
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-4302.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-4302
Downstream
Related
Published
2016-09-21T14:25:04.517Z
Modified
2026-02-01T21:32:39.754181Z
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.

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
Fixed

Affected versions

v2.*
v2.6.0
v2.6.1
v2.6.2
v2.7.0
v2.7.1
v2.8.0
v2.8.1
v2.8.2
v2.8.3
v2.8.4
v2.8.5
v3.*
v3.0.0a
v3.0.1b
v3.0.2
v3.0.3
v3.0.4
v3.1.0
v3.1.1
v3.1.2
v3.1.900a
v3.1.901a
v3.2.0

Database specific

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