{"id":604,"date":"2016-05-09T23:32:00","date_gmt":"2016-05-09T23:32:00","guid":{"rendered":"https:\/\/www.step3.net\/?p=604"},"modified":"2026-07-25T07:46:28","modified_gmt":"2026-07-25T07:46:28","slug":"imagetragick-%e5%8f%88%e3%81%ae%e5%90%8d%e3%82%92%e7%84%a1%e9%99%90%e5%9c%b0%e7%8d%84%e3%80%81%e3%80%81%e3%80%81","status":"publish","type":"post","link":"https:\/\/www.step3.net\/?p=604","title":{"rendered":"ImageTragick \u53c8\u306e\u540d\u3092\u7121\u9650\u5730\u7344\u3001\u3001\u3001"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Imagemagick_sshadow\" title=\"Imagemagick_sshadow\" src=\"https:\/\/www.step3.net\/wp-content\/uploads\/2026\/07\/imagemagick_sshadow.jpg\" border=\"0\"  \/><br \/>\n\u4eca\u65e5\u3082\u5e30\u5b85\u5f8c\u306e\u653e\u8ab2\u5f8c\u6d3b\u52d5\u304c\u91cd\u3044\u3002ImageMagic\u306b\u8106\u5f31\u6027\u304c\u6307\u6458\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u305f\u3081ImageMagic\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/www.jpcert.or.jp\/at\/2016\/at160021.html\">\u25a0ImageMagick \u306e\u8106\u5f31\u6027 (CVE-2016-3714) \u306b\u95a2\u3059\u308b\u6ce8\u610f\u559a\u8d77\uff08JPERT\/CC\uff09<\/a><br \/>\n\u79c1\u306eBlog\u306b\u63b2\u8f09\u3057\u3066\u3044\u308b\u753b\u50cf\u3001\u30d7\u30ec\u51e6\u7406\u3068\u3057\u3066ImageMagic\u3092shell\u306b\u7d44\u307f\u8fbc\u3093\u3067\u3064\u304b\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6545\u306b<u><strong>\u7dca\u6025\u4e8b\u614b\uff01\u7dca\u6025\u4e8b\u614b\uff01<\/strong><\/u><br \/>\n\u6307\u6458\u3055\u308c\u305f\u8106\u5f31\u6027\u81ea\u4f53\u306f\u3001\u79c1\u306e\u4f7f\u3044\u65b9\u3068\u3042\u307e\u308a\u3001\u95a2\u4fc2\u3057\u306a\u3044\u3082\u306e\u306e\u3001\u5ff5\u306e\u305f\u3081\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3067\u306f\u809d\u8981\u3002<br \/>\nImageMagic\u3054\u672c\u5bb6\u304b\u3089\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u5357\u7121\u963f\u5f25\u9640\u3001\u304a\u3063\u3068\u3001\u305d\u3046\u3067\u306f\u306a\u3044\u546a\u6587\u3092\u5531\u3048\u308b\u3002<br \/>\n$ cd ~Downloads\/ImageMagick-7.0.1-2<br \/>\n$ .\/config<br \/>\n$ make<br \/>\n$ sudo make install<br \/>\n\u5931\u6557\u3002<br \/>\n$identify -version<br \/>\n\u53e4\u3044\uff01<br \/>\nPATH\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306e\/usr\/local\/\u3092\u5411\u3044\u3066\u3044\u306a\u3044\u3002<br \/>\n\u4fee\u6b63\u3002<br \/>\n\u3044\u3064\u3082\u4f7f\u3063\u3066\u3044\u308bshell\u3092\u5b9f\u884c<br \/>\n\u5931\u6557\u3002<br \/>\ndelegete\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306bjpeg\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3002<br \/>\n\u306a\u306b\u30fc\u30fc\u30fc\uff01\u632f\u308a\u51fa\u3057\u306b\u623b\u308b\u3002\u3053\u308c\u304c\u304d\u3064\u3044\u3002<br \/>\ndownload \u3057\u305ftarball\u5185\u306einstall-mac.txt\u3092\u8aad\u307f\u305d\u306e\u3068\u304a\u308a\u3001\u546a\u6587\u3092\u5531\u3048\u308b\u3002<br \/>\n$sudo port selfupdate<br \/>\n\u4e45\u3057\u3076\u308a\u306bport\u3092\u4f7f\u3046\u306e\u3067\u3001port\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u53e4\u3044\uff01<br \/>\nupdate\u304c\u5fc5\u8981\u3002\u3002<br \/>\n$sudo port -v install freetype +bytecode<br \/>\n\u9577\u3044\u3001\u3072\u305f\u3059\u3089\u8d70\u308b\u3002\u3002\u3002<br \/>\n$sudo port -v install librsvg<br \/>\nsvg\u30d5\u30a1\u30a4\u30eb\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u3044\u308b\u3057\u3001<br \/>\n$sudo port -v install graphviz +gs +wmf +jbig +jpeg2 +lcms<br \/>\ngs\u7cfb\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u3044\u308b\u3057\u3001<br \/>\n$sudo port install jpeg<br \/>\n\u305d\u3057\u3066jpeg\u3082\u3044\u308b\u3057\u3001<br \/>\n$cd ~Downloads\/ImageMagick-7.0.1-2<br \/>\n\u3088\u3046\u3084\u304fconfigure &#038; make<br \/>\n$.\/configure &#8211;prefix=\/opt &#8211;with-quantum-depth=16 \\<br \/>\n&#8211;disable-dependency-tracking &#8211;without-perl<br \/>\n$make<br \/>\n$sudo make install<br \/>\n\/opt\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fImagemagic\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306bPATH\u3092\u901a\u3057\u3001<br \/>\n$identify -version<br \/>\n\u3088\u3057\u3088\u3057\u3001\u6700\u65b0\u7248\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3002<br \/>\n$convert -list format<br \/>\n\u3088\u3057\u3088\u3057\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306bjpeg\u3082tiff\u3082\u307f\u3048\u3066\u304d\u305f\u3002<br \/>\n\/opt\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fImagemagic\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306bPATH\u3092\u901a\u3057\u3001<br \/>\n\u3044\u3064\u3082\u306eshell\u304c\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\/usr\/local\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3001\u5f8c\u7247\u4ed8\u3051\u3092\u3061\u3083\u3093\u3068\u3057\u3066\u3002<br \/>\n\u73fe\u72b6\u5fa9\u5e30\u3002<br \/>\n\u3075\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u30fc\u3002<br \/>\n\u3068\u304a\u3082\u3063\u305f\u3089\u3001\u4eca\u5ea6\u306femacs\u304c\u52d5\u304b\u3093\uff01\uff01\uff01<br \/>\n$ emacs -nw<br \/>\ndyld: Library not loaded: \/opt\/local\/lib\/libMagickWand-6.Q16.1.dylib<br \/>\nReferenced from: \/usr\/local\/bin\/emacs<br \/>\nReason: image not found<br \/>\nTrace\/BPT trap: 5<br \/>\n1:wq<br \/>\n\u304c\u30fc\u30fc\u30fc\u3093\u3002<br \/>\n\u3042\u30fc\u3001dyld\u306ePATH\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u305f\u304b\u3089\u306d<br \/>\n\u3053\u306e\u7121\u9650\u5730\u7344\u3002<br \/>\n\u4e00\u6628\u65e5\u307e\u3068\u3081\u305f\u624b\u9806\u3067emacs\u3092\u518dbuild\u3057\u3001\u4eca\u5ea6\u3053\u305d\u73fe\u72b6\u5fa9\u5e30\u5b8c\u4e86\u3002<br \/>\n\u56e0\u5faa\u82df\u4e14\uff08\u3044\u3093\u3058\u3085\u3093\u3053\u3046\u3057\u3087\uff09\u306e\u307e\u307e\u3001<br \/>\n\u6c7a\u3057\u3066\u653e\u7f6e\u3057\u306a\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u3082\u5e30\u5b85\u5f8c\u306e\u653e\u8ab2\u5f8c\u6d3b\u52d5\u304c\u91cd\u3044\u3002ImageMagic\u306b\u8106\u5f31\u6027\u304c\u6307\u6458\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u305f\u3081ImageMagic\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002 \u25a0ImageMagick \u306e\u8106\u5f31\u6027 (CVE-2016-37 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.step3.net\/index.php?rest_route=\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.step3.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.step3.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.step3.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.step3.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=604"}],"version-history":[{"count":1,"href":"https:\/\/www.step3.net\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":2566,"href":"https:\/\/www.step3.net\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions\/2566"}],"wp:attachment":[{"href":"https:\/\/www.step3.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.step3.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.step3.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}