CVE-2017-14172

Source
https://cve.org/CVERecord?id=CVE-2017-14172
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14172.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-14172
Downstream
DEBIAN (1)
SUSE (2)
UBUNTU (1)
Related
Published
2017-09-07T06:29:00Z
Modified
2026-08-07T14:48:53Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In coders/ps.c in ImageMagick 7.0.7-0 Q16, a DoS in ReadPSImage() due to lack of an EOF (End of File) check might cause huge CPU consumption. When a crafted PSD file, which claims a large "extent" field in the header but does not contain sufficient backing data, is provided, the loop over "length" would consume huge CPU resources, since there is no EOF check inside the loop.

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

Affected packages

Git / github.com/imagemagick/imagemagick

Affected ranges

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

Affected versions

7.*
7.0.7-0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14172.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "9537011764912027405671843399843009265",
            "length":  14625
        },
        "id":  "CVE-2017-14172-630eb8f5",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/imagemagick/imagemagick/commit/bdbbb13f1fe9b7e2465502c500561720f7456aac",
        "target":  {
            "file":  "coders/ps.c",
            "function":  "ReadPSImage"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "58479823145618228581022058710780723602",
            "length":  1798
        },
        "id":  "CVE-2017-14172-9ee869ac",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/imagemagick/imagemagick/commit/bdbbb13f1fe9b7e2465502c500561720f7456aac",
        "target":  {
            "file":  "coders/ps.c",
            "function":  "RegisterPSImage"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "135292126018698160666468971952564640438",
                "132534222829792808370145742001388724863",
                "41418898004768674788462144192458876253",
                "197431814783228836736986560833224504274",
                "185876525368505560160034891656701599451",
                "161655646774896142655207482874066622902",
                "70495320583446461142367828567072874858",
                "68764566489383548091647861790507884341",
                "214840200551557280338300049035010879053",
                "214180508259772947281718000033543135117",
                "271993194180293791857269753845963465192",
                "260084162069260263156073204012954071279",
                "28253425513397365356152378281095875034",
                "188467617281027800144393604961558690760",
                "312485988164934789024420650912925934829",
                "204267151015325515462831817699181972122",
                "328035841436348926912287969429653237274",
                "177106032570526478991809101685416653651",
                "312485988164934789024420650912925934829",
                "204267151015325515462831817699181972122",
                "328035841436348926912287969429653237274",
                "226453130297119401775123572952653347687",
                "312485988164934789024420650912925934829",
                "204267151015325515462831817699181972122",
                "328035841436348926912287969429653237274",
                "188467617281027800144393604961558690760",
                "312485988164934789024420650912925934829",
                "204267151015325515462831817699181972122",
                "328035841436348926912287969429653237274",
                "274675445605238745842961799433009229231",
                "150075779093929840955088750206106956602",
                "222431508817935265264542158134725646143",
                "75115875504680177083009774367114069424"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2017-14172-ba977e77",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/imagemagick/imagemagick/commit/bdbbb13f1fe9b7e2465502c500561720f7456aac",
        "target":  {
            "file":  "coders/ps.c"
        }
    }
]
vanir_signatures_modified
"2026-08-07T14:48:53Z"