{"id":"CVE-2017-14174","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.","modified":"2026-07-11T18:14:57.503865Z","published":"2017-09-07T06:29:00.390Z","related":["SUSE-SU-2018:0017-1","SUSE-SU-2018:0043-1","SUSE-SU-2018:0197-1","SUSE-SU-2018:0413-1"],"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:10.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"9.0"},{"last_affected":"9.0"},{"introduced":"10.0"},{"last_affected":"10.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux"},{"vendor_product":"imagemagick:imagemagick","cpes":["cpe:2.3:a:imagemagick:imagemagick:7.0.7-0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"7.0.7-0"},{"last_affected":"7.0.7-0"},{"introduced":"7.0.7-0"},{"last_affected":"7.0.7-0"}],"source":"CPE_STRING"}]},"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201711-07"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3681-1/"},{"type":"REPORT","url":"https://github.com/ImageMagick/ImageMagick/commit/f68a98a9d385838a1c73ec960a14102949940a64"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/issues/714"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick","events":[{"introduced":"0"},{"fixed":"04a567494786d5bb50894fc8bb8fea0cf496bea8"},{"fixed":"f68a98a9d385838a1c73ec960a14102949940a64"}],"database_specific":{"source":"REFERENCES"}}],"versions":["7.0.6-9","7.0.6-8","7.0.6-7","7.0.6-6","7.0.6-5","7.0.6-4","7.0.6-3","7.0.6-2","7.0.6-1","7.0.6-0","7.0.5-10","7.0.5-9","7.0.5-8","7.0.5-7","7.0.5-6","7.0.5-5","7.0.5-4","7.0.5-3","7.0.5-2","7.0.5-1","7.0.5-0","7.0.4-10","7.0.4-9","7.0.4-8","7.0.4-7","7.0.4-6","7.0.4-5","7.0.4-4","7.0.4-3","7.0.4-2","7.0.4-1","7.0.4-0","7.0.3-10","7.0.3-9","7.0.3-8","7.0.3-7","7.0.3-6","7.0.3-5","7.0.3-4","7.0.3-3","7.0.3-2","7.0.3-1","7.0.3-0","7.0.2-10","7.0.2-9","7.0.2-8","7.0.2-7","7.0.2-6","7.0.2-5","7.0.2-4","7.0.2-3","7.0.2-2","7.0.2-1","7.0.2-0","7.0.1-10","7.0.1-9","7.0.1-8","7.0.1-7","7.0.1-6","7.0.1-5","7.0.1-4","7.0.1-3","7.0.1-2","7.0.1-1","7.0.1-0"],"database_specific":{"vanir_signatures":[{"source":"https://github.com/imagemagick/imagemagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8","target":{"file":"coders/psd.c","function":"ReadPSDLayersInternal"},"deprecated":false,"digest":{"function_hash":"227917248977604756752895232461377639028","length":9900},"id":"CVE-2017-14174-31c4e883","signature_type":"Function","signature_version":"v1"},{"deprecated":false,"digest":{"function_hash":"74929056351228355100111006193809748399","length":9724},"id":"CVE-2017-14174-bd106eba","signature_type":"Function","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/f68a98a9d385838a1c73ec960a14102949940a64","target":{"file":"coders/psd.c","function":"ReadPSDLayersInternal"}},{"deprecated":false,"digest":{"line_hashes":["119178249013279704618013376981903919060","253136456020829464413097838557476855346","215046673533424231018582341993883771574","337916046612336122829028477682898819654"],"threshold":0.9},"id":"CVE-2017-14174-bee63ba2","signature_type":"Line","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/f68a98a9d385838a1c73ec960a14102949940a64","target":{"file":"coders/psd.c"}}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-14174.json","vanir_signatures_modified":"2026-07-11T18:14:57Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}