GHSA-q4mm-89q2-xffg CVE-2011-4107
phpMyAdmin vulnerable to XML external entity (XXE) injection attack
- Severity
- 6.5 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 12.68%
- Chance of exploitation in the next 30 days. Higher than 96.26% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-611 Improper Restriction of XML External Entity Reference
- Fix
3.4.7.1- Upgrade phpmyadmin/phpmyadmin to this version or later
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.
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| phpmyadmin/phpmyadmin | >= 3.4.0, < 3.4.7.1 |
3.4.7.1 |
| phpmyadmin/phpmyadmin | >= 3.3.0, < 3.3.10.5 |
3.3.10.5 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
phpmyadmin/phpmyadmin Packagist → 3.4.7.1
- composer
composer require phpmyadmin/phpmyadmin:^3.4.7.1
Severity breakdown
CVSS 3.1 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Weakness
CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
How to prevent it
- Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.
CWE-611: Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
How to prevent it
- Implementation, System Configuration: Many XML parsers and validators can be configured to disable external entity expansion.
References
Advisories
Packages
Other links
- github.com/phpmyadmin/phpmyadmin/commit/2fbf631384fd8cded55f4500cb87b129442f9ed2
- github.com/phpmyadmin/phpmyadmin/commit/34d99de000de9d15cfdf5e9cc8b7682d51110bbd
- github.com/phpmyadmin/phpmyadmin/commit/5fa86b8e81565c15ddbc359e8f59ecd829a2b717
- github.com/phpmyadmin/phpmyadmin/commit/a5e206fbd2ca814042cfc1bb7dd3b40c28ce3fb5
- bugzilla.redhat.com/show_bug.cgi
- exchange.xforce.ibmcloud.com/vulnerabilities/71108
- lists.fedoraproject.org/pipermail/package-announce/2011-November/069625.html
- lists.fedoraproject.org/pipermail/package-announce/2011-November/069635.html
- lists.fedoraproject.org/pipermail/package-announce/2011-November/069649.html
- packetstormsecurity.org/files/view/106511/phpmyadmin-fileread.txt
- seclists.org/fulldisclosure/2011/Nov/21
- securityreason.com/securityalert/8533
- debian.org/security/2012/dsa-2391
- openwall.com/lists/oss-security/2011/11/03/3
- openwall.com/lists/oss-security/2011/11/03/5
- phpmyadmin.net/home_page/security/PMASA-2011-17.php
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-222v-cx2c-q2f5 phpMyAdmin XSS when checking tables | Medium | Also affects phpmyadmin/phpmyadmin |
| GHSA-6hr3-44gx-g6wh Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin | Medium | Also affects phpmyadmin/phpmyadmin |
| GHSA-prcg-mc23-hgjh phpmyadmin contains SQL Injection vulnerability | Critical | Also affects phpmyadmin/phpmyadmin |
| GHSA-4c9q-64gq-xhx4 phpMyAdmin Cross-Site Request Forgery (CSRF) | Medium | Also affects phpmyadmin/phpmyadmin |
| GHSA-7ff4-cv53-4cjq phpMyAdmin SQL injection vulnerability | Critical | Also affects phpmyadmin/phpmyadmin |
| GHSA-6349-53vr-7hcr phpMyAdmin Cross-site Scripting (XSS) | Medium | Also affects phpmyadmin/phpmyadmin |
| GHSA-h65r-8fp8-w7cx phpMyAdmin SQL Injection | High | Also affects phpmyadmin/phpmyadmin |
| GHSA-fcww-8wvc-38q9 phpMyAdmin SQL injection vulnerability | Medium | Also affects phpmyadmin/phpmyadmin |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor