CVE-2019-6799 phpMyAdmin Arbitrary file read vulnerability

Medium 5.9 Published Updated

An attacker can read arbitrary files on the server via a rogue MySQL server when AllowArbitraryServer is enabled in phpMyAdmin.

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

What is CVE-2019-6799?

CVE-2019-6799 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 26 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in phpMyAdmin before 4.8.5. When the AllowArbitraryServer configuration setting is set to true, with the use of a rogue MySQL server, an attacker can read any file on the server that the web server's user can access. This is related to the mysql.allow_local_infile PHP configuration, and the inadvertent ignoring of "options(MYSQLI_OPT_LOCAL_INFILE" calls.

Which versions are affected by CVE-2019-6799?

2 open source packages ship an affected version, including phpmyadmin/phpmyadmin. It affects 2 products.

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistFrom 4.84.8.5
phpmyadmin/phpmyadmin PackagistFrom 4.84.8.5

Products include Debian Debian Linux, Phpmyadmin Phpmyadmin.

How do I fix CVE-2019-6799?

Upgrade phpmyadmin/phpmyadmin to 4.8.5 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2019-6799 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-6799 exists.

Public exploit code: 1 Nuclei template.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-6799, DLA-1692-1, GHSA-c8wj-q36q-3wg4, UBUNTU-CVE-2019-6799.

Is CVE-2019-6799 in your software?

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

Check your SBOMs for free