An issue was discovered in Cacti 1.2.x through 1.2.16. A SQL injection vulnerability in data_debug.php allows remote authenticated attackers to execute arbitrary SQL commands via the site_id parameter. This can lead to remote code execution.
https://security.gentoo.org/glsa/202101-31
https://github.com/Cacti/cacti/issues/4022
https://asaf.me/2020/12/15/cacti-1-2-0-to-1-2-16-sql-injection/