CVE-2024-25641
published critical CVSS 3.1 · 9.1Cacti RCE vulnerability when importing packages
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Cacti | — | cacti< 1.2.27 | Affected | Not stated | GitHub_M |
| the_cacti_group | — | cacti0 to < 1.2.27 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Alpine Linux | edge | cacti | Fixed | 1.2.27-r0 | Package fix record |
| Debian | bullseye | cacti | Advisory build | 1.2.16+ds1-2+deb11u4 | DLA-3884-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cactinoarch | Advisory build | 1.2.27-bp155.2.9.1 | OPENSUSE-SU-2024:0274-1 |
| Ubuntu | bionic | cacti | Advisory build | 1.1.38+ds1-1ubuntu0.1~esm3 | USN-6969-1 |
| Alpine Linux | v3.19 | cacti | Fixed | 1.2.27-r0 | Package fix record |
| Alpine Linux | v3.20 | cacti | Fixed | 1.2.27-r0 | Package fix record |
Show 22 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | cacti | Fixed | 1.2.27-r0 | Package fix record |
| Alpine Linux | v3.22 | cacti | Fixed | 1.2.27-r0 | Package fix record |
| Alpine Linux | v3.23 | cacti | Fixed | 1.2.27-r0 | Package fix record |
| Alpine Linux | v3.24 | cacti | Fixed | 1.2.27-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cactinoarch | Advisory build | 1.2.27-bp156.2.3.1 | OPENSUSE-SU-2024:0276-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactiaarch64 | Advisory build | 1.2.27-1.1 | OPENSUSE-SU-2024:13962-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactippc64le | Advisory build | 1.2.27-1.1 | OPENSUSE-SU-2024:13962-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactis390x | Advisory build | 1.2.27-1.1 | OPENSUSE-SU-2024:13962-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactix86_64 | Advisory build | 1.2.27-1.1 | OPENSUSE-SU-2024:13962-1 |
| Ubuntu | focal | cacti | Advisory build | 1.2.10+ds1-1ubuntu1.1 | USN-6969-1 |
| Ubuntu | jammy | cacti | Advisory build | 1.2.19+ds1-2ubuntu1.1 | USN-6969-1 |
| Ubuntu | noble | cacti | Advisory build | 1.2.26+ds1-1ubuntu0.1 | USN-6969-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spineaarch64 | Advisory build | 1.2.27-bp155.2.9.1 | OPENSUSE-SU-2024:0274-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spinei586 | Advisory build | 1.2.27-bp155.2.9.1 | OPENSUSE-SU-2024:0274-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spineppc64le | Advisory build | 1.2.27-bp155.2.9.1 | OPENSUSE-SU-2024:0274-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spines390x | Advisory build | 1.2.27-bp155.2.9.1 | OPENSUSE-SU-2024:0274-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spinex86_64 | Advisory build | 1.2.27-bp155.2.9.1 | OPENSUSE-SU-2024:0274-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cacti-spineaarch64 | Advisory build | 1.2.27-bp156.2.3.1 | OPENSUSE-SU-2024:0276-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cacti-spinei586 | Advisory build | 1.2.27-bp156.2.3.1 | OPENSUSE-SU-2024:0276-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cacti-spineppc64le | Advisory build | 1.2.27-bp156.2.3.1 | OPENSUSE-SU-2024:0276-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cacti-spines390x | Advisory build | 1.2.27-bp156.2.3.1 | OPENSUSE-SU-2024:0276-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cacti-spinex86_64 | Advisory build | 1.2.27-bp156.2.3.1 | OPENSUSE-SU-2024:0276-1 |
Description
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, an arbitrary file write vulnerability, exploitable through the "Package Import" feature, allows authenticated users having the "Import Templates" permission to execute arbitrary PHP code on the web server. The vulnerability is located within the `import_package()` function defined into the `/lib/import.php` script. The function blindly trusts the filename and file content provided within the XML data, and writes such files into the Cacti base path (or even outside, since path traversal sequences are not filtered). This can be exploited to write or overwrite arbitrary files on the web server, leading to execution of arbitrary PHP code or other security impacts. Version 1.2.27 contains a patch for this issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Cacti | cacti | < 1.2.27 (affected) | GitHub_M · cna |
| the_cacti_group | cacti | 0 to < 1.2.27 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
5- http://seclists.org/fulldisclosure/2024/May/6
- https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210
- https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88
- https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/
Provider assertions
3GitHub_M · cna
Cacti RCE vulnerability when importing packages
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b3317cc2827cbfc31a43690639be3669ad224b0f1b28e9b60f32a69b438b8ffa
- Ingested
- 23 Sep 2026, 08:20:06 UTC
- Source record
- Official CVE record