SQL Injection vulnerability in automation_get_new_graphs_sql
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-31445
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:30 UTC · Revision 1
Source evidence
SQL Injection vulnerability in automation_get_new_graphs_sql
core-osv · Original sourcePublished 13 May 2024, 15:05 UTC
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.
osv:CVE-2024-31445
Complete source record
{
"id": "742ae9c76504fbb96be0480ca57de9967da48e93ef9f179717a45a3e4207fd48",
"url": "https://osv.dev/vulnerability/CVE-2024-31445",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "SQL Injection vulnerability in automation_get_new_graphs_sql",
"summary": "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.",
"evidence": "osv:CVE-2024-31445",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-31445",
"aliases": [
"CVE-2024-31445",
"GHSA-vjph-r677-6pcc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cacti/cacti",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b577c294214b7e65a7273031ef8f0045d2a0c5af"
},
{
"fixed": "fd93c6e47651958b77c3bbe6a01fff695f81e886"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.2.27"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "fd93c6e47651958b77c3bbe6a01fff695f81e886"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"release/1.2.26",
"release/1.2.25",
"release/1.2.24",
"release/1.2.23",
"release/1.2.22",
"release/1.2.21",
"release/1.2.20",
"release/1.2.19",
"releaes/1.2.19",
"release/1.2.18",
"release/1.2.17",
"rel-1.2.17",
"release/1.2.16",
"release/1.2.15",
"release/1.2.14",
"release/1.2.13",
"release/1.2.12",
"release/1.2.11",
"release/1.2.10",
"release/1.2.9",
"release/1.2.8",
"release/1.2.7",
"release/1.2.6",
"release/1.2.5",
"release/1.2.4",
"release/1.2.3",
"release/1.2.2",
"release/1.2.1",
"release/1.2.0",
"release/1.1.38",
"release/1.1.37",
"release/1.1.36",
"release/1.1.35",
"release/1.1.34",
"release/1.1.33",
"release/1.1.32",
"release/1.1.31",
"release/1.1.30",
"release/1.1.29",
"release/1.1.28",
"release/1.1.27",
"release/1.1.26",
"release/1.1.25",
"release/1.1.24",
"release/1.1.23",
"release/1.1.22",
"release/1.1.21",
"release/1.1.20",
"release/1.1.19",
"release/1.1.18",
"release/1.1.17",
"release/1.1.16",
"release/1.1.15",
"release/1.1.14",
"release/1.1.13",
"release/1.1.12",
"release/1.1.11",
"release/1.1.8",
"release/1.1.7",
"release/1.1.6",
"release/1.1.5",
"release/1.1.4",
"release/1.1.3",
"release/1.1.2",
"release/1.1.1",
"release/1.1.0",
"release/1.0.6",
"release/1.0.5",
"release/1.0.4",
"release/1.0.3",
"release/1.0.2",
"release/1.0.1",
"release/1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31445.json"
}
}
],
"modified": "2026-10-28T02:30:37.010523879Z",
"provider": "osv",
"references": [
"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L717",
"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L856",
"https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31445.json",
"https://github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc",
"https://nvd.nist.gov/vuln/detail/CVE-2024-31445",
"https://github.com/Cacti/cacti/commit/fd93c6e47651958b77c3bbe6a01fff695f81e886"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31445.json"
}
},
"related_cves": [
{
"value": "CVE-2024-31445",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504136,
"published_at": "2024-05-13T15:05:56.662+00:00"
}