CVE-2011-2718: Phpmyadmin/phpmyadmin Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-xhqq-554j-p4x8
CWE-22
Published
Advisory Summary

CVE-2011-2718 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Phpmyadmin/phpmyadmin libraries in the Packagist ecosystem. The issue involves phpmyadmin directory traversal vulnerability. Remediation is available by upgrading affected packages to version 3.4.3.2.

CVE-2011-2718 at a Glance

CVE Identifier CVE-2011-2718
GHSA Identifier GHSA-xhqq-554j-p4x8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Phpmyadmin/phpmyadmin
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2011-2718

To remediate this vulnerability, upgrade all affected Phpmyadmin/phpmyadmin dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

phpmyadmin/phpmyadmin fixed: 3.4.3.2
Upgrade phpmyadmin/phpmyadmin to 3.4.3.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for phpmyadmin/phpmyadmin

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-2718, inspect your project dependencies for Phpmyadmin/phpmyadmin:

inspect dependencies for phpmyadmin/phpmyadmin

Analyze the terminal output to locate any version of Phpmyadmin/phpmyadmin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.3.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Phpmyadmin/phpmyadmin, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Multiple directory traversal vulnerabilities in the relational schema implementation in phpMyAdmin 3.4.x before 3.4.3.2 allow remote authenticated users to include and execute arbitrary local files via directory traversal sequences in an export type field, related to (1) `libraries/schema/User_Schema.class.php` and (2) `schema_export.php`.

CVE-2011-2718 Affected Phpmyadmin/phpmyadmin Versions

1 component(s)
Fixed Versions:
3.4.3.2
Product / Package Ecosystem Affected Versions Fixed Version
phpmyadmin/phpmyadmin
Packagist
≥ 3.4
< 3.4.3.2
3.4.3.2

References

NVD — CVE-2011-2718 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-2718
Security Fix Commit FIX COMMIT
https://github.com/phpmyadmin/phpmyadmin/commit/3ae58f0cd6b89ad4767920f9b214c38d3f6d4393
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=725383
exchange.xforce.ibmcloud.com/vulnerabilities/687... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/68768
Phpmyadmin/phpmyadmin Source Repository REPOSITORY
https://github.com/phpmyadmin/composer
Phpmyadmin/phpmyadmin Security Information SECURITY
https://web.archive.org/web/20120111084137/http://www.securityfocus.com/bid/48874
Phpmyadmin/phpmyadmin Security Information SECURITY
https://web.archive.org/web/20121105034518/http://www.mandriva.com/en/support/security/advisories?name=MDVSA-2011:124
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-August/063410.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-August/063418.html
phpmyadmin.git.sourceforge.net/git/gitweb.cgi WEB
http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin%3Ba=commit%3Bh=3ae58f0cd6b89ad4767920f9b214c38d3f6d4393
phpmyadmin.git.sourceforge.net/git/gitweb.cgi WEB
http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commit;h=3ae58f0cd6b89ad4767920f9b214c38d3f6d4393
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/07/25/4
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/07/26/10
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.phpmyadmin.net/home_page/security/PMASA-2011-11.php

Frequently Asked Questions

What is CVE-2011-2718?
CVE-2011-2718 is a security vulnerability in Phpmyadmin/phpmyadmin involving phpMyAdmin Directory Traversal Vulnerability under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Phpmyadmin/phpmyadmin versions are affected?
Affected versions include releases prior to 3.4.3.2 across affected packages: phpmyadmin/phpmyadmin.
What version fixes CVE-2011-2718?
Upgrading to 3.4.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phpmyadmin/phpmyadmin affected?
Yes, phpmyadmin/phpmyadmin is affected in releases prior to 3.4.3.2. Upgrade your dependency to 3.4.3.2 or later.
What CWE is associated with CVE-2011-2718?
CVE-2011-2718 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Packagist dependencies for CVE-2011-2718?
Run the dependency tree command: 'inspect dependencies for phpmyadmin/phpmyadmin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xhqq-554j-p4x8",
  "modified" : "2024-01-15T18:15:49Z",
  "published" : "2022-05-17T01:54:30Z",
  "aliases" : [ "CVE-2011-2718" ],
  "summary" : "phpMyAdmin Directory Traversal Vulnerability",
  "details" : "Multiple directory traversal vulnerabilities in the relational schema implementation in phpMyAdmin 3.4.x before 3.4.3.2 allow remote authenticated users to include and execute arbitrary local files via directory traversal sequences in an export type field, related to (1) `libraries/schema/User_Schema.class.php` and (2) `schema_export.php`.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpmyadmin/phpmyadmin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4"
      }, {
        "fixed" : "3.4.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-2718"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpmyadmin/phpmyadmin/commit/3ae58f0cd6b89ad4767920f9b214c38d3f6d4393"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=725383"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/68768"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/phpmyadmin/composer"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120111084137/http://www.securityfocus.com/bid/48874"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20121105034518/http://www.mandriva.com/en/support/security/advisories?name=MDVSA-2011:124"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-August/063410.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-August/063418.html"
  }, {
    "type" : "WEB",
    "url" : "http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin%3Ba=commit%3Bh=3ae58f0cd6b89ad4767920f9b214c38d3f6d4393"
  }, {
    "type" : "WEB",
    "url" : "http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commit;h=3ae58f0cd6b89ad4767920f9b214c38d3f6d4393"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2011/07/25/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2011/07/26/10"
  }, {
    "type" : "WEB",
    "url" : "http://www.phpmyadmin.net/home_page/security/PMASA-2011-11.php"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-15T18:15:49Z",
    "nvd_published_at" : "2011-08-01T19:55:00Z"
  }
}