Description
The mysql user parameter configuration script (userparameter_mysql.conf) in the agent in Zabbix before 2.0.18, 2.2.x before 2.2.13, and 3.0.x before 3.0.3, when used with a shell other than bash, allows context-dependent attackers to execute arbitrary code or SQL commands via the mysql.size parameter.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | zabbix | 1:3.0.3+dfsg-1 | — |
| Debian 13 | zabbix | 1:3.0.3+dfsg-1 | — |
| Debian 12 | zabbix | 1:3.0.3+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | zabbix | 1:4.0.17+dfsg-1ubuntu0.1~esm1 | USN-4767-1 |
| Ubuntu Pro 18.04 LTS | zabbix | 1:3.0.12+dfsg-1ubuntu0.1~esm3 | USN-4767-1 |
| Ubuntu Pro 16.04 LTS | zabbix | 1:2.4.7+dfsg-2ubuntu2.1+esm3 | USN-4767-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | zabbix | 1:2.2.2+dfsg-1ubuntu1+esm1 | USN-4767-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Zabbix Agent 3.0.1 - 'mysql.size' Shell Command Injection EDB-39769 · local · May 4, 2016
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- USN-4767-1 zabbix vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
References
- http://packetstormsecurity.com/files/136898/Zabbix-Agent-3.0.1-mysql.size-Shell-Command-Injection.html
- 39769 exploit
- 20160503 CVE-2016-4338: Zabbix Agent 3.0.1 mysql.size shell command injection mailing-list
- https://support.zabbix.com/browse/ZBX-10741
- https://www.zabbix.com/documentation/2.2/manual/introduction/whatsnew2213#miscellaneous_improvements
- https://www.zabbix.com/documentation/3.0/manual/introduction/whatsnew303#miscellaneous_improvements
- 20160503 CVE-2016-4338: Zabbix Agent 3.0.1 mysql.size shell command injection mailing-list
- https://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew2018#miscellaneous_improvements
- 89631 vdb-entry
- GLSA-201612-42 vendor-advisory