CVE-2018-16643

Source
https://cve.org/CVERecord?id=CVE-2018-16643
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16643.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-16643
Downstream
Related
Published
2018-09-06T22:29:01.023Z
Modified
2026-07-08T19:44:16.431859Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

The functions ReadDCMImage in coders/dcm.c, ReadPWPImage in coders/pwp.c, ReadCALSImage in coders/cals.c, and ReadPICTImage in coders/pict.c in ImageMagick 7.0.8-4 do not check the return value of the fputc function, which allows remote attackers to cause a denial of service via a crafted image file.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "CPE_STRING",
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
                {
                    "introduced": "14.04"
                },
                {
                    "last_affected": "14.04"
                },
                {
                    "introduced": "16.04"
                },
                {
                    "last_affected": "16.04"
                },
                {
                    "introduced": "18.04"
                },
                {
                    "last_affected": "18.04"
                }
            ],
            "cpes": [
                "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
            ]
        },
        {
            "source": "CPE_STRING",
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                }
            ],
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/imagemagick/imagemagick

Affected ranges

Type
GIT
Repo
https://github.com/imagemagick/imagemagick
Events
Database specific
{
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:imagemagick:imagemagick:7.0.8-4:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "7.0.8-4"
        },
        {
            "last_affected": "7.0.8-4"
        }
    ]
}

Affected versions

7.*
7.0.8-4
7.0.8-5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-16643.json"
vanir_signatures
[
    {
        "id": "CVE-2018-16643-12720e63",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "function_hash": "151821552892915741770173898003066722704",
            "length": 2784.0
        },
        "target": {
            "function": "ReadCALSImage",
            "file": "coders/cals.c"
        }
    },
    {
        "id": "CVE-2018-16643-35e61409",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "187533512943857346308346778587421428526",
                "231920950740378249818910821841393386793",
                "189095931184415899638832339113382182696",
                "130223367870871285664262177353501464854"
            ]
        },
        "target": {
            "file": "coders/pwp.c"
        }
    },
    {
        "id": "CVE-2018-16643-44e94d95",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "function_hash": "203070077634815224829465299352887414190",
            "length": 15924.0
        },
        "target": {
            "function": "ReadPICTImage",
            "file": "coders/pict.c"
        }
    },
    {
        "id": "CVE-2018-16643-50cd2b18",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "10110501647741398902524607502901130633",
                "236759063174542429855447567423183366300",
                "163786612835840933850059127572924549249",
                "183097169735099011941040536475853576911"
            ]
        },
        "target": {
            "file": "coders/cals.c"
        }
    },
    {
        "id": "CVE-2018-16643-937028a5",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "function_hash": "39804774322586891601766100662503627903",
            "length": 3644.0
        },
        "target": {
            "function": "ReadPWPImage",
            "file": "coders/pwp.c"
        }
    },
    {
        "id": "CVE-2018-16643-be4e267d",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "function_hash": "261599115229418059521409716770718207903",
            "length": 27570.0
        },
        "target": {
            "function": "ReadDCMImage",
            "file": "coders/dcm.c"
        }
    },
    {
        "id": "CVE-2018-16643-d579aed0",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "253301786758302436653254016906963793774",
                "137873803676235522753668915003569008703",
                "189766374457722655839155578208854704496",
                "193869383204492240367463169495217187234",
                "39857028589974231118589688254169858637",
                "194895140565744107345321645471789901156",
                "287552287390240115288847990630583350375",
                "334331858103254438590899789618930688375",
                "207071924030769842771473903323956025228",
                "271583124863480110105028350825803226524",
                "19363552495892662592930719613345772816",
                "301481943347378010357468641588504728513",
                "177227375233463829190662212773628464633",
                "130223367870871285664262177353501464854",
                "245642162127522678580172602418137411276",
                "6558087767129097902083456721076762767",
                "177759960853892708963081058335874578207",
                "334065183752715418393280304446773169191"
            ]
        },
        "target": {
            "file": "coders/dcm.c"
        }
    },
    {
        "id": "CVE-2018-16643-da9cdb50",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/imagemagick/imagemagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "149465407627715467110335476937850666663",
                "231920950740378249818910821841393386793",
                "102154160121461609014101208257639932622",
                "239996784553475754507201816640268921186"
            ]
        },
        "target": {
            "file": "coders/pict.c"
        }
    }
]
vanir_signatures_modified
"2026-07-08T19:44:16Z"