Cacti command injection in cmd_realtime.php
Cacti provides an operational monitoring and fault management framework. A command injection vulnerability on the 1.3.x DEV branch allows any unauthenticated user to execute arbitrary command on the server when `register_argc_argv` option of PHP is `On`. In `cmd_realtime.php` line 119, the `$poller_id` used as part of the command execution is sourced from `$_SERVER['argv']`, which can be controlled by URL when `register_argc_argv` option of PHP is `On`. And this option is `On` by default in many environments such as the main PHP Docker image for PHP. Commit 53e8014d1f082034e0646edc6286cde3800c683d contains a patch for the issue, but this commit was reverted in commit 99633903cad0de5ace636249de16f77e57a3c8fc.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-29895
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 08:47 UTC · Revision 1
Source evidence
Cacti command injection in cmd_realtime.php
core-osv · Original sourcePublished 13 May 2024, 14:33 UTC
Cacti provides an operational monitoring and fault management framework. A command injection vulnerability on the 1.3.x DEV branch allows any unauthenticated user to execute arbitrary command on the server when `register_argc_argv` option of PHP is `On`. In `cmd_realtime.php` line 119, the `$poller_id` used as part of the command execution is sourced from `$_SERVER['argv']`, which can be controlled by URL when `register_argc_argv` option of PHP is `On`. And this option is `On` by default in many environments such as the main PHP Docker image for PHP. Commit 53e8014d1f082034e0646edc6286cde3800c683d contains a patch for the issue, but this commit was reverted in commit 99633903cad0de5ace636249de16f77e57a3c8fc.
osv:CVE-2024-29895
Complete source record
{
"id": "1319015fd025695c7429e1365f6ef29da7f00da695de6c666458b26c4df3af8b",
"url": "https://osv.dev/vulnerability/CVE-2024-29895",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Cacti command injection in cmd_realtime.php",
"summary": "Cacti provides an operational monitoring and fault management framework. A command injection vulnerability on the 1.3.x DEV branch allows any unauthenticated user to execute arbitrary command on the server when `register_argc_argv` option of PHP is `On`. In `cmd_realtime.php` line 119, the `$poller_id` used as part of the command execution is sourced from `$_SERVER['argv']`, which can be controlled by URL when `register_argc_argv` option of PHP is `On`. And this option is `On` by default in many environments such as the main PHP Docker image for PHP. Commit 53e8014d1f082034e0646edc6286cde3800c683d contains a patch for the issue, but this commit was reverted in commit 99633903cad0de5ace636249de16f77e57a3c8fc.",
"evidence": "osv:CVE-2024-29895",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2024-29895",
"aliases": [
"CVE-2024-29895",
"GHSA-cr28-x256-xf5m"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cacti/cacti",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "53e8014d1f082034e0646edc6286cde3800c683d"
},
{
"fixed": "99633903cad0de5ace636249de16f77e57a3c8fc"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "99633903cad0de5ace636249de16f77e57a3c8fc"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"fixed": "53e8014d1f082034e0646edc6286cde3800c683d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "99633903cad0de5ace636249de16f77e57a3c8fc"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"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-29895.json"
}
}
],
"modified": "2026-10-28T02:30:50.259472964Z",
"provider": "osv",
"references": [
"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/cmd_realtime.php#L119",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29895.json",
"https://github.com/Cacti/cacti/security/advisories/GHSA-cr28-x256-xf5m",
"https://nvd.nist.gov/vuln/detail/CVE-2024-29895",
"https://github.com/Cacti/cacti/commit/53e8014d1f082034e0646edc6286cde3800c683d",
"https://github.com/Cacti/cacti/commit/99633903cad0de5ace636249de16f77e57a3c8fc"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "= 1.3.x DEV"
},
{
"last_affected": "= 1.3.x DEV"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29895.json"
}
},
"related_cves": [
{
"value": "CVE-2024-29895",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518799,
"published_at": "2024-05-13T14:33:27.594+00:00"
}