CVE-2021-3520: lz4_project lz4 Integer Overflow or Wraparound
Vulnerability summary
CVE-2021-3520 is a critical (CVSS 9.8) Integer Overflow or Wraparound vulnerability in lz4_project lz4. EPSS estimates a 3.40% chance of exploitation in the next 30 days, higher than 88.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 02-06-2021PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
3.40%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
+0.21 pp
From 3.19% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Suse16 products
- lz4&distro=SUSE Enterprise Storage 6< 1.8.0-3.8.1
- lz4&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 1.8.0-3.8.1
- lz4&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 1.8.0-3.8.1
- lz4&distro=SUSE Linux Enterprise High Performance Computing 15-ESPOS< 1.8.0-3.8.1
- lz4&distro=SUSE Linux Enterprise High Performance Computing 15-LTSS< 1.8.0-3.8.1
Redhat6 products
- lz4< 0:1.8.3-3.el8_4
- lz4-debuginfo< 0:1.8.3-3.el8_4
- lz4-debugsource< 0:1.8.3-3.el8_4
- lz4-devel< 0:1.8.3-3.el8_4
- lz4-libs< 0:1.8.3-3.el8_4
Opensuse4 products
- lz4-test&distro=openSUSE Leap 15.2< 1.8.0-lp152.5.3.1
- lz4&distro=openSUSE Leap 15.2< 1.8.0-lp152.5.3.1
- lz4&distro=openSUSE Leap 15.3< 1.9.2-3.3.1
- lz4&distro=openSUSE Tumbleweed< 1.9.3-2.1
Netapp3 products
Mageia2 products
- lz4< 1.9.2-1.1.mga7
- lz4< 1.9.3-1.1.mga8
Oracle2 products
Alpine1 product
- lz4≥ 1.8.3, < 1.9.2-r1 | ≥ 1.8.3, < 1.9.3-r1
Debian1 product
- lz4< 1.8.3-1+deb10u1 | < 0.0~r131-2+deb9u1 | < 1.9.3-2
Lz4_project1 product
- lz4≥ 1.8.3, < 1.9.4
Splunk1 product
- universal_forwarder≥ 8.2.0, < 8.2.12 | ≥ 9.0.0, < 9.0.6 | 9.1.0
Ubuntu1 product
- lz4< 0.0~r131-2ubuntu3.1 | < 1.9.2-2ubuntu0.20.04.1 | < 0.0~r114-2ubuntu1+esm2 | < 0.0~r131-2ubuntu2+esm1
11 vendors · 38 products
References
27 links- bugzilla.redhat.com/show_bug.cgi?id=1954559X Refsource MISCREPORTIssue TrackingPatchThird Party Advisory
Show all 27 references
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory