CVE-2017-12982

Source
https://cve.org/CVERecord?id=CVE-2017-12982
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12982.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-12982
Downstream
Related
Published
2017-08-21T07:29:00Z
Modified
2026-08-07T14:59:02Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.

References

Affected packages

Git / github.com/uclouvain/openjpeg

Affected ranges

Type
GIT
Repo
https://github.com/uclouvain/openjpeg
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "2.3.0"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v2.*
v2.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12982.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "32483295321228823534696507974797187153",
                "296002183442861096462899504896635776348",
                "37440565878080639574652199070067340010",
                "219591937768648570144702747136129848003"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2017-12982-4cebdc3d",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7",
        "target":  {
            "file":  "src/bin/jp2/convertbmp.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "105053355577131966731431843433851090146",
            "length":  5928
        },
        "id":  "CVE-2017-12982-5279c3de",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7",
        "target":  {
            "file":  "src/bin/jp2/convertbmp.c",
            "function":  "bmp_read_info_header"
        }
    }
]
vanir_signatures_modified
"2026-08-07T14:59:02Z"