Every CVE Search/ Get API key

CVE-2021-3520

There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4...

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

3.40%Up 3.0 points since Jun 3, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2021-3520
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-190, CWE-787
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-3520
Weakness
CWE-190
Updated
2026-11-02
EUVDEUVD-2021-26836 No score

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.

Record
EUVD-2021-26836
Updated
2026-11-02
GitHub AdvisoriesGHSA-gmc7-pqv9-966m 9.8

There's a flaw in lz4. An attacker who submits a crafted file to an application linked with lz4...

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.

Record
GHSA-gmc7-pqv9-966m
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-190, CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2021-3520 9.8

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.

Record
ALPINE-CVE-2021-3520
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVAZL-74241 9.8

CVE-2021-3520 affecting package suitesparse 7.11.0-1

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.

Record
AZL-74241
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-05
Show 22 moreShow less
OSVBELL-CVE-2021-3520 9.8

CVE-2021-3520 does not affect BellSoft software

Record
BELL-CVE-2021-3520
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2021-3520
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-3520 9.8

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.

Record
DEBIAN-CVE-2021-3520
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVJLSEC-2026-532 9.8

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.

Record
JLSEC-2026-532
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Updated
2026-11-02
OSVOESA-2021-1245 9.8

lz4 security update

LZ4 is lossless compression algorithm, providing compression speed > 500 MB/s per core (>0.15 Bytes/cycle). It features an extremely fast decoder, with speed in multiple GB/s per core (~1 Byte/cycle). A high compression derivative, called LZ4_HC, is available, trading customizable CPU time for compression ratio.

Security Fix(es):

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.(CVE-2021-3520)

Record
OESA-2021-1245
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2021:2575 8.6

Red Hat Security Advisory: lz4 security update

Record
RHSA-2021:2575
CVSS 3.1
8.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVRLSA-2021:2575 8.6

Moderate: lz4 security update

The lz4 packages provide support for LZ4, a very fast, lossless compression algorithm that provides compression speeds of 400 MB/s per core and scales with multicore CPUs. It also features an extremely fast decoder that reaches speeds of multiple GB/s per core and typically reaches RAM speed limits on multicore systems.

Security Fix(es):

  • lz4: memory corruption due to an integer overflow bug caused by memmove argument (CVE-2021-3520)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2021:2575
CVSS 3.1
8.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-3520 9.8

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.

Record
UBUNTU-CVE-2021-3520
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVALSA-2021:2575 No score

Moderate: lz4 security update

The lz4 packages provide support for LZ4, a very fast, lossless compression algorithm that provides compression speeds of 400 MB/s per core and scales with multicore CPUs. It also features an extremely fast decoder that reaches speeds of multiple GB/s per core and typically reaches RAM speed limits on multicore systems.

Security Fix(es):

  • lz4: memory corruption due to an integer overflow bug caused by memmove argument (CVE-2021-3520)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2021:2575
Updated
2026-11-02
OSVCLSA-2023-1695326199 No score

lz4: Fix of CVE-2021-3520

  • CVE-2021-3520: Fix potential memory corruption with negative memmove() size
Record
CLSA-2023-1695326199
Updated
2026-11-02
OSVCLSA-2026-1777307383 No score

lz4: Fix of CVE-2021-3520

  • CVE-2021-3520: Fix potential memory corruption with negative memmove() size
Record
CLSA-2026-1777307383
Updated
2026-11-02
OSVCLSA-2026-1792171196 No score

lz4: Fix of CVE-2021-3520

  • CVE-2021-3520: Fix potential memory corruption with negative memmove() size
Record
CLSA-2026-1792171196
Updated
2026-11-02
OSVMGASA-2021-0229 No score

Updated lz4 packages fix a security vulnerability

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 (CVE-2021-3520).

Record
MGASA-2021-0229
Updated
2026-11-02
OSVopenSUSE-SU-2021:0760-1 No score

Security update for lz4

This update for lz4 fixes the following issues:

  • CVE-2021-3520: Fixed memory corruption due to an integer overflow bug caused by memmove argument (bsc#1185438).

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2021:0760-1
Updated
2026-11-02
OSVopenSUSE-SU-2021:1825-1 No score

Security update for lz4

This update for lz4 fixes the following issues:

  • CVE-2021-3520: Fixed memory corruption due to an integer overflow bug caused by memmove argument (bsc#1185438).
Record
openSUSE-SU-2021:1825-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11562-1 No score

liblz4-1-1.9.3-2.1 on GA media

These are all security issues fixed in the liblz4-1-1.9.3-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11562-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:12902-1 No score

librdkafka-devel-2.1.0-1.1 on GA media

These are all security issues fixed in the librdkafka-devel-2.1.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12902-1
Updated
2026-11-02
OSVSUSE-SU-2021:1613-1 No score

Security update for lz4

This update for lz4 fixes the following issues:

  • CVE-2021-3520: Fixed memory corruption due to an integer overflow bug caused by memmove argument (bsc#1185438).
  • CVE-2019-17543: Fixed heap-based buffer overflow in LZ4_write32 (bsc#1153936).
Record
SUSE-SU-2021:1613-1
Updated
2026-11-02
OSVSUSE-SU-2021:1647-1 No score

Security update for lz4

This update for lz4 fixes the following issues:

  • CVE-2021-3520: Fixed memory corruption due to an integer overflow bug caused by memmove argument (bsc#1185438).
Record
SUSE-SU-2021:1647-1
Updated
2026-11-02
OSVSUSE-SU-2021:1825-1 No score

Security update for lz4

This update for lz4 fixes the following issues:

  • CVE-2021-3520: Fixed memory corruption due to an integer overflow bug caused by memmove argument (bsc#1185438).
Record
SUSE-SU-2021:1825-1
Updated
2026-11-02
OSVUSN-4968-1 No score

lz4 vulnerability

It was discovered that LZ4 incorrectly handled certain memory operations. If a user or automated system were tricked into uncompressing a specially- crafted LZ4 file, a remote attacker could use this issue to cause LZ4 to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-4968-1
Updated
2026-11-02
OSVUSN-4968-2 No score

lz4 vulnerability

USN-4968-1 fixed a vulnerability in LZ4. This update provides the corresponding update for Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.

Original advisory details:

It was discovered that LZ4 incorrectly handled certain memory operations. If a user or automated system were tricked into uncompressing a specially- crafted LZ4 file, a remote attacker could use this issue to cause LZ4 to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-4968-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
lz4
Alpine:v3.12
1.8.3 up to 1.9.2-r1
1.9.2-r1
lz4
Alpine:v3.13
1.8.3 up to 1.9.2-r1
1.9.2-r1
lz4
Alpine:v3.14
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.15
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.16
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.17
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.18
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.19
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.20
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.21
1.8.3 up to 1.9.3-r1
1.9.3-r1
Show 57 moreShow less
Affected packages
PackageAffectedFixed
lz4
Alpine:v3.22
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.23
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
Alpine:v3.24
1.8.3 up to 1.9.3-r1
1.9.3-r1
lz4
AlmaLinux:8
before 1.8.3-3.el8_4
1.8.3-3.el8_4
lz4-devel
AlmaLinux:8
before 1.8.3-3.el8_4
1.8.3-3.el8_4
lz4-libs
AlmaLinux:8
before 1.8.3-3.el8_4
1.8.3-3.el8_4
suitesparse
Azure Linux:3
through 7.11.0-1 None known
lz4
TuxCare:CentOS:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4-devel
TuxCare:CentOS:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4-static
TuxCare:CentOS:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4
TuxCare:OracleLinux:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4-devel
TuxCare:OracleLinux:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4-static
TuxCare:OracleLinux:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4
TuxCare:RHEL:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4-devel
TuxCare:RHEL:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4-static
TuxCare:RHEL:7
before 1.8.3-1.el7.tuxcare.els1
1.8.3-1.el7.tuxcare.els1
lz4
Debian:12
before 1.9.3-2
1.9.3-2
lz4
Debian:13
before 1.9.3-2
1.9.3-2
lz4
Debian:14
before 1.9.3-2
1.9.3-2
lz4
Debian:9
before 0.0~r131-2+deb9u1, plus listed versions
0.0~r131-2
0.0~r131-2+deb9u1
lz4
Debian:10
before 1.8.3-1+deb10u1, plus listed versions
1.8.3-1
1.8.3-1+deb10u1
Lz4_jll
Julia
before 1.9.4+0
1.9.4+0
lz4
Mageia:7
before 1.9.2-1.1.mga7
1.9.2-1.1.mga7
lz4
Mageia:8
before 1.9.3-1.1.mga8
1.9.3-1.1.mga8
lz4
openEuler:20.03-LTS-SP1
before 1.9.2-3.oe1
1.9.2-3.oe1
lz4
Red Hat:enterprise_linux:8::baseos
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4-devel
Red Hat:enterprise_linux:8::baseos
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4-libs
Red Hat:enterprise_linux:8::baseos
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4-libs-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4
Rocky Linux:8
before 0:1.8.3-3.el8_4
0:1.8.3-3.el8_4
lz4
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 2 CVEs
before 1.8.0-3.3.1
1.8.0-3.3.1
lz4
SUSE:Linux Enterprise Module for Basesystem 15 SP2
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise High Performance Computing 15-ESPOS
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise High Performance Computing 15-LTSS
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Server 15-LTSS
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Server 15 SP1-BCL
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Server for SAP Applications 15
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Manager Proxy 4.0
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Manager Retail Branch Server 4.0
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Manager Server 4.0
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Micro 5.0
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Enterprise Storage 6
before 1.8.0-3.8.1
1.8.0-3.8.1
lz4
SUSE:Linux Enterprise Module for Basesystem 15 SP3
before 1.9.2-3.3.1
1.9.2-3.3.1
lz4
Ubuntu:Pro:14.04:LTS
before 0.0~r114-2ubuntu1+esm2, plus listed versions
0.0~r94-20.0~r99-10.0~r107-10.0~r109-10.0~r114-2ubuntu10.0~r114-2ubuntu1+esm1
0.0~r114-2ubuntu1+esm2
lz4
Ubuntu:Pro:16.04:LTS
before 0.0~r131-2ubuntu2+esm1, plus listed versions
0.0~r131-10.0~r131-20.0~r131-2ubuntu2
0.0~r131-2ubuntu2+esm1
lz4
Ubuntu:18.04:LTS
before 0.0~r131-2ubuntu3.1, plus listed versions
0.0~r131-2ubuntu20.0~r131-2ubuntu3
0.0~r131-2ubuntu3.1
lz4
Ubuntu:20.04:LTS
before 1.9.2-2ubuntu0.20.04.1, plus listed versions
1.9.1-11.9.1-21.9.2-2
1.9.2-2ubuntu0.20.04.1
lz4
openSUSE:Leap 15.2
before 1.8.0-lp152.5.3.1
1.8.0-lp152.5.3.1
lz4-test
openSUSE:Leap 15.2
before 1.8.0-lp152.5.3.1
1.8.0-lp152.5.3.1
lz4
openSUSE:Leap 15.3
before 1.9.2-3.3.1
1.9.2-3.3.1
lz4
openSUSE:Tumbleweed
before 1.9.3-2.1
1.9.3-2.1

History

History
RecordedChangedSources
affected
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-3520 is a critical vulnerability (CVSS 9.8) in Lz4 Project Lz4, published April 30, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.40%, the 88th percentile. Fixed in lz4 1.9.2-r1.

References

Show 37 moreShow less
MoveEnter Open