CVE-2026-39894

Cacti: RRDtool metric shift via LC_NUMERIC locale comma decimal formatting

Published Jun 24, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
Description
Cacti is an open source performance and fault management framework. In versions 1.2.30 and below, the locale-dependent decimal formatting in rrdtool_function_update() can corrupt RRDtool metric values. The rrdtool_function_update() function checks metric values with is_numeric() and concatenates them into the RRDtool update command via PHP string interpolation. PHP's string cast of floats is locale-sensitive: if LC_NUMERIC uses comma as decimal separator (e.g., de_DE), 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.

Analysis

AI-generated

Technical impact

Locale-sensitive decimal formatting in the rrdtool_function_update() of Cacti versions 1.2.30 and earlier can corrupt RRDtool metric values. The function checks values with is_numeric() and then interpolates them into the RRDtool update command. PHP casts floating numbers according to the LC_NUMERIC locale; when the locale uses a comma as the decimal separator (for example, de_DE), a value of 1.5 becomes the string "1,5". RRDtool expects a dot as the decimal separator, so the metric data may be shifted into wrong columns or silently dropped. This defect results in data integrity problems but is not remotely exploitable and requires a server configured with a non-standard LC_NUMERIC locale. The weakness is represented by CWE‑474.

Affected Systems

Affected products include the Cacti performance and fault management framework. Versions 1.2.30 and earlier are vulnerable; the issue was fixed in Cacti 1.2.31.

Risk and Exploitability

The CVSS score is 2.9, indicating low severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Because the bug only manifests when the server locale is configured to use a comma decimal separator, the attack vector is local system configuration rather than remote exploitation. The risk is primarily a data integrity concern for monitoring dashboards and historical data analysis.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Cacti to version 1.2.31 or later.
  • Restart RRDtool and the Cacti web service to apply the update.
  • Configure the server's LC_NUMERIC locale to use '.' as the decimal separator to prevent future data corruption.

Generated by OpenCVE AI on June 25, 2026 at 00:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cacti
Cacti cacti
Vendors & Products Cacti
Cacti cacti
Type Values Removed Values Added
Description Cacti is an open source performance and fault management framework. In versions 1.2.30 and below, the locale-dependent decimal formatting in rrdtool_function_update() can corrupt RRDtool metric values. The rrdtool_function_update() function checks metric values with is_numeric() and concatenates them into the RRDtool update command via PHP string interpolation. PHP's string cast of floats is locale-sensitive: if LC_NUMERIC uses comma as decimal separator (e.g., de_DE), 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.
Title Cacti: RRDtool metric shift via LC_NUMERIC locale comma decimal formatting
Weaknesses CWE-474
References
Metrics cvssV3_1

{'score': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-474

    Use of Function with Inconsistent Implementations

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 25, 2026, 1:02 PM
Reserved
Apr 7, 2026, 8:32 PM
Status
Analyzed
Published
Jun 24, 2026, 10:16 PM
Modified
Jun 25, 2026, 8:19 PM