CVE-2013-4729: Phpmyadmin/phpmyadmin PhpMyAdmin Global Variables Scope Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-x962-w72p-mv7q
CVSS 5.4
CWE-621
Published
Advisory Summary

CVE-2013-4729 is a MODERATE (CVSS 5.4) phpmyadmin global variables scope injection vulnerability (CWE-621: Variable Extraction Error) affecting Phpmyadmin/phpmyadmin libraries in the Packagist ecosystem. The issue involves phpmyadmin global variables scope injection vulnerability. Remediation is available by upgrading affected packages to version 4.0.4.1.

CVE-2013-4729 at a Glance

CVE Identifier CVE-2013-4729
GHSA Identifier GHSA-x962-w72p-mv7q
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-621: Variable Extraction Error
Affected Product Phpmyadmin/phpmyadmin
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2013-4729

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: 4.0.4.1
Upgrade phpmyadmin/phpmyadmin to 4.0.4.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-2013-4729, 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 4.0.4.1), 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-621: Variable Extraction Error, where the product uses external input to determine the names of variables into which information is extracted, without verifying that the names of the specified variables are valid. this could cause the program to overwrite unintended variables. 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

import.php in phpMyAdmin 4.x before 4.0.4.1 does not properly restrict the ability of input data to specify a file format, which allows remote authenticated users to modify the GLOBALS superglobal array, and consequently change the configuration, via a crafted request.

CVE-2013-4729 Affected Phpmyadmin/phpmyadmin Versions

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

References

Frequently Asked Questions

What is CVE-2013-4729?
CVE-2013-4729 is a security vulnerability in Phpmyadmin/phpmyadmin involving phpMyAdmin Global variables scope injection vulnerability under CWE-621: Variable Extraction Error.
Which Phpmyadmin/phpmyadmin versions are affected?
Affected versions include releases prior to 4.0.4.1 across affected packages: phpmyadmin/phpmyadmin.
What version fixes CVE-2013-4729?
Upgrading to 4.0.4.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 4.0.4.1. Upgrade your dependency to 4.0.4.1 or later.
What is the CVSS score of CVE-2013-4729?
CVE-2013-4729 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2013-4729?
CVE-2013-4729 is classified under CWE-621: Variable Extraction Error (The product uses external input to determine the names of variables into which information is extracted, without verifying that the names of the specified variables are valid. This could cause the program to overwrite unintended variables.).
How can I check Packagist dependencies for CVE-2013-4729?
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-x962-w72p-mv7q",
  "modified" : "2023-08-28T23:52:58Z",
  "published" : "2022-05-17T05:07:49Z",
  "aliases" : [ "CVE-2013-4729" ],
  "summary" : "phpMyAdmin Global variables scope injection vulnerability",
  "details" : "import.php in phpMyAdmin 4.x before 4.0.4.1 does not properly restrict the ability of input data to specify a file format, which allows remote authenticated users to modify the GLOBALS superglobal array, and consequently change the configuration, via a crafted request.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpmyadmin/phpmyadmin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0"
      }, {
        "fixed" : "4.0.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4729"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpmyadmin/phpmyadmin/commit/012464268420e53a9cd81cbb4a43988d70393c36"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/phpmyadmin/phpmyadmin"
  }, {
    "type" : "WEB",
    "url" : "http://www.phpmyadmin.net/home_page/security/PMASA-2013-7.php"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-621" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-28T23:52:58Z",
    "nvd_published_at" : "2013-07-04T14:33:00Z"
  }
}