includes/content/gateway.inc.php in CubeCart 3.0.12 and earlier, when magic_quotes_gpc is disabled, uses an insufficiently restrictive regular expression to validate the gateway parameter, which allows remote attackers to conduct PHP remote file inclusion attacks.
http://www.securityfocus.com/bid/19782
http://www.gulftech.org/?node=research&article_id=00111-08282006&