openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c
Published Jun 26, 2019
8.8
HIGHCVSS 3.1
EPSS 2.17%
Description
An improper computation of p_tx0, p_tx1, p_ty0 and p_ty1 in the function opj_get_encoding_parameters in openjp2/pi.c in OpenJPEG through 2.3.0 can lead to an integer overflow.
Affected products
No data.
Configuration 2
- 8.0
No data.
Red Hat Enterprise Linux 8
openjpeg2-0:2.4.0-4.el8
Fixed · RHSA-2021:4251
Red Hat Enterprise Linux 6
openjpeg
Out of support scope
Red Hat Enterprise Linux 7
openjpeg
Not affected
Red Hat Enterprise Linux 7
openjpeg2
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | openjpeg2-0:2.4.0-4.el8 | Fixed | RHSA-2021:4251 |
| Red Hat Enterprise Linux 6 | openjpeg | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | openjpeg | Not affected | n/a |
| Red Hat Enterprise Linux 7 | openjpeg2 | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of openjpeg as shipped with Red Hat Enterprise Linux 7 as they did not include the vulnerable code, due to an older version of the tool being shipped. This issue did not affect the versions of openjpeg2 as shipped with Red Hat Enterprise Linux 7 as they already contain the patched code.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.17% (0.02174) | 81.65th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.19% (0.02192) | 80.04th | v5 (v2026.06.15) |
| Nov 21, 2025 | 0.74% (0.00738) | 72.08th | v4 (v2025.03.14) |
| Nov 18, 2025 | 2.65% (0.02647) | 84.42th | v4 (v2025.03.14) |
| Jul 20, 2024 | 1.70% (0.01697) | 87.91th | v3 (v2023.03.01) |
| Jun 19, 2024 | 1.70% (0.01697) | 87.82th | v3 (v2023.03.01) |
| Sep 3, 2023 | 1.73% (0.01729) | 86.32th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.32% (0.01320) | 83.86th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.25% (0.01247) | 30.57th | v5 (v2026.06.15) |
| Apr 14, 2021 | 1.25% (0.01247) | 0.00th | v1 |
References (9)
- http://www.securityfocus.com/bid/108921 vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-20847 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1728509 Issue Tracking
- https://github.com/uclouvain/openjpeg/commit/5d00b719f4b93b1445e6fb4c766b9a9883c57949 x_refsource_MISCPatch
- https://github.com/uclouvain/openjpeg/issues/431 x_refsource_MISCIssue TrackingPatchThird Party Advisory
- https://github.com/uclouvain/openjpeg/pull/1168/commits/c58df149900df862806d0e892859b41115875845 x_refsource_MISCPatch
- https://lists.debian.org/debian-lts-announce/2019/07/msg00010.html mailing-listx_refsource_MLISTIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-20847
- https://www.cve.org/CVERecord?id=CVE-2018-20847
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/108921 | vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2018-20847 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1728509 | Issue Tracking | |
| https://github.com/uclouvain/openjpeg/commit/5d00b719f4b93b1445e6fb4c766b9a9883c57949 | x_refsource_MISCPatch | |
| https://github.com/uclouvain/openjpeg/issues/431 | x_refsource_MISCIssue TrackingPatchThird Party Advisory | |
| https://github.com/uclouvain/openjpeg/pull/1168/commits/c58df149900df862806d0e892859b41115875845 | x_refsource_MISCPatch | |
| https://lists.debian.org/debian-lts-announce/2019/07/msg00010.html | mailing-listx_refsource_MLISTIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-20847 | ||
| https://www.cve.org/CVERecord?id=CVE-2018-20847 |
Change history (0)
No recorded changes yet.