Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-14174
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:19 UTC · Revision 1
Source evidence
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.
osv:CVE-2017-14174
Complete source record
{
"id": "624b280fed37ed083f947907b3ef918811f7f76f9e20f60ca017ada915ed7c28",
"url": "https://osv.dev/vulnerability/CVE-2017-14174",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-14174",
"summary": "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.",
"evidence": "osv:CVE-2017-14174",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2017-14174",
"aliases": [
"CVE-2017-14174"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/imagemagick/imagemagick",
"type": "GIT",
"events": [
{
"introduced": "27f8ba82ddd665ab41cef6588128f680cbd69905"
},
{
"last_affected": "27f8ba82ddd665ab41cef6588128f680cbd69905"
},
{
"fixed": "04a567494786d5bb50894fc8bb8fea0cf496bea8"
},
{
"fixed": "f68a98a9d385838a1c73ec960a14102949940a64"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:imagemagick:imagemagick:7.0.7-0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.7-0"
},
{
"last_affected": "7.0.7-0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "04a567494786d5bb50894fc8bb8fea0cf496bea8"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "f68a98a9d385838a1c73ec960a14102949940a64"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"7.0.7-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14174.json",
"vanir_signatures": [
{
"id": "CVE-2017-14174-31c4e883",
"digest": {
"length": 9900,
"function_hash": "227917248977604756752895232461377639028"
},
"source": "https://github.com/imagemagick/imagemagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8",
"target": {
"file": "coders/psd.c",
"function": "ReadPSDLayersInternal"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-14174-bd106eba",
"digest": {
"length": 9724,
"function_hash": "74929056351228355100111006193809748399"
},
"source": "https://github.com/imagemagick/imagemagick/commit/f68a98a9d385838a1c73ec960a14102949940a64",
"target": {
"file": "coders/psd.c",
"function": "ReadPSDLayersInternal"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-14174-bee63ba2",
"digest": {
"threshold": 0.9,
"line_hashes": [
"119178249013279704618013376981903919060",
"253136456020829464413097838557476855346",
"215046673533424231018582341993883771574",
"337916046612336122829028477682898819654"
]
},
"source": "https://github.com/imagemagick/imagemagick/commit/f68a98a9d385838a1c73ec960a14102949940a64",
"target": {
"file": "coders/psd.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:12:10Z"
}
}
],
"modified": "2026-10-24T14:12:10.844862435Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html",
"https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html",
"https://security.gentoo.org/glsa/201711-07",
"https://usn.ubuntu.com/3681-1/",
"https://github.com/ImageMagick/ImageMagick/commit/f68a98a9d385838a1c73ec960a14102949940a64",
"https://github.com/ImageMagick/ImageMagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8",
"https://github.com/ImageMagick/ImageMagick/issues/714"
],
"provider_metadata": {
"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": [
{
"range": [
{
"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": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:imagemagick:imagemagick:7.0.7-0:*:*:*:*:*:*:*"
],
"vendor_product": "imagemagick:imagemagick",
"extracted_events": [
{
"range": [
{
"introduced": "7.0.7-0"
},
{
"last_affected": "7.0.7-0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-14174",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443351,
"published_at": "2017-09-07T06:29:00.39+00:00"
}