Filters apply as you choose them.
The ghostscript command with the -dSAFER option allows remote attackers to execute commands.