SugarCRM prior to 8.0.4 and 9.x prior to 9.0.2 allows PHP code injection in the Emails module by a Regular user.
sugarcrm sugarcrm