CVE-2016-2559 phpMyAdmin Cross-site scripting (XSS) vulnerability in SQL parser
Authenticated attackers can inject arbitrary web script or HTML via crafted queries in phpMyAdmin's SQL parser, potentially leading to session hijacking or malicious actions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2016-2559?
CVE-2016-2559 is a medium-severity cross-site scripting vulnerability in Phpmyadmin Phpmyadmin, published on 1 Mar 2016. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Cross-site scripting (XSS) vulnerability in the format function in libraries/sql-parser/src/Utils/Error.php in the SQL parser in phpMyAdmin 4.5.x before 4.5.5.1 allows remote authenticated users to inject arbitrary web script or HTML via a crafted query.
Weakness: CWE-79
Which versions are affected by CVE-2016-2559?
2 open source packages ship an affected version, including phpmyadmin/phpmyadmin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
phpmyadmin/phpmyadmin Packagist | From 4.5 | 4.5.5.1 |
phpmyadmin/phpmyadmin Packagist | From 4.5 | 4.5.5.1 |
Products include Phpmyadmin Phpmyadmin.
How do I fix CVE-2016-2559?
Upgrade phpmyadmin/phpmyadmin to 4.5.5.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2016-2559 being exploited?
There is no known exploitation of CVE-2016-2559 in the wild and no public exploit code.
Other vulnerabilities in Phpmyadmin Phpmyadmin
Sources
Also known as DEBIAN-CVE-2016-2559, GHSA-7rf8-9r8f-qf59, UBUNTU-CVE-2016-2559.