CVE-2021-29338 json
Integer Overflow in OpenJPEG v2.4.0 allows remote attackers to crash the application, causing a Denial of Service (DoS).
published 2021-04-14 5 y ago modified 2026-07-18 3 mo ago also EUVD-2021-15974 , JLSEC-2026-545
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
Integer Overflow in OpenJPEG v2.4.0 allows remote attackers to crash the application, causing a Denial of Service (DoS). This occurs when the attacker uses the command line option "-ImgDir" on a directory that contains 1048576 files.
Patch / fix
- julia OpenJpeg_jll 2.5.0+0
- openjpeg2 Debian 14, Debian 13, Debian 12 2.4.0-4
debian advisories DEBIAN-CVE-2021-29338
- openjpeg2 Ubuntu 20.04 LTS 2.3.1-1ubuntu4.20.04.3
- openjpeg2 Ubuntu 22.04 LTS 2.4.0-6ubuntu0.2
- openjpeg2 Ubuntu Pro 16.04 LTS 2.1.2-1.1+deb9u6ubuntu0.1~esm6
- openjpeg2 Ubuntu Pro 18.04 LTS 2.3.0-2+deb10u2ubuntu0.1~esm3
ubuntu advisories UBUNTU-CVE-2021-29338
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- openjpeg2 RHEL 8 2.4.0-4.el8
- openjpeg2-tools RHEL 8 2.4.0-4.el8
red hat advisories RHSA-2021:4251
- openjpeg SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +19 more 1.5.2-150000.4.5.1
- openjpeg2 SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +20 more 2.3.0-150000.3.5.1
- openjpeg2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +10 more 2.1.0-4.15.1
suse advisories SUSE-SU-2022:1296-1SUSE-SU-2022:1252-1SUSE-SU-2022:1129-1
- openjpeg2 AlmaLinux 8 2.4.0-4.el8
- openjpeg2-tools AlmaLinux 8 2.4.0-4.el8
almalinux advisories ALSA-2021:4251
- openjpeg2 Rocky Linux 8 2.4.0-4.el8
rocky linux advisories RLSA-2021:4251
- openjpeg Alpine 3.24, Alpine 3.23, Alpine 3.22 +12 more 2.4.0-r1
alpine advisories ALPINE-CVE-2021-29338
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- openjpeg2 Arch Linux 2.5.0-1
arch linux advisories AVG-1390
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-29338 updated cvss 6.2
openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c
-
Red Hat Enterprise Linux 6 openjpeg, openjpeg-libs Red Hat Enterprise Linux 7 openjpeg, openjpeg2, openjpeg-libs, openjpeg2-toolsaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 openjpeg2, openjpeg2-toolsaffected: no fix available “Fix deferred”
-
Red Hat CodeReady Linux Builder (v. 8) openjpeg2-tools 2.4.0-4.el8 Red Hat Enterprise Linux AppStream (v. 8) openjpeg2 2.4.0-4.el8, openjpeg2-tools 2.4.0-4.el8fixed: vendor fix RHSA-2021:4251
-
Red Hat Enterprise Linux 9 openjpeg2, openjpeg2-toolsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.56% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/uclouvain/openjpeg/issues/1338 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | OpenJpeg_jll | >=2.4.0+0, <2.5.0+0 |
2.5.0+0 |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/uclouvain/openjpeg/issues/1338
exploit, issue-tracking, patch, third-party-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EZ54FGM2IGAP4AWSJ22JKHOPHCR3FGYU/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/QB6AI7CWXWMEDZIQY4LQ6DMIEXMDOHUP/
vendor-advisory, web
-
security.gentoo.org
/glsa/202209-04
vendor-advisory, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2022/04/msg00006.html
mailing-list, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2025/04/msg00002.html
web
Sources
- CVE List CVE-2021-29338
- NVD CVE-2021-29338
- OSV JLSEC-2026-545
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.