{"schemaVersion":3,"id":"CVE-2024-31445","aliases":["UBUNTU-CVE-2024-31445","DEBIAN-CVE-2024-31445"],"status":"published","duplicateOf":null,"title":null,"description":"Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, a SQL injection vulnerability in `automation_get_new_graphs_sql` function of `api_automation.php` allows authenticated users to exploit these SQL injection vulnerabilities to perform privilege escalation and remote code execution. In `api_automation.php` line 856, the `get_request_var('filter')` is being concatenated into the SQL statement without any sanitization. In `api_automation.php` line 717, The filter of `'filter'` is `FILTER_DEFAULT`, which means there is no filter for it. Version 1.2.27 contains a patch for the issue.","dates":{"published":"2024-05-13T15:05:56.662Z","modified":"2025-12-16T18:13:17.934Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.26154,"percentile":0.97993,"severity":"high","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.26154},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.26154,"percentile":0.97993}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.26154,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.26154,"percentile":0.97993}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_CACTI_CACTI","name":"Cacti","source":"github","url":"https://github.com/Cacti/cacti/issues/847","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"cacti","product":"cacti","name":"Cacti","label":"cacti","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.2.27","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.27","eol":null,"hubHref":"/vendor/cacti/cacti"},{"vendor":"debian","product":"cacti","name":"cacti","label":"cacti","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cacti","purlType":"deb","versions":[{"text":"< 1.2.24+ds1-1+deb12u3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.2.27+ds1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.24+ds1-1+deb12u3 | < 1.2.27+ds1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cacti","name":"cacti","label":"cacti","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cacti","purlType":"deb","versions":[{"text":"< 1.1.38+ds1-1ubuntu0.1~esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.2.10+ds1-1ubuntu1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.2.19+ds1-2ubuntu1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.2.26+ds1-1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.38+ds1-1ubuntu0.1~esm3 | < 1.2.10+ds1-1ubuntu1.1 | < 1.2.19+ds1-2ubuntu1.1 | < 1.2.26+ds1-1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"39","noFixRecorded":false,"fixedIn":null}],"versionsText":"39","eol":{"isEol":true,"eolDate":"2024-11-26T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"39","label":"39","eolFrom":"2024-11-26T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc","label":"github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Exploit","Vendor Advisory"]},{"url":"https://github.com/Cacti/cacti/commit/fd93c6e47651958b77c3bbe6a01fff695f81e886","label":"github.com/Cacti/cacti/commit/fd93c6e47651958b77c3bbe6a01fff695f81e886","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L717","label":"github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php","hostname":"github.com","tags":["X Refsource MISC","REPORT","Product"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L856","label":"github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php","hostname":"github.com","tags":["X Refsource MISC","REPORT","Product"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Product"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html","label":"lists.debian.org/debian-lts-announce/2024/09/msg00027.html","hostname":"lists.debian.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2024-31445","label":"ubuntu.com/security/CVE-2024-31445","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-31445","label":"www.cve.org/CVERecord?id=CVE-2024-31445","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6969-1","label":"ubuntu.com/security/notices/USN-6969-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-31445","label":"security-tracker.debian.org/tracker/CVE-2024-31445","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3884-1","OPENSUSE-SU-2024:0274-1","OPENSUSE-SU-2024:0276-1","OPENSUSE-SU-2024:13962-1","USN-6969-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:0274-1","OPENSUSE-SU-2024:0276-1","OPENSUSE-SU-2024:13962-1","USN-6969-1"]},"timeline":[{"kind":"published","date":"2024-05-13T15:05:56.662Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-12-16T18:13:17.934Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":50,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T14:32:24.979Z","stale":false,"partial":false}}