CWE
89
Advisory Published
Updated

CVE-2024-31458: Cacti SQL Injection vulnerability in lib/html_form_templates.php by reading dirty data stored in database

First published: Mon May 13 2024(Updated: )

Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, some of the data stored in `form_save()` function in `graph_template_inputs.php` is not thoroughly checked and is used to concatenate the SQL statement in `draw_nontemplated_fields_graph_item()` function from `lib/html_form_templates.php` , finally resulting in SQL injection. Version 1.2.27 contains a patch for the issue.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
debian/cacti<=1.2.16+ds1-2+deb11u3<=1.2.24+ds1-1+deb12u2
1.2.16+ds1-2+deb11u4
1.2.24+ds1-1+deb12u4
1.2.27+ds1-2
Cacti<1.2.27
Fedora=39

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-31458?

    CVE-2024-31458 has a moderate severity level due to its potential for SQL injection vulnerabilities.

  • How do I fix CVE-2024-31458?

    To mitigate CVE-2024-31458, upgrade to Cacti version 1.2.27 or higher.

  • What versions are affected by CVE-2024-31458?

    CVE-2024-31458 affects Cacti versions prior to 1.2.27, including 1.2.16+ds1-2+deb11u3 and 1.2.24+ds1-1+deb12u2.

  • What components are vulnerable in CVE-2024-31458?

    The vulnerability resides in the `form_save()` function within `graph_template_inputs.php`, where the data lacks proper validation.

  • Is CVE-2024-31458 specific to certain operating systems?

    CVE-2024-31458 affects multiple operating systems including Debian and Fedora systems running vulnerable versions of Cacti.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203