Every CVE Search/ Get API key

CVE-2018-18088

OpenJPEG 2.3.0 has a NULL pointer dereference for "red" in the imagetopnm function of jp2/convert.c

6.5 MediumFix available

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

1.96%Up 0.9 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
openjpeg
Alpine:v3.10
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.11
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.12
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.13
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.14
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.15
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.16
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.17
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.18
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.19
before 2.3.0-r1
2.3.0-r1
Show 25 moreShow less
Affected packages
PackageAffectedFixed
openjpeg
Alpine:v3.20
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.21
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.22
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.23
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.24
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.6
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.7
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.8
before 2.3.0-r1
2.3.0-r1
openjpeg
Alpine:v3.9
before 2.3.0-r1
2.3.0-r1
openjpeg2
Debian:12
before 2.3.0-2
2.3.0-2
openjpeg2
Debian:13
before 2.3.0-2
2.3.0-2
openjpeg2
Debian:14
before 2.3.0-2
2.3.0-2
openjpeg2
Debian: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
openjpeg2
Debian: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
openjpeg2
Mageia:6
before 2.2.0-1.3.mga6
2.2.0-1.3.mga6
openjpeg2
SUSE:Linux Enterprise Module for Basesystem 15 SP6
before 2.3.0-150000.3.21.1
2.3.0-150000.3.21.1
openjpeg2
SUSE:Linux Enterprise Module for Basesystem 15 SP7
before 2.3.0-150000.3.21.1
2.3.0-150000.3.21.1
openjpeg2
SUSE:Linux Enterprise Module for Package Hub 15 SP6
before 2.3.0-150000.3.21.1
2.3.0-150000.3.21.1
openjpeg2
SUSE:Linux Enterprise Module for Package Hub 15 SP7
before 2.3.0-150000.3.21.1
2.3.0-150000.3.21.1
openjpeg2
openSUSE:Leap 15.6
before 2.3.0-150000.3.21.1
2.3.0-150000.3.21.1
openjpeg2
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
before 2.1.0-4.24.1
2.1.0-4.24.1
openjpeg
Ubuntu:14.04:LTS
All versions, plus listed versions
1.3+dfsg-4.6ubuntu21.3+dfsg-4.7ubuntu1
None known
openjpeg2
Ubuntu: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
openjpeg
Ubuntu: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
openjpeg2
Ubuntu: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

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

References

Show 47 moreShow less
MoveEnter Open