CVE-2016-1541

Source
https://nvd.nist.gov/vuln/detail/CVE-2016-1541
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-1541.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-1541
Downstream
Related
Published
2016-05-07T10:59:04Z
Modified
2025-10-15T08:01:49.977993Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/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 zipreadmacmetadata function in archivereadsupportformat_zip.c in libarchive before 3.2.0 allows remote attackers to execute arbitrary code via crafted entry-size values in a ZIP archive.

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

Database specific

vanir_signatures

[
    {
        "signature_type": "Line",
        "id": "CVE-2016-1541-7e332515",
        "source": "https://github.com/libarchive/libarchive/commit/d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7",
        "signature_version": "v1",
        "target": {
            "file": "libarchive/archive_read_support_format_zip.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "48426896534176377726048874745336262249",
                "198984821660040891711746734698485588705",
                "158675158510671668598239649588821067954",
                "249672597877898025562469458628542068828",
                "222471757330240980523396797786448906687",
                "29955010350394671833858047012515946165",
                "303420656995630671493261446931615457184",
                "297704672076321289725493881899609829055",
                "104521517704438845559865922156800522217",
                "264493677763335951630672024077811115529",
                "101830527991593088610028410301859719665",
                "190139030830714709428610916411975030267"
            ]
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2016-1541-e47b4f05",
        "source": "https://github.com/libarchive/libarchive/commit/d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7",
        "signature_version": "v1",
        "target": {
            "function": "zip_read_mac_metadata",
            "file": "libarchive/archive_read_support_format_zip.c"
        },
        "digest": {
            "function_hash": "24300103487728401637695827036703653251",
            "length": 3008.0
        },
        "deprecated": false
    }
]