Every CVE Search/ Get API key

CVE-2018-20847

An improper computation of p_tx0, p_tx1, p_ty0 and p_ty1 in the function...

8.8 HighFix available

CVE-2018-20847 is a high vulnerability (CVSS 8.8) in Uclouvain Openjpeg, published June 26, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.34%, the 83rd percentile. Fixed in openjpeg2 2.4.0-4.el8.

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

2.34%Up 1.1 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 8.8

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.

Record
CVE-2018-20847
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-190
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2018-20847
Updated
2026-11-02
EUVDEUVD-2018-13387 No score

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.

Record
EUVD-2018-13387
Updated
2026-11-03
GitHub AdvisoriesGHSA-m375-m9p8-9949 8.8

An improper computation of p_tx0, p_tx1, p_ty0 and p_ty1 in the function...

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.

Record
GHSA-m375-m9p8-9949
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-190
Updated
2026-11-02
OSV 8.8

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.

Record
CVE-2018-20847
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-20847 8.8

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.

Record
DEBIAN-CVE-2018-20847
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVRHSA-2021:4251 7.8

Red Hat Security Advisory: openjpeg2 security update

Record
RHSA-2021:4251
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2021:4251 7.8

Moderate: openjpeg2 security update

OpenJPEG is an open source library for reading and writing image files in JPEG2000 format.

The following packages have been upgraded to a later upstream version: openjpeg2 (2.4.0).

Security Fix(es):

  • openjpeg: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor (CVE-2020-15389)

  • openjpeg: heap-buffer-overflow in lib/openjp2/mqc.c could result in DoS (CVE-2020-27814)

  • openjpeg: heap-buffer-overflow write in opj_tcd_dc_level_shift_encode() (CVE-2020-27823)

  • openjpeg: heap-buffer-overflow in color.c may lead to DoS or arbitrary code execution (CVE-2021-3575)

  • openjpeg: integer overflow in opj_t1_encode_cblks in src/lib/openjp2/t1.c (CVE-2018-5727)

  • openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c (CVE-2018-5785)

  • openjpeg: division-by-zero in functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (CVE-2018-20845)

  • openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c (CVE-2018-20847)

  • openjpeg: denial of service in function opj_t1_encode_cblks in openjp2/t1.c (CVE-2019-12973)

  • openjpeg: global-buffer-overflow read in opj_dwt_calc_explicit_stepsizes() (CVE-2020-27824)

  • openjpeg: null pointer dereference in opj_tgt_reset function in lib/openjp2/tgt.c (CVE-2020-27842)

  • openjpeg: out-of-bounds read in opj_t2_encode_packet function in openjp2/t2.c (CVE-2020-27843)

  • openjpeg: heap-based buffer overflow in functions opj_pi_next_rlcp, opj_pi_next_rpcl and opj_pi_next_lrcp in openjp2/pi.c (CVE-2020-27845)

  • openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c (CVE-2021-29338)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.

Record
RLSA-2021:4251
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-20847 8.8

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.

Record
UBUNTU-CVE-2018-20847
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVALSA-2021:4251 No score

Moderate: openjpeg2 security update

OpenJPEG is an open source library for reading and writing image files in JPEG2000 format.

The following packages have been upgraded to a later upstream version: openjpeg2 (2.4.0).

Security Fix(es):

  • openjpeg: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor (CVE-2020-15389)

  • openjpeg: heap-buffer-overflow in lib/openjp2/mqc.c could result in DoS (CVE-2020-27814)

  • openjpeg: heap-buffer-overflow write in opj_tcd_dc_level_shift_encode() (CVE-2020-27823)

  • openjpeg: heap-buffer-overflow in color.c may lead to DoS or arbitrary code execution (CVE-2021-3575)

  • openjpeg: integer overflow in opj_t1_encode_cblks in src/lib/openjp2/t1.c (CVE-2018-5727)

  • openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c (CVE-2018-5785)

  • openjpeg: division-by-zero in functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (CVE-2018-20845)

  • openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c (CVE-2018-20847)

  • openjpeg: denial of service in function opj_t1_encode_cblks in openjp2/t1.c (CVE-2019-12973)

  • openjpeg: global-buffer-overflow read in opj_dwt_calc_explicit_stepsizes() (CVE-2020-27824)

  • openjpeg: null pointer dereference in opj_tgt_reset function in lib/openjp2/tgt.c (CVE-2020-27842)

  • openjpeg: out-of-bounds read in opj_t2_encode_packet function in openjp2/t2.c (CVE-2020-27843)

  • openjpeg: heap-based buffer overflow in functions opj_pi_next_rlcp, opj_pi_next_rpcl and opj_pi_next_lrcp in openjp2/pi.c (CVE-2020-27845)

  • openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c (CVE-2021-29338)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2021:4251
Updated
2026-11-02
OSVUSN-4497-1 No score

OpenJPEG vulnerabilities

It was discovered that OpenJPEG incorrectly handled certain image files. A remote attacker could possibly use this issue to cause a denial of service. (CVE-2016-9112)

It was discovered that OpenJPEG did not properly handle certain input. If OpenJPEG were supplied with specially crafted input, it could be made to crash or potentially execute arbitrary code. (CVE-2018-20847, CVE-2018-21010, CVE-2020-6851, CVE-2020-8112, CVE-2020-15389)

It was discovered that OpenJPEG incorrectly handled certain BMP files. A remote attacker could possibly use this issue to cause a denial of service. (CVE-2019-12973)

Record
USN-4497-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
openjpeg2
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2-devel
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2-devel-docs
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2-tools
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2
Debian:12
before 2.3.1-1
2.3.1-1
openjpeg2
Debian:13
before 2.3.1-1
2.3.1-1
openjpeg2
Debian:14
before 2.3.1-1
2.3.1-1
openjpeg2
Debian:8
before 2.1.0-2+deb8u7, plus listed versions
2.1.0-22.1.0-2+deb8u12.1.0-2+deb8u22.1.0-2+deb8u32.1.0-2+deb8u42.1.0-2+deb8u52.1.0-2+deb8u6
2.1.0-2+deb8u7
openjpeg2
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
Show 45 moreShow less
Affected packages
PackageAffectedFixed
openjpeg2-debugsource
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-devel-docs
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debugsource
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-devel
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2
Rocky Linux:8
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2
Ubuntu:16.04:LTS
before 2.1.2-1.1+deb9u5build0.16.04.1, plus listed versions
2.1.0-2.12.1.0-2.1ubuntu0.12.1.2-1.1+deb9u2build0.12.1.2-1.1+deb9u3build0.16.04.1
2.1.2-1.1+deb9u5build0.16.04.1
blender
Ubuntu:16.04:LTS
All versions, plus listed versions
2.74+dfsg0-4build22.75.a+dfsg0-2ubuntu22.75.a+dfsg0-2ubuntu32.76.b+dfsg0-32.76.b+dfsg0-3build1
None known
emscripten
Ubuntu:16.04:LTS
All versions, plus listed versions
1.22.1-1build1
None known
insighttoolkit4
Ubuntu:16.04:LTS
All versions, plus listed versions
4.8.1-1ubuntu34.8.1-1ubuntu44.8.2-3.1ubuntu14.9.0-3ubuntu24.9.0-4ubuntu14.9.0-4ubuntu1.1
None known
texmaker
Ubuntu:16.04:LTS
All versions, plus listed versions
4.4.1-14.4.1-1.1
None known
blender
Ubuntu:18.04:LTS
All versions, plus listed versions
2.78.c+dfsg0-2build12.79+dfsg0-2build12.79+dfsg0-32.79+dfsg0-3build12.79.b+dfsg0-12.79.b+dfsg0-1ubuntu1.18.04.1
None known
emscripten
Ubuntu:18.04:LTS
All versions, plus listed versions
1.22.1-1build1
None known
insighttoolkit4
Ubuntu:18.04:LTS
All versions, plus listed versions
4.12.2-dfsg1-1ubuntu1
None known
qtwebengine-opensource-src
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
5.9.1+dfsg-45.9.1+dfsg-4ubuntu15.9.2+dfsg-2ubuntu15.9.3+dfsg-0ubuntu15.9.4+dfsg-0ubuntu15.9.5+dfsg-0ubuntu25.9.5+dfsg-0ubuntu2+esm1
None known
texmaker
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
4.5-15.0.2-15.0.2-1build15.0.2-1build25.0.2-1ubuntu0.1~esm1
None known
blender
Ubuntu:20.04:LTS
All versions, plus listed versions
2.80+dfsg-32.80+dfsg-3build12.80+dfsg-42.81.a+dfsg-5build32.82+dfsg-12.82+dfsg-1build12.82.a+dfsg-1
None known
insighttoolkit4
Ubuntu:20.04:LTS
All versions, plus listed versions
4.12.2-dfsg1-4.1ubuntu14.13.2-dfsg1-1ubuntu14.13.2-dfsg1-4ubuntu14.13.2-dfsg1-64.13.2-dfsg1-6ubuntu14.13.2-dfsg1-8
None known
qtwebengine-opensource-src
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
5.12.4+dfsg-1ubuntu15.12.4+dfsg-1ubuntu35.12.5+dfsg-3ubuntu15.12.5+dfsg-6ubuntu25.12.5+dfsg-7
Show 4 moreShow less
5.12.5+dfsg-7build15.12.8+dfsg-0ubuntu15.12.8+dfsg-0ubuntu1.15.12.8+dfsg-0ubuntu1.1+esm1
None known
texmaker
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
5.0.3-1build25.0.3-1build35.0.3-1build45.0.3-1build55.0.3-1ubuntu0.20.04.1~esm1
None known
blender
Ubuntu:22.04:LTS
All versions, plus listed versions
2.93.3+dfsg-32.93.5+dfsg-12.93.5+dfsg-1build13.0.1+dfsg-7
None known
emscripten
Ubuntu:22.04:LTS
All versions, plus listed versions
2.0.13~dfsg-13.1.1~dfsg+~1.39.6-5ubuntu43.1.2~dfsg+~1.39.6-6ubuntu13.1.3~dfsg-4ubuntu13.1.3~dfsg-5ubuntu13.1.4~dfsg-7ubuntu13.1.5~dfsg-3ubuntu1
None known
insighttoolkit4
Ubuntu:22.04:LTS
All versions, plus listed versions
4.13.3withdata-dfsg1-4.14.13.3withdata-dfsg2-1ubuntu1
None known
qtwebengine-opensource-src
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
5.15.6+dfsg-15.15.6+dfsg-25.15.7+dfsg-25.15.8+dfsg-15.15.8+dfsg-1build1
Show 4 moreShow less
5.15.8+dfsg-1build25.15.8+dfsg-25.15.9+dfsg-15.15.9+dfsg-1ubuntu0.1~esm1
None known
texmaker
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
5.0.3-1build85.0.3-1build95.0.3-1ubuntu0.22.04.1~esm1
None known
blender
Ubuntu:24.04:LTS
All versions, plus listed versions
3.6.2+dfsg-2ubuntu13.6.2+dfsg-2ubuntu24.0.2+dfsg-1ubuntu14.0.2+dfsg-1ubuntu24.0.2+dfsg-1ubuntu44.0.2+dfsg-1ubuntu64.0.2+dfsg-1ubuntu74.0.2+dfsg-1ubuntu8
None known
emscripten
Ubuntu:24.04:LTS
All versions, plus listed versions
3.1.6~dfsg-53.1.6~dfsg-63.1.6~dfsg-7
None known
qtwebengine-opensource-src
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
5.15.15+dfsg-25.15.15+dfsg-2build25.15.15+dfsg-2ubuntu15.15.16+dfsg-15.15.16+dfsg-1ubuntu25.15.16+dfsg-1ubuntu45.15.16+dfsg-35.15.16+dfsg-3ubuntu0.1~esm1
None known
texmaker
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
5.1.3+dfsg-1build45.1.3+dfsg-1build55.1.3+dfsg-1build65.1.3+dfsg-1build75.1.3+dfsg-1build85.1.3+dfsg-1ubuntu0.1~esm1
None known
blender
Ubuntu:25.10
All versions, plus listed versions
4.3.2+dfsg-24.3.2+dfsg-2ubuntu14.3.2+dfsg-2ubuntu2
None known
emscripten
Ubuntu:25.10
All versions, plus listed versions
3.1.69+dfsg-13.1.69+dfsg-3
None known
qtwebengine-opensource-src
Ubuntu:25.10
All versions, plus listed versions
5.15.18+dfsg-25.15.18+dfsg-2build15.15.19+dfsg-15.15.19+dfsg2-1
None known
texmaker
Ubuntu:25.10
All versions, plus listed versions
5.1.3+dfsg-35.1.3+dfsg-3build1
None known
blender
Ubuntu:26.10
All versions, plus listed versions
5.0.1+dfsg-1ubuntu15.0.1+dfsg-1ubuntu35.0.1+dfsg-3build15.0.1+dfsg-5
None known
emscripten
Ubuntu:26.10
All versions, plus listed versions
3.1.69+dfsg-46.0.5+dfsg+~1.41.5-2
None known
qtwebengine-opensource-src
Ubuntu:26.10
All versions, plus listed versions
5.15.19+dfsg2-45.15.19+dfsg2-65.15.19+dfsg2-7
None known
texmaker
Ubuntu:26.10
All versions, plus listed versions
6.0.1+dfsg-3build16.0.1+dfsg-3build2
None known
blender
Ubuntu:26.04:LTS
All versions, plus listed versions
4.3.2+dfsg-2ubuntu25.0.1+dfsg-1ubuntu1
None known
emscripten
Ubuntu:26.04:LTS
All versions, plus listed versions
3.1.69+dfsg-33.1.69+dfsg-4
None known
texmaker
Ubuntu:26.04:LTS
All versions, plus listed versions
5.1.3+dfsg-3build16.0.1+dfsg-36.0.1+dfsg-3build1
None known
qtwebengine-opensource-src
Ubuntu:Pro:26.04:LTS
All versions, plus listed versions
5.15.19+dfsg2-15.15.19+dfsg2-1build15.15.19+dfsg2-25.15.19+dfsg2-35.15.19+dfsg2-45.15.19+dfsg2-4ubuntu0.1~esm1
None known

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 86 moreShow less
MoveEnter Open