MGASA-2021-0216

Source
https://advisories.mageia.org/MGASA-2021-0216.html
Import Source
https://advisories.mageia.org/MGASA-2021-0216.json
JSON Data
https://api.osv.dev/v1/vulns/MGASA-2021-0216
Upstream
Published
2021-05-21T22:47:24Z
Modified
2026-04-16T04:42:15Z
Summary
Updated openjpeg2 packages fix a security vulnerability
Details

There is a flaw in the opj2_compress program in openjpeg2. An attacker who is able to submit a large number of image files to be processed in a directory by opj2_compress, could trigger a heap out-of-bounds write due to an integer overflow, which is caused by the large number of image files. The greatest threat posed by this flaw is to confidentiality, integrity, and availability.

This flaw affects the opj2_compress utility but is not in the openjpeg2 library. Therefore, the attack vector is local to the opj2_compress utility and would require an attacker to convince a user to open a directory with an extremely large number of files using opj2_compress, or a script to be feeding such arbitrary, untrusted files to opj2_compress (CVE-2021-29338).

References
Credits

Affected packages

Mageia:7 / openjpeg2

Package

Name
openjpeg2
Purl
pkg:rpm/mageia/openjpeg2?arch=source&distro=mageia-7

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.0-1.1.mga7

Ecosystem specific

{
    "section": "core"
}

Database specific

source
"https://advisories.mageia.org/MGASA-2021-0216.json"

Mageia:7 / mingw-openjpeg2

Package

Name
mingw-openjpeg2
Purl
pkg:rpm/mageia/mingw-openjpeg2?arch=source&distro=mageia-7

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.0-1.mga7

Ecosystem specific

{
    "section": "core"
}

Database specific

source
"https://advisories.mageia.org/MGASA-2021-0216.json"

Mageia:8 / openjpeg2

Package

Name
openjpeg2
Purl
pkg:rpm/mageia/openjpeg2?arch=source&distro=mageia-8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.0-1.1.mga8

Ecosystem specific

{
    "section": "core"
}

Database specific

source
"https://advisories.mageia.org/MGASA-2021-0216.json"

Mageia:8 / mingw-openjpeg2

Package

Name
mingw-openjpeg2
Purl
pkg:rpm/mageia/mingw-openjpeg2?arch=source&distro=mageia-8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.4.0-1.1.mga8

Ecosystem specific

{
    "section": "core"
}

Database specific

source
"https://advisories.mageia.org/MGASA-2021-0216.json"