CVE-2026-39894: Cacti: RRDtool metric shift via LC_NUMERIC locale comma decimal formatting

Published Jun 24, 2026
·
Updated

Cacti is an open source performance and fault management framework. In versions 1.2.30 and below, the locale-dependent decimal formatting in rrdtoolfunctionupdate() can corrupt RRDtool metric values. The rrdtoolfunctionupdate() function checks metric values with isnumeric() and concatenates them into the RRDtool update command via PHP string interpolation. PHP's string cast of floats is locale-sensitive: if LCNUMERIC uses comma as decimal separator (e.g., deDE), a value of 1.5 becomes "1,5". RRDtool expects . as decimal separator, causing metric data to shift into wrong columns or be silently dropped. No setlocale() reset is present in the update path. This causes a data integrity issue, but is not remotely exploitable; it requires server locale misconfiguration. The issue has been fixed in version 1.2.31.

Affected Software

2 affected components
Cacti Cacti<=1.2.30
Cacti Cacti<1.2.31

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Cacti to a version that resolves this vulnerability.

    Fixed in 1.2.31
  2. Configuration

    Ensure the server/PHP locale (LC_NUMERIC) does not use a comma as the decimal separator for Cacti’s rrdtool_function_update() path; RRDtool expects '.' so values like 1.5 must not become "1,5".

    PHP/Server locale LC_NUMERIC decimal separator = dot (.)

Event History

Jun 24, 2026
CVE Published
via MITRE·09:55 PM
Data Sourced
via MITRE·09:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39894?

The severity of CVE-2026-39894 is classified as low, with a score of 2.9.

2

What versions of Cacti are affected by CVE-2026-39894?

CVE-2026-39894 affects Cacti versions 1.2.30 and below.

3

How do I fix CVE-2026-39894?

To fix CVE-2026-39894, upgrade to a version of Cacti that is higher than 1.2.30.

4

What kind of vulnerability is CVE-2026-39894?

CVE-2026-39894 is a locale-dependent decimal formatting issue that can corrupt RRDtool metric values.

5

What components of Cacti does CVE-2026-39894 impact?

CVE-2026-39894 specifically impacts the rrdtool_function_update() in 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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203