Description
The simplexml_load_string function in the XML import plug-in (libraries/import/xml.php) in phpMyAdmin 3.4.x before 3.4.7.1 and 3.3.x before 3.3.10.5 allows remote authenticated users to read arbitrary files via XML data containing external entity references, aka an XML external entity (XXE) injection attack.
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 | phpmyadmin | 4:3.4.7.1-1 | — |
| Debian 13 | phpmyadmin | 4:3.4.7.1-1 | — |
| Debian 12 | phpmyadmin | 4:3.4.7.1-1 | — |
| Debian 6.0 | phpmyadmin | 4:3.3.7-7 | DSA-2391-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | phpMyAdmin | 4.6.5.2-1.1 | openSUSE-SU-2024:10054-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
- phpMyAdmin 3.3.x/3.4.x - Local File Inclusion via XML External Entity Injection (Metasploit) EDB-18371 · webapps · Jan 14, 2012
GitHub 1 repository
-
SECFORCE/CVE-2011-4107 ★ 4 · Apr 19, 2017
phpMyAdmin 3.3.X and 3.4.X - Local File Inclusion
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpmyadmin/phpmyadmin | >= 3.4.0, < 3.4.7.1 | 3.4.7.1 | GHSA-q4mm-89q2-xffg |
| Packagist | phpmyadmin/phpmyadmin | >= 3.3.0, < 3.3.10.5 | 3.3.10.5 | GHSA-q4mm-89q2-xffg |
Advisories 2
- DSA-2391-1 phpmyadmin - several Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10054-1 phpMyAdmin-4.6.5.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- phpmyadmin-xml-info-disclosure(71108) vdb-entry
- 46447 third-party-advisory
- 76798 vdb-entry
- FEDORA-2011-15846 vendor-advisory
- [oss-security] 20111103 Re: CVE Request -- phpMyAdmin -- Arbitrary local file read flaw by loading XML strings / importing XML files mailing-list
- 20111102 PhpMyAdmin Arbitrary File Reading mailing-list
- http://www.phpmyadmin.net/home_page/security/PMASA-2011-17.php
- DSA-2391 vendor-advisory
- FEDORA-2011-15831 vendor-advisory
- 50497 vdb-entry
- MDVSA-2011:198 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=751112
- 8533 third-party-advisory
- [oss-security] 20111103 CVE Request -- phpMyAdmin -- Arbitrary local file read flaw by loading XML strings / importing XML files mailing-list
- http://www.wooyun.org/bugs/wooyun-2010-03185
- http://packetstormsecurity.org/files/view/106511/phpmyadmin-fileread.txt
- FEDORA-2011-15841 vendor-advisory