CVE-2017-14174

Source
https://cve.org/CVERecord?id=CVE-2017-14174
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14174.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-14174
Downstream
Related
Published
2017-09-07T06:29:00.390Z
Modified
2026-07-08T11:47:34.671344Z
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/psd.c in ImageMagick 7.0.7-0 Q16, a DoS in ReadPSDLayersInternal() due to lack of an EOF (End of File) check might cause huge CPU consumption. When a crafted PSD file, which claims a large "length" 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:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "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"
        },
        {
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                },
                {
                    "introduced": "10.0"
                },
                {
                    "last_affected": "10.0"
                }
            ],
            "source": "CPE_STRING"
        }
    ]
}
References

Affected packages

Git / github.com/imagemagick/imagemagick

Affected ranges

Type
GIT
Repo
https://github.com/imagemagick/imagemagick
Events
Database specific
{
    "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

vanir_signatures
[
    {
        "digest": {
            "function_hash": "227917248977604756752895232461377639028",
            "length": 9900.0
        },
        "target": {
            "function": "ReadPSDLayersInternal",
            "file": "coders/psd.c"
        },
        "id": "CVE-2017-14174-31c4e883",
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/imagemagick/imagemagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "32049726182043773295831741800393104160",
                "116815506679453889333938500875355286678",
                "37599358493580759400267485990006730898",
                "222087902911553895177657525699636973625",
                "118404880492283785480432832241024075699",
                "1752188889627796884148367525604958584",
                "181111959647521990704820429920478013314",
                "282473728919783827309401937559219838893",
                "111981894211551939028127913553521763473",
                "253814620399284480092793794610979086869",
                "119178249013279704618013376981903919060",
                "79015034135935460010600351486705185641",
                "84432751106280033825734581237973625459",
                "38746096759329930751540293879158257427",
                "169056012500103527471030818501857572731",
                "99985599913578047027501822907550074458",
                "90597545397212835860869979680209699699",
                "176494185004056987080038562589558949699",
                "163454091415429016158157889608230868526",
                "159286878803305277457820501179634130341",
                "275651103362991085692720818461891371356",
                "159797418556431481999465662563907980449",
                "86815602352660556175091687456637381012",
                "28680800489996102525268462193067873767",
                "162094283140213643827941153996951279603"
            ]
        },
        "target": {
            "file": "coders/psd.c"
        },
        "id": "CVE-2017-14174-706abace",
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/imagemagick/imagemagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8",
        "deprecated": false
    },
    {
        "digest": {
            "function_hash": "74929056351228355100111006193809748399",
            "length": 9724.0
        },
        "target": {
            "function": "ReadPSDLayersInternal",
            "file": "coders/psd.c"
        },
        "id": "CVE-2017-14174-bd106eba",
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/imagemagick/imagemagick/commit/f68a98a9d385838a1c73ec960a14102949940a64",
        "deprecated": false
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "119178249013279704618013376981903919060",
                "253136456020829464413097838557476855346",
                "215046673533424231018582341993883771574",
                "337916046612336122829028477682898819654"
            ]
        },
        "target": {
            "file": "coders/psd.c"
        },
        "id": "CVE-2017-14174-bee63ba2",
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/imagemagick/imagemagick/commit/f68a98a9d385838a1c73ec960a14102949940a64",
        "deprecated": false
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14174.json"
vanir_signatures_modified
"2026-07-08T11:47:34Z"