{"uuid": "1a86a2b5-a412-4bde-9a0a-09d0441e4302", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2018-16509", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/fileformat/ghostscript_failed_restore.rb", "content": "{\"aliases\": [], \"arch\": \"cmd, x86, x64\", \"author\": [\"Tavis Ormandy\", \"wvu \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": false, \"default_credential\": false, \"description\": \"This module exploits a -dSAFER bypass in Ghostscript to execute\\n          arbitrary commands by handling a failed restore (grestore) in\\n          PostScript to disable LockSafetyParams and avoid invalidaccess.\\n\\n          This vulnerability is reachable via libraries such as ImageMagick.\", \"disclosure_date\": \"2018-08-21\", \"fullname\": \"exploit/multi/fileformat/ghostscript_failed_restore\", \"is_install_path\": true, \"mod_time\": \"2025-12-17 17:11:13 +0000\", \"name\": \"Ghostscript Failed Restore Command Execution\", \"needs_cleanup\": null, \"notes\": {\"RelatedModules\": [\"exploit/unix/fileformat/ghostscript_type_confusion\", \"exploit/unix/fileformat/imagemagick_delegate\"], \"Reliability\": [], \"SideEffects\": [], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/multi/fileformat/ghostscript_failed_restore.rb\", \"platform\": \"Linux,Unix,Windows\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"multi/fileformat/ghostscript_failed_restore\", \"references\": [\"CVE-2018-16509\", \"URL-https://seclists.org/oss-sec/2018/q3/142\", \"URL-https://bugs.chromium.org/p/project-zero/issues/detail?id=1640\"], \"rport\": null, \"session_types\": false, \"targets\": [\"Unix (In-Memory)\", \"PowerShell (In-Memory)\", \"Linux (Dropper)\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:49:38.824105Z"}