CVE-2011-2506: Phpmyadmin/phpmyadmin PhpMyAdmin Vulnerable To Static Code Vulnerability

HIGH
Advisory Identifier: GHSA-p6h7-29r2-g88f
CWE-94
Published
Advisory Summary

CVE-2011-2506 is a HIGH phpmyadmin vulnerable to static code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Phpmyadmin/phpmyadmin libraries in the Packagist ecosystem. The issue involves phpmyadmin vulnerable to static code injection. Remediation is available by upgrading affected packages to version 3.3.10.2, 3.4.3.1.

CVE-2011-2506 at a Glance

CVE Identifier CVE-2011-2506
GHSA Identifier GHSA-p6h7-29r2-g88f
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Phpmyadmin/phpmyadmin
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2011-2506

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.3.10.2
Upgrade phpmyadmin/phpmyadmin to 3.3.10.2
phpmyadmin/phpmyadmin fixed: 3.4.3.1
Upgrade phpmyadmin/phpmyadmin to 3.4.3.1
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-2506, 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.3.10.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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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

`setup/lib/ConfigGenerator.class.php` in phpMyAdmin 3.x before 3.3.10.2 and 3.4.x before 3.4.3.1 does not properly restrict the presence of comment closing delimiters, which allows remote attackers to conduct static code injection attacks by leveraging the ability to modify the SESSION superglobal array.

CVE-2011-2506 Affected Phpmyadmin/phpmyadmin Versions

2 component(s)
Fixed Versions:
3.3.10.23.4.3.1
Product / Package Ecosystem Affected Versions Fixed Version
phpmyadmin/phpmyadmin
Packagist
≥ 3.0
< 3.3.10.2
3.3.10.2
phpmyadmin/phpmyadmin
Packagist
≥ 3.4
< 3.4.3.1
3.4.3.1

References

NVD — CVE-2011-2506 NVD
https://nvd.nist.gov/vuln/detail/CVE-2011-2506
Security Fix Commit FIX COMMIT
https://github.com/phpmyadmin/phpmyadmin/commit/0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f
Security Fix Commit FIX COMMIT
https://github.com/phpmyadmin/phpmyadmin/commit/2e01647949df937040e73a94ce0bac0daecbdcf4
Phpmyadmin/phpmyadmin Source Repository REPOSITORY
https://github.com/phpmyadmin/composer
web.archive.org/web/20110712103138/... WEB
https://web.archive.org/web/20110712103138/http://www.xxor.se/advisories/phpMyAdmin_3.x_Multiple_Remote_Code_Executions.txt
Phpmyadmin/phpmyadmin Security Information SECURITY
https://web.archive.org/web/20111116172111/http://www.securityfocus.com/archive/1/518804/100/0/threaded
Phpmyadmin/phpmyadmin Security Information SECURITY
https://web.archive.org/web/20121105034518/http://www.mandriva.com/en/support/security/advisories?name=MDVSA-2011:124
ha.xxor.se/2011/07/phpmyadmin-... WEB
http://ha.xxor.se/2011/07/phpmyadmin-3x-multiple-remote-code.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062719.html
phpmyadmin.git.sourceforge.net/git/gitweb.cgi WEB
http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commit;h=0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f
Phpmyadmin/phpmyadmin Security Information SECURITY
http://securityreason.com/securityalert/8306
Phpmyadmin/phpmyadmin Security Information SECURITY
http://typo3.org/teams/security/security-bulletins/typo3-sa-2011-008
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.debian.org/security/2011/dsa-2286
www.exploit-db.com/exploits/17514 WEB
http://www.exploit-db.com/exploits/17514
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/06/28/2
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/06/28/6
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/06/28/8
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.openwall.com/lists/oss-security/2011/06/29/11
Phpmyadmin/phpmyadmin Security Information SECURITY
http://www.phpmyadmin.net/home_page/security/PMASA-2011-6.php

Frequently Asked Questions

What is CVE-2011-2506?
CVE-2011-2506 is a security vulnerability in Phpmyadmin/phpmyadmin involving phpMyAdmin vulnerable to static code injection under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Phpmyadmin/phpmyadmin versions are affected?
Affected versions include releases prior to 3.3.10.2, 3.4.3.1 across affected packages: phpmyadmin/phpmyadmin.
What version fixes CVE-2011-2506?
Upgrading to 3.3.10.2, 3.4.3.1 (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.3.10.2, 3.4.3.1. Upgrade your dependency to 3.3.10.2, 3.4.3.1 or later.
What CWE is associated with CVE-2011-2506?
CVE-2011-2506 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2011-2506?
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-p6h7-29r2-g88f",
  "modified" : "2024-01-15T17:50:29Z",
  "published" : "2022-05-14T02:55:16Z",
  "aliases" : [ "CVE-2011-2506" ],
  "summary" : "phpMyAdmin vulnerable to static code injection",
  "details" : "`setup/lib/ConfigGenerator.class.php` in phpMyAdmin 3.x before 3.3.10.2 and 3.4.x before 3.4.3.1 does not properly restrict the presence of comment closing delimiters, which allows remote attackers to conduct static code injection attacks by leveraging the ability to modify the SESSION superglobal array.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpmyadmin/phpmyadmin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0"
      }, {
        "fixed" : "3.3.10.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpmyadmin/phpmyadmin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.4"
      }, {
        "fixed" : "3.4.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-2506"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpmyadmin/phpmyadmin/commit/0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpmyadmin/phpmyadmin/commit/2e01647949df937040e73a94ce0bac0daecbdcf4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/phpmyadmin/composer"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20110712103138/http://www.xxor.se/advisories/phpMyAdmin_3.x_Multiple_Remote_Code_Executions.txt"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20111116172111/http://www.securityfocus.com/archive/1/518804/100/0/threaded"
  }, {
    "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://ha.xxor.se/2011/07/phpmyadmin-3x-multiple-remote-code.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062719.html"
  }, {
    "type" : "WEB",
    "url" : "http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commit;h=0fbedaf5fd7a771d0885c6b7385d934fc90d0d7f"
  }, {
    "type" : "WEB",
    "url" : "http://securityreason.com/securityalert/8306"
  }, {
    "type" : "WEB",
    "url" : "http://typo3.org/teams/security/security-bulletins/typo3-sa-2011-008"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2286"
  }, {
    "type" : "WEB",
    "url" : "http://www.exploit-db.com/exploits/17514"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2011/06/28/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2011/06/28/6"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2011/06/28/8"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2011/06/29/11"
  }, {
    "type" : "WEB",
    "url" : "http://www.phpmyadmin.net/home_page/security/PMASA-2011-6.php"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-15T17:50:29Z",
    "nvd_published_at" : "2011-07-14T23:55:00Z"
  }
}