Privilege escalation via unsanitized selectRole query fields
Published Nov 27, 2024 · Updated Dec 4, 2024
SQL injection in the user.get API of affected Zabbix releases allows remote authenticated users to escalate privileges. CUser::addRelatedObjects directly joins attacker-controlled selectRole field names into an SQL SELECT list instead of validating them against allowed role fields. The default User role is sufficient when API access is enabled, exposing database data and administrator sessions across 6.0.0 through 6.0.31, 6.4.0 through 6.4.16, and 7.0.0 through 7.0.1.
Summary
What happened
SQL injection in the user.get API of affected Zabbix releases allows remote authenticated users to escalate privileges. CUser::addRelatedObjects directly joins attacker-controlled selectRole field names into an SQL SELECT list instead of validating them against allowed role fields. The default User role is sufficient when API access is enabled, exposing database data and administrator sessions across 6.0.0 through 6.0.31, 6.4.0 through 6.4.16, and 7.0.0 through 7.0.1.
The record
- CVE
- CVE-2024-42327
- Published
- Nov 27, 2024
- Updated
- Dec 4, 2024
- Vendor
- Zabbix
- Product
- Zabbix
- Classifications
- CWE-89, CAPEC-233, T1068
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 27, 2024CVE publishedPublication date reported by the CVE source.
- Dec 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.0.0 <=6.0.31
- Affected versionversion=6.0.0 <=6.0.31 changes=[{"at":"6.0.32rc1","status":"unaffected"}]
- Affected versionversion=6.4.0 <=6.4.16
- Affected versionversion=6.4.0 <=6.4.16 changes=[{"at":"6.4.17rc1","status":"unaffected"}]
- Affected versionversion=7.0.0 <=7.0.1
- Affected versionversion=7.0.0 <=7.0.1 changes=[{"at":"7.0.2rc1","status":"unaffected"}]
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- MRLSECURITY user.get selectRole SQL injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo