CVE-2016-4338 SQL injection in n/a

High 8.1 Published Updated

Attackers can execute arbitrary code or SQL commands via the mysql.size parameter in Zabbix agent when using a non-bash shell.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-4338?

CVE-2016-4338 is a high-severity SQL injection vulnerability in Zabbix Zabbix, published on 23 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2016-4338?

It affects 1 product.

Products include Zabbix Zabbix.

How do I fix CVE-2016-4338?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2016-4338 being exploited?

There is no known exploitation of CVE-2016-4338 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

All Zabbix Zabbix vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-4338, GHSA-399r-wgcm-v67f, UBUNTU-CVE-2016-4338.

Is CVE-2016-4338 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free