CVE-2021-3520CWE-190CWE-787

CVE-2021-3520

Critical · published June 2, 2021

CVSS v3.1
9.8
EPSS
3%
Percentile
88.8
In the wild
Unconfirmed
What it is

⚠️ An ill-crafted file could lead to chaos! Submitting a specially tailored file to an app using lz4 can cause an integer overflow, leading to out-of-bounds writes and potential crashes. 🔥 Think of this vulnerability as a restaurant where a chef miscalculates the amount of ingredients needed, causing an overflow in the pot — too much leads to an unmanageable mess spilling over the edges! An attacker could exploit this to crash the application, disrupting service availability. While the primary danger is availability, there’s also a potential risk of exposing sensitive data or altering it unexpectedly — a recipe for disaster!

Put simply

Think of this vulnerability as a restaurant where a chef miscalculates the amount of ingredients needed, causing an overflow in the pot — too much leads to an unmanageable mess spilling over the edges! This flaw in lz4 occurs due to an integer overflow when processing crafted files, allowing the memmove() function to act on a negatively sized argument, potentially leading to memory corruption.

What to do

An attacker could exploit this to crash the application, disrupting service availability. While the primary danger is availability, there’s also a potential risk of exposing sensitive data or altering it unexpectedly — a recipe for disaster! To mitigate this issue, ensure you're using the latest version of lz4 where this vulnerability is patched. Review your file handling processes to validate input thoroughly and consider implementing additional memory safety checks to minimize risks. You’ve got the power to tackle this! Follow these steps, and you’ll keep your application safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03401 · 88.8th percentile
Weaknesses
CWE-190 · Integer Overflow or Wraparound; CWE-787 · Out-of-bounds Write
Published
2021-06-02T17:15Z
Affected products (9)
ProductVersionsFixed in
lz4_project/lz4≥ 1.8.3, < 1.9.41.9.4
netapp/active_iq_unified_managerall versions—
netapp/cloud_backupall versions—
netapp/ontap_select_deploy_administration_utilityall versions—
oracle/communications_cloud_native_core_policyall versions—
oracle/zfs_storage_appliance_kitall versions—
splunk/universal_forwarder≥ 8.2.0, < 8.2.128.2.12
splunk/universal_forwarder≥ 9.0.0, < 9.0.69.0.6
splunk/universal_forwarderall versions—
References (11)
EPSS history
Timeline
  • 02 JUN 12:32Z
    There's a flaw in lz4
    cvelistv5