{"id":"CVE-2016-7540","details":"coders/rgf.c in ImageMagick before 6.9.4-10 allows remote attackers to cause a denial of service (assertion failure) by converting an image to rgf format.","modified":"2026-07-08T06:08:24.980998Z","published":"2017-04-20T18:59:01.530Z","related":["SUSE-SU-2016:2667-1"],"references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/93228"},{"type":"REPORT","url":"https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1594060"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2016/09/22/2"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1378777"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/commit/a0108a892f9ea3c2bb1e7a49b7d71376c2ecbff7"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/pull/223"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick","events":[{"introduced":"0"},{"fixed":"a0108a892f9ea3c2bb1e7a49b7d71376c2ecbff7"}],"database_specific":{"source":"REFERENCES"}}],"database_specific":{"vanir_signatures":[{"target":{"file":"coders/rgf.c","function":"WriteRGFImage"},"deprecated":false,"digest":{"function_hash":"12049306930972900207546801341701970175","length":1705},"id":"CVE-2016-7540-0f3936c2","signature_type":"Function","signature_version":"v1","source":"https://github.com/imagemagick/imagemagick/commit/a0108a892f9ea3c2bb1e7a49b7d71376c2ecbff7"},{"source":"https://github.com/imagemagick/imagemagick/commit/a0108a892f9ea3c2bb1e7a49b7d71376c2ecbff7","target":{"file":"coders/rgf.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["152325804923714907420968470529836421804","84301424894650318138066432171020510919","234922387320644358258213245342217358358","51442785406918849293590780145967866940","251438074872774134997583560468472281442","167803181383194225235087899938848609593","200901111645146455814300289342525793978","40075768361917823915384989034006703201","308808076207351079082644637064443533100","254324701600787937099010276317098783018","227827563996924995911966050103663540646","109732373276114927693704197373493646527","138390208596809178300399574284595220928","182649730746032925946507893592489575563","38473390972515348214488420349512980212","201665080610914159273620449077432595811","262275178370304367782308947148888410662","156538146669394591143662375432191019587","72626647418135403540226924215892263434"]},"id":"CVE-2016-7540-bff98ddb","signature_type":"Line","signature_version":"v1"}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-7540.json","vanir_signatures_modified":"2026-07-08T06:08:24Z"}},{"ranges":[{"type":"GIT","repo":"https://github.com/imagemagick/imagemagick6","events":[{"introduced":"0"},{"last_affected":"ac6fdfbc6a3cbd157ddf4be79c28e41eeb8f5e03"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"6.9.4-9"}]}}],"versions":["6.9.4-9","6.9.4-8","6.9.4-7","6.9.4-6","6.9.4-5","6.9.4-4","6.9.4-3","6.9.4-2","6.9.4-1","6.9.4-0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-7540.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}