{
  "cveId": "CVE-2018-20847",
  "url": "https://patchblox.com/security/cve/CVE-2018-20847",
  "summary": "CVE-2018-20847 is fixed in 4 products on 1 platform, first by RHSA-2021:4251, released November 9, 2021. It is not reported as exploited. Patch Radar priority: High.",
  "title": "openjpeg2: OpenJPEG is an open source library for reading and writing image files in JPEG2000 format.\n\nThe following packages ha...",
  "description": "OpenJPEG is an open source library for reading and writing image files in JPEG2000 format.\n\nThe following packages have been upgraded to a later upstream version: openjpeg2 (2.4.0).\n\nSecurity Fix(es):\n\n* 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)\n\n* openjpeg: heap-buffer-overflow in lib/openjp2/mqc.c could result in DoS (CVE-2020-27814)\n\n* openjpeg: heap-buffer-overflow write in opj_tcd_dc_level_shift_encode() (CVE-2020-27823)\n\n* openjpeg: heap-buffer-overflow in color.c may lead to DoS or arbitrary code execution (CVE-2021-3575)\n\n* openjpeg: integer overflow in opj_t1_encode_cblks in src/lib/openjp2/t1.c (CVE-2018-5727)\n\n* openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c (CVE-2018-5785)\n\n* openjpeg: division-by-zero in functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (CVE-2018-20845)\n\n* openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c (CVE-2018-20847)\n\n* openjpeg: denial of service in function opj_t1_encode_cblks in openjp2/t1.c (CVE-2019-12973)\n\n* openjpeg: global-buffer-overflow read in opj_dwt_calc_explicit_stepsizes() (CVE-2020-27824)\n\n* openjpeg: null pointer dereference in opj_tgt_reset function in lib/openjp2/tgt.c (CVE-2020-27842)\n\n* openjpeg: out-of-bounds read in opj_t2_encode_packet function in openjp2/t2.c (CVE-2020-27843)\n\n* 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)\n\n* openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c (CVE-2021-29338)\n\nFor 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.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the Red Hat Enterprise Linux 8.5 Release Notes linked from the References section.",
  "published": "2021-11-09T00:00:00Z",
  "severity": "Moderate",
  "cvss": 8.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
  "epss": 0.02343,
  "epssPercentile": 0.83712,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "openjpeg2",
      "release": "RHEL 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "RHSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-4251",
      "released": "2021-11-09T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2",
      "release": "almalinux 8",
      "fixedVersion": "2.4.0-4.el8",
      "fix": "ALSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/alsa-2021-4251",
      "released": "2021-11-09T08:51:11Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2",
      "release": "ol 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "ELSA-2021-4251",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-4251",
      "released": "2021-11-16T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2",
      "release": "rocky 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "RLSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2021-4251",
      "released": "2021-11-09T08:51:11Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-devel",
      "release": "RHEL 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "RHSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-4251",
      "released": "2021-11-09T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-devel",
      "release": "almalinux 8",
      "fixedVersion": "2.4.0-4.el8",
      "fix": "ALSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/alsa-2021-4251",
      "released": "2021-11-09T08:51:11Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-devel",
      "release": "ol 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "ELSA-2021-4251",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-4251",
      "released": "2021-11-16T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-devel-docs",
      "release": "RHEL 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "RHSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-4251",
      "released": "2021-11-09T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-devel-docs",
      "release": "almalinux 8",
      "fixedVersion": "2.4.0-4.el8",
      "fix": "ALSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/alsa-2021-4251",
      "released": "2021-11-09T08:51:11Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-devel-docs",
      "release": "ol 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "ELSA-2021-4251",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-4251",
      "released": "2021-11-16T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-tools",
      "release": "RHEL 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "RHSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/rhsa-2021-4251",
      "released": "2021-11-09T00:00:00Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-tools",
      "release": "almalinux 8",
      "fixedVersion": "2.4.0-4.el8",
      "fix": "ALSA-2021:4251",
      "url": "https://patchblox.com/security/fix/linux/alsa-2021-4251",
      "released": "2021-11-09T08:51:11Z"
    },
    {
      "platform": "linux",
      "product": "openjpeg2-tools",
      "release": "ol 8",
      "fixedVersion": "0:2.4.0-4.el8",
      "fix": "ELSA-2021-4251",
      "url": "https://patchblox.com/security/fix/linux/elsa-2021-4251",
      "released": "2021-11-16T00:00:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-07T12:40:37Z"
}