The DBD::mysql module before 4.039 for Perl, when using server-side prepared statement support, allows attackers to cause a denial of service (out-of-bounds read) via vectors involving an unaligned number of placeholders in WHERE condition and output fields in SELECT expression.
https://security.gentoo.org/glsa/201701-51
https://github.com/perl5-dbi/DBD-mysql/commit/793b72b1a0baa5070adacaac0e12fd995a6fbabe
http://www.securityfocus.com/bid/94350
http://www.openwall.com/lists/oss-security/2016/11/16/1
http://cpansearch.perl.org/src/CAPTTOFU/DBD-mysql-4.039/Changes