CVE-2021-3520

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-3520
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-3520.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-3520
Related
Published
2021-06-02T13:15:13Z
Modified
2024-12-05T15:30:00.144122Z
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

Alpine:v3.12 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.2-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0

Alpine:v3.13 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.2-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0

Alpine:v3.14 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.15 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.16 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.17 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.18 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.19 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.20 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Alpine:v3.21 / lz4

Package

Name
lz4
Purl
pkg:apk/alpine/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-r1

Affected versions

1.*

1.7.5-r0
1.8.0-r0
1.8.0-r1
1.8.1-r0
1.8.1.2-r0
1.8.2-r0
1.8.3-r0
1.8.3-r1
1.8.3-r2
1.9.1-r0
1.9.2-r0
1.9.3-r0

Debian:11 / lz4

Package

Name
lz4
Purl
pkg:deb/debian/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / lz4

Package

Name
lz4
Purl
pkg:deb/debian/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / lz4

Package

Name
lz4
Purl
pkg:deb/debian/lz4?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.9.3-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/lz4/lz4

Affected ranges

Type
GIT
Repo
https://github.com/lz4/lz4
Events

Affected versions

v1.*

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