openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c
Published Jan 19, 2018
6.5
MEDIUMCVSS 3.1
EPSS 2.33%
Description
In OpenJPEG 2.3.0, there is an integer overflow caused by an out-of-bounds left shift in the opj_j2k_setup_encoder function (openjp2/j2k.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.
Affected products
No data.
Configuration 2
- 9.0
Configuration 3
- 18.04
No data.
Red Hat Enterprise Linux 8
openjpeg2-0:2.4.0-4.el8
Fixed · RHSA-2021:4251
Red Hat Enterprise Linux 6
openjpeg
Not affected
Red Hat Enterprise Linux 7
openjpeg
Not affected
Red Hat Enterprise Linux 8
openjpeg
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 | Not affected | n/a |
| Red Hat Enterprise Linux 7 | openjpeg | Not affected | n/a |
| Red Hat Enterprise Linux 8 | openjpeg | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:M/Au:N/C:N/I:N/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 v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.33% (0.02331) | 82.93th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.36% (0.02356) | 81.47th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.22% (0.00218) | 42.39th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.41% (0.00414) | 74.25th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.41% (0.00414) | 73.33th | v3 (v2023.03.01) |
| Jun 12, 2023 | 0.41% (0.00414) | 70.35th | v3 (v2023.03.01) |
| May 8, 2023 | 0.58% (0.00582) | 74.88th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.47% (0.00475) | 71.92th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.14% (0.01136) | 59.45th | v2 (v2022.01.01) |
| Oct 18, 2022 | 1.14% (0.01136) | 58.28th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.14% (0.01136) | 56.27th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.14% (0.01136) | 34.23th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.30% (0.01300) | 31.12th | v1 |
| Jan 6, 2022 | 1.30% (0.01300) | 30.48th | v1 |
| Sep 1, 2021 | 1.30% (0.01300) | 69.44th | v1 |
| Apr 14, 2021 | 1.30% (0.01300) | 0.00th | v1 |
References (7)
- https://access.redhat.com/security/cve/CVE-2018-5785 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1537758 Issue Tracking
- https://github.com/uclouvain/openjpeg/issues/1057 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-5785
- https://usn.ubuntu.com/4109-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5785
- https://www.debian.org/security/2019/dsa-4405 vendor-advisoryx_refsource_DEBIANThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-5785 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1537758 | Issue Tracking | |
| https://github.com/uclouvain/openjpeg/issues/1057 | x_refsource_MISCExploitIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-5785 | ||
| https://usn.ubuntu.com/4109-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-5785 | ||
| https://www.debian.org/security/2019/dsa-4405 | vendor-advisoryx_refsource_DEBIANThird Party Advisory |
Change history (0)
No recorded changes yet.