The Imager package before 1.025 for Perl has a heap-based buffer overflow leading to denial of service, or possibly unspecified other impact, when the trim() method is called on a crafted input image.
https://metacpan.org/release/TONYC/Imager-1.025/changes
https://github.com/tonycoz/imager/issues/534
https://github.com/briandfoy/cpan-security-advisory/issues/171
https://github.com/briandfoy/cpan-security-advisory/issues/167