CVE-2018-18088
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
CVE-2018-18088 is a medium vulnerability (CVSS 6.5) in Uclouvain Openjpeg, published October 9, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.96%, the 80th percentile. Fixed in openjpeg 2.3.0-r1.
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
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
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
CVE-2018-18088- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
CVE-2018-18088- Updated
- 2026-11-02
EUVDEUVD-2018-9826 No score
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
EUVD-2018-9826- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-59q2-6672-5mgr
6.5
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
GHSA-59q2-6672-5mgr- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-18088
6.5
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
ALPINE-CVE-2018-18088- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2018-18088
6.5
CVE-2018-18088 does not affect BellSoft software
- Record
BELL-CVE-2018-18088- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSV
6.5
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
CVE-2018-18088- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-18088
6.5
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
DEBIAN-CVE-2018-18088- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-18088
6.5
OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c
- Record
UBUNTU-CVE-2018-18088- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2019-0004 No score
Updated openjpeg2 packages fix security vulnerabilities
A stack-based buffer overflow in the pgxtoimage function in jpwl/convert.c could crash the converter (CVE-2017-17479).
A stack-based buffer overflow in the pgxtovolume function in jp3d/convert.c could crash the converter (CVE-2017-17480).
A flaw was found 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 (CVE-2018-5785).
In OpenJPEG 2.3.0, there is excessive iteration in the opj_t1_encode_cblks function of openjp2/t1.c. Attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file (CVE-2018-6616).
A flaw was found in OpenJPEG 2.3.0. A NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c (CVE-2018-18088).
- Record
MGASA-2019-0004- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11120-1 No score
libopenjp2-7-2.4.0-1.4 on GA media
These are all security issues fixed in the libopenjp2-7-2.4.0-1.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11120-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:03352-1 No score
Security update for openjpeg2
This update for openjpeg2 fixes the following issues:
- CVE-2018-18088: Fixed a null pointer dereferencei in imagetopnm function. (bsc#1111638).
- Record
SUSE-SU-2025:03352-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:03353-1 No score
Security update for openjpeg2
This update for openjpeg2 fixes the following issues:
- CVE-2018-18088: Fixed NULL pointer dereference in the imagetopnm function of jp2/convert.c (bsc#1111638).
- Record
SUSE-SU-2025:03353-1- Updated
- 2026-11-02
OSVUSN-4109-1 No score
openjpeg2 vulnerabilities
It was discovered that OpenJPEG incorrectly handled certain PGX files. An attacker could possibly use this issue to cause a denial of service or possibly remote code execution. (CVE-2017-17480)
It was discovered that OpenJPEG incorrectly handled certain files. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-14423)
It was discovered that OpenJPEG incorrectly handled certain PNM files. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-18088)
It was discovered that OpenJPEG incorrectly handled certain BMP files. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-5785, CVE-2018-6616)
- Record
USN-4109-1- Updated
- 2026-11-02
OSVUSN-5664-1 No score
openjpeg vulnerabilities
It was discovered that OpenJPEG did not properly handle PNM headers, resulting in a null pointer dereference. A remote attacker could possibly use this issue to cause a denial of service (DoS). (CVE-2016-7445)
It was discovered that OpenJPEG incorrectly handled certain image files resulting in division by zero. A remote attacker could possibly use this issue to cause a denial of service (DoS). (CVE-2016-9112 and CVE-2016-10506)
It was discovered that OpenJPEG incorrectly handled converting certain image files resulting in a stack buffer overflow. A remote attacker could possibly use this issue to cause a denial of service (DoS). (CVE-2017-17479)
It was discovered that OpenJPEG incorrectly handled converting PNM image files resulting in a null pointer dereference. A remote attacker could possibly use this issue to cause a denial of service (DoS). (CVE-2018-18088)
It was discovered that OpenJPEG incorrectly handled converting DWT images files resulting in a buffer overflow. A remote attacker could possibly use this issue to cause a denial of service (DoS). (CVE-2020-27824)
- Record
USN-5664-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openjpegAlpine:v3.10 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.11 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.12 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.13 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.14 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.15 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.16 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.17 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.18 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.19 |
before 2.3.0-r1 | 2.3.0-r1 |
Show 25 moreShow less
| Package | Affected | Fixed |
|---|---|---|
openjpegAlpine:v3.20 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.21 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.22 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.23 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.24 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.6 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.7 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.8 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpegAlpine:v3.9 |
before 2.3.0-r1 | 2.3.0-r1 |
openjpeg2Debian:12 |
before 2.3.0-2 | 2.3.0-2 |
openjpeg2Debian:13 |
before 2.3.0-2 | 2.3.0-2 |
openjpeg2Debian:14 |
before 2.3.0-2 | 2.3.0-2 |
openjpeg2Debian:8 |
before 2.1.0-2+deb8u5, plus listed versions 2.1.0-22.1.0-2+deb8u12.1.0-2+deb8u22.1.0-2+deb8u32.1.0-2+deb8u4 |
2.1.0-2+deb8u5 |
openjpeg2Debian:9 |
before 2.1.2-1.1+deb9u3, plus listed versions 2.1.2-1.12.1.2-1.1+deb9u12.1.2-1.1+deb9u2 |
2.1.2-1.1+deb9u3 |
openjpeg2Mageia:6 |
before 2.2.0-1.3.mga6 | 2.2.0-1.3.mga6 |
openjpeg2SUSE:Linux Enterprise Module for Basesystem 15 SP6 |
before 2.3.0-150000.3.21.1 | 2.3.0-150000.3.21.1 |
openjpeg2SUSE:Linux Enterprise Module for Basesystem 15 SP7 |
before 2.3.0-150000.3.21.1 | 2.3.0-150000.3.21.1 |
openjpeg2SUSE:Linux Enterprise Module for Package Hub 15 SP6 |
before 2.3.0-150000.3.21.1 | 2.3.0-150000.3.21.1 |
openjpeg2SUSE:Linux Enterprise Module for Package Hub 15 SP7 |
before 2.3.0-150000.3.21.1 | 2.3.0-150000.3.21.1 |
openjpeg2openSUSE:Leap 15.6 |
before 2.3.0-150000.3.21.1 | 2.3.0-150000.3.21.1 |
openjpeg2SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 |
before 2.1.0-4.24.1 | 2.1.0-4.24.1 |
openjpegUbuntu:14.04:LTS |
All versions, plus listed versions 1.3+dfsg-4.6ubuntu21.3+dfsg-4.7ubuntu1 |
None known |
openjpeg2Ubuntu:16.04:LTS |
before 2.1.2-1.1+deb9u3build0.16.04.1, plus listed versions 2.1.0-2.12.1.0-2.1ubuntu0.12.1.2-1.1+deb9u2build0.1 |
2.1.2-1.1+deb9u3build0.16.04.1 |
openjpegUbuntu:Pro:16.04:LTS |
before 1:1.5.2-3.1ubuntu0.1~esm2, plus listed versions 1:1.5.2-3.1 |
1:1.5.2-3.1ubuntu0.1~esm2 |
openjpeg2Ubuntu:18.04:LTS |
before 2.3.0-2build0.18.04.1, plus listed versions 2.2.0-12.3.0-1 |
2.3.0-2build0.18.04.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
github.com/uclouvain/openjpeg/issues/1152
lists.debian.org/debian-lts-announce/2018/11/msg00018.html
debian.org/security/2019/dsa-4405
usn.ubuntu.com/4109-1
nvd.nist.gov/vuln/detail/CVE-2018-18088
github.com/advisories/GHSA-59q2-6672-5mgr
Show 47 moreShow less
security.alpinelinux.org/vuln/CVE-2018-18088
docs.bell-sw.com/security/cves/CVE-2018-18088
security-tracker.debian.org/tracker/CVE-2018-18088
advisories.mageia.org/MGASA-2019-0004.html
bugs.mageia.org/show_bug.cgi?id=23147
lists.opensuse.org/opensuse-updates/2018-05/msg00086.html
lists.fedoraproject.org/archives/list/[email protected]/thread/HKAGXKPJ2Z4TMUR3TVLTQ7SMTTIYGJKK
lists.fedoraproject.org/archives/list/[email protected]/thread/JAZ5ZQP5XJ23SE3ECBP4QQF2CGMK6USD
suse.com/support/update/announcement/2025/suse-su-202503352-1
bugzilla.suse.com/1111638
suse.com/security/cve/CVE-2018-18088
suse.com/support/update/announcement/2025/suse-su-202503353-1
ubuntu.com/security/CVE-2018-18088
ubuntu.com/security/notices/USN-4109-1
ubuntu.com/security/notices/USN-5664-1
cve.org/CVERecord?id=CVE-2018-18088
ubuntu.com/security/CVE-2017-17480
ubuntu.com/security/CVE-2018-5785
ubuntu.com/security/CVE-2018-6616
ubuntu.com/security/CVE-2018-14423
ubuntu.com/security/CVE-2016-7445
ubuntu.com/security/CVE-2016-9112
ubuntu.com/security/CVE-2016-10506
ubuntu.com/security/CVE-2017-17479
ubuntu.com/security/CVE-2020-27824
suse.com/security/cve/CVE-2016-10504
suse.com/security/cve/CVE-2016-10505
suse.com/security/cve/CVE-2016-10506
suse.com/security/cve/CVE-2016-5139
suse.com/security/cve/CVE-2016-5152
suse.com/security/cve/CVE-2016-5158
suse.com/security/cve/CVE-2016-8332
suse.com/security/cve/CVE-2017-12982
suse.com/security/cve/CVE-2017-14039
suse.com/security/cve/CVE-2017-14040
suse.com/security/cve/CVE-2017-14041
suse.com/security/cve/CVE-2017-14151
suse.com/security/cve/CVE-2017-14152
suse.com/security/cve/CVE-2018-14423
suse.com/security/cve/CVE-2018-16375
suse.com/security/cve/CVE-2018-5727
suse.com/security/cve/CVE-2018-5785
suse.com/security/cve/CVE-2018-6616
suse.com/security/cve/CVE-2018-7648
suse.com/security/cve/CVE-2019-12973
suse.com/security/cve/CVE-2020-6851
suse.com/security/cve/CVE-2020-8112