Skip to content
Heist/ feed
Back to feed
CriticalFix available

lz4 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-3520

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.

Products
lz4
Affected versions
Not specified
Fixed versions
1.9.3-2
CVEs
CVE-2021-3520
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 16:55 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-3520

core-osv · Original source

Published 2 Jun 2021, 13:15 UTC

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.

osv:DEBIAN-CVE-2021-3520

lz4

Fixed versions: 1.9.3-2

lz4

Fixed versions: 1.9.3-2

lz4

Fixed versions: 1.9.3-2

Complete source record
{
  "id": "15d93612d740ea38f2457b665e047f34573cf76f9ad86034635d41030f427fd2",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3520",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-3520",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-3520",
    "products": [
      {
        "name": {
          "value": "lz4",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.9.3-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lz4",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.9.3-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "lz4",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.9.3-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2021-3520",
      "aliases": [
        "DEBIAN-CVE-2021-3520"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.9.3-2"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4",
            "purl": "pkg:deb/debian/lz4?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3520.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.9.3-2"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4",
            "purl": "pkg:deb/debian/lz4?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3520.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.9.3-2"
                }
              ]
            }
          ],
          "package": {
            "name": "lz4",
            "purl": "pkg:deb/debian/lz4?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3520.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T09:47:44.670699145Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-3520"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-3520"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-3520",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 328595,
  "published_at": "2021-06-02T13:15:13.17+00:00"
}