CVE-2023-39359
published high CVSS 3.1 · 8.8Authenticated SQL injection vulnerability in graphs.php in Cacti
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Cacti | — | cacti< 1.2.25 | Affected | Not stated | GitHub_M |
| cacti | — | cacti0 to < 1.2.25 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Alpine Linux | edge | cacti | Fixed | 1.2.25-r0 | Package fix record |
| Debian | bookworm | cacti | Advisory build | 1.2.24+ds1-1+deb12u1 | DSA-5550-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cactinoarch | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| Alpine Linux | v3.18 | cacti | Fixed | 1.2.26-r0 | Package fix record |
| Alpine Linux | v3.19 | cacti | Fixed | 1.2.25-r0 | Package fix record |
| Alpine Linux | v3.20 | cacti | Fixed | 1.2.25-r0 | Package fix record |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | cacti | Fixed | 1.2.25-r0 | Package fix record |
| Alpine Linux | v3.22 | cacti | Fixed | 1.2.25-r0 | Package fix record |
| Alpine Linux | v3.23 | cacti | Fixed | 1.2.25-r0 | Package fix record |
| Alpine Linux | v3.24 | cacti | Fixed | 1.2.25-r0 | Package fix record |
| Debian | bullseye | cacti | Advisory build | 1.2.16+ds1-2+deb11u2 | DSA-5550-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cactinoarch | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactiaarch64 | Advisory build | 1.2.25-2.1 | OPENSUSE-SU-2024:13203-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactippc64le | Advisory build | 1.2.25-2.1 | OPENSUSE-SU-2024:13203-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactis390x | Advisory build | 1.2.25-2.1 | OPENSUSE-SU-2024:13203-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactix86_64 | Advisory build | 1.2.25-2.1 | OPENSUSE-SU-2024:13203-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cacti-spineaarch64 | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cacti-spinei586 | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cacti-spineppc64le | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cacti-spines390x | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cacti-spinex86_64 | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spineaarch64 | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spinei586 | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spineppc64le | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spines390x | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | cacti-spinex86_64 | Advisory build | 1.2.25-bp155.2.3.1 | OPENSUSE-SU-2023:0275-1 |
Description
Cacti is an open source operational monitoring and fault management framework. An authenticated SQL injection vulnerability was discovered which allows authenticated users to perform privilege escalation and remote code execution. The vulnerability resides in the `graphs.php` file. When dealing with the cases of ajax_hosts and ajax_hosts_noany, if the `site_id` parameter is greater than 0, it is directly reflected in the WHERE clause of the SQL statement. This creates an SQL injection vulnerability. This issue has been addressed in version 1.2.25. Users are advised to upgrade. There are no known workarounds for this vulnerability.
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
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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.25 (affected) | GitHub_M · cna |
| cacti | cacti | 0 to < 1.2.25 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
5- https://github.com/Cacti/cacti/security/advisories/GHSA-q4wh-3f9w-836h
- https://lists.fedoraproject.org/archives/list/[email protected]/message/CFH3J2WVBKY4ZJNMARVOWJQK6PSLPHFH/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WOQFYGLZBAWT4AWNMO7DU73QXWPXTCKH/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/WZGB2UXJEUYWWA6IWVFQ3ZTP22FIHMGN/
- https://www.debian.org/security/2023/dsa-5550
Provider assertions
3GitHub_M · cna
Authenticated SQL injection vulnerability in graphs.php in Cacti
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3f5e3145225fcb9edca1974512734d69fad6f940343b403e22c11cd02cdebe72
- Ingested
- 23 Sep 2026, 08:10:43 UTC
- Source record
- Official CVE record