image-optimizer before 1.7.3 allows PHAR deserialization, e.g., the phar:// protocol in arguments to file_exists().
https://github.com/spatie/image-optimizer/pull/211
https://github.com/spatie/image-optimizer/issues/210
https://github.com/spatie/image-optimizer/compare/1.7.2...1.7.3