CVE-2021-3575: Buffer Overflow

Published May 6, 2021
·
Updated

A heap-based buffer overflow was found in openjpeg in color.c:379:42 in sycc420torgb when decompressing a crafted .j2k file. An attacker could use this to execute arbitrary code with the permissions of the application compiled against openjpeg.

Other sources

Decompressing a crafted .j2k file may lead to heap-buffer-overflow in color.c:379:42 in sycc420torgb.

Reference:

https://github.com/uclouvain/openjpeg/issues/1347

— Red Hat

Affected Software

7 affected componentsFixes available
uclouvain openjpeg<=2.4.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
Fedoraproject Fedora=33
Fedoraproject Fedora=34
debian/openjpeg2
2.5.3-1~exp12.4.0-3+deb11u12.5.0-2+deb12u12.5.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openjpeg2 to a version that resolves this vulnerability.

    Fixed in 2.5.3-1~exp1Fixed in 2.4.0-3+deb11u1Fixed in 2.5.0-2+deb12u1Fixed in 2.5.3-1

Event History

May 6, 2021
Data Sourced
07:30 AM
DescriptionSeverityAffected Software
Mar 4, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Remedy
Updated
via Ubuntu·12:00 AM
RemedyDescription
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·05:20 PM
Data Sourced
via MITRE·05:20 PM
DescriptionWeakness
May 23, 2022
Data Sourced
via Red Hat·03:35 PM
DescriptionSeverityAffected Software
Feb 12, 2023
Data Sourced
11:41 PM
Weakness
Data Sourced
via NVD·11:41 PM
DescriptionSeverityWeaknessAffected Software
Updated
11:41 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:21 AM
Affected Software
Jul 11, 2025
Updated
via Ubuntu·12:00 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2021-3575?

CVE-2021-3575 is a heap-based buffer overflow vulnerability found in openjpeg.

2

How does CVE-2021-3575 allow an attacker to execute arbitrary code?

An attacker can exploit CVE-2021-3575 by using a crafted .j2k file to trigger the buffer overflow and execute arbitrary code.

3

Which software versions are affected by CVE-2021-3575?

Uclouvain Openjpeg 2.4.0, Redhat Enterprise Linux 6.0, Redhat Enterprise Linux 7.0, Redhat Enterprise Linux 8.0, Fedoraproject Fedora 33, and Fedoraproject Fedora 34 are affected by CVE-2021-3575.

4

What is the severity of CVE-2021-3575?

The severity of CVE-2021-3575 is high, with a CVSS score of 7.8.

5

How can I mitigate CVE-2021-3575?

To mitigate CVE-2021-3575, it is recommended to update to the latest version of the affected software or apply any patches or fixes provided by the vendor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203