CVE-2021-3520

Source
https://cve.org/CVERecord?id=CVE-2021-3520
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3520.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-3520
Downstream
Related
Published
2021-06-02T13:15:13.170Z
Modified
2026-03-15T22:41:00.891851Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow, leading to calling of memmove() on a negative size argument, causing an out-of-bounds write and/or a crash. The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.

References

Affected packages

Git / github.com/lz4/lz4

Affected ranges

Type
GIT
Repo
https://github.com/lz4/lz4
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.8.3"
        },
        {
            "fixed": "1.9.4"
        }
    ]
}

Affected versions

v1.*
v1.8.3
v1.9.0
v1.9.1
v1.9.2
v1.9.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3520.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "1.14.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "8.8"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "8.2.0"
            },
            {
                "fixed": "8.2.12"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "9.0.0"
            },
            {
                "fixed": "9.0.6"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.1.0"
            }
        ]
    }
]