SQL injection vulnerability in the host_new_graphs function in graphs_new.php in Cacti 0.8.8f and earlier allows remote authenticated users to execute arbitrary SQL commands via the cg_g parameter in a save action.
https://security.gentoo.org/glsa/201607-05
http://www.securitytracker.com/id/1034573
http://www.openwall.com/lists/oss-security/2016/01/04/9