CVE-2008-7252: Phpmyadmin/phpmyadmin PhpMyAdmin Unsafely Handles Temporary Files Vulnerability

HIGH
Advisory Identifier: GHSA-9645-6g72-2pv8
CWE-377
Published
Advisory Summary

CVE-2008-7252 is a HIGH phpmyadmin unsafely handles temporary files vulnerability (CWE-377: Insecure Temporary File) affecting Phpmyadmin/phpmyadmin libraries in the Packagist ecosystem. The issue involves phpmyadmin unsafely handles temporary files. Remediation is available by upgrading affected packages to version 2.11.10.

CVE-2008-7252 at a Glance

CVE Identifier CVE-2008-7252
GHSA Identifier GHSA-9645-6g72-2pv8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-377: Insecure Temporary File
Affected Product Phpmyadmin/phpmyadmin
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2008-7252

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: 2.11.10
Upgrade phpmyadmin/phpmyadmin to 2.11.10
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-2008-7252, 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 2.11.10), 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-377: Insecure Temporary File, where creating and using insecure temporary files can leave application and system data vulnerable to attack. 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

`libraries/File.class.php` in phpMyAdmin 2.11.x before 2.11.10 uses predictable filenames for temporary files, which has unknown impact and attack vectors.

CVE-2008-7252 Affected Phpmyadmin/phpmyadmin Versions

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

References

Frequently Asked Questions

What is CVE-2008-7252?
CVE-2008-7252 is a security vulnerability in Phpmyadmin/phpmyadmin involving phpMyAdmin unsafely handles temporary files under CWE-377: Insecure Temporary File.
Which Phpmyadmin/phpmyadmin versions are affected?
Affected versions include releases prior to 2.11.10 across affected packages: phpmyadmin/phpmyadmin.
What version fixes CVE-2008-7252?
Upgrading to 2.11.10 (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 2.11.10. Upgrade your dependency to 2.11.10 or later.
What CWE is associated with CVE-2008-7252?
CVE-2008-7252 is classified under CWE-377: Insecure Temporary File (Creating and using insecure temporary files can leave application and system data vulnerable to attack.).
How can I check Packagist dependencies for CVE-2008-7252?
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-9645-6g72-2pv8",
  "modified" : "2024-02-09T19:06:40Z",
  "published" : "2022-05-17T05:44:03Z",
  "aliases" : [ "CVE-2008-7252" ],
  "summary" : "phpMyAdmin unsafely handles temporary files",
  "details" : "`libraries/File.class.php` in phpMyAdmin 2.11.x before 2.11.10 uses predictable filenames for temporary files, which has unknown impact and attack vectors.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpmyadmin/phpmyadmin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.11.0"
      }, {
        "fixed" : "2.11.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-7252"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/phpmyadmin/composer"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20100613071447/http://secunia.com/advisories/38211"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20100613071509/http://secunia.com/advisories/39503"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20110729050522/http://www.securityfocus.com/bid/37826"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2010-01/msg00007.html"
  }, {
    "type" : "WEB",
    "url" : "http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin/branches/QA_2_11/phpMyAdmin/libraries/File.class.php?r1=11528&r2=11527&pathrev=11528"
  }, {
    "type" : "WEB",
    "url" : "http://phpmyadmin.svn.sourceforge.net/viewvc/phpmyadmin?view=rev&revision=11528"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2010/dsa-2034"
  }, {
    "type" : "WEB",
    "url" : "http://www.phpmyadmin.net/home_page/security/PMASA-2010-2.php"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-377" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-09T19:06:40Z",
    "nvd_published_at" : "2010-01-19T16:30:00Z"
  }
}