CVE-2018-12613: Phpmyadmin/phpmyadmin PhpMyAdmin Improper Authentication Vulnerability
HIGHCVE-2018-12613 is a HIGH (CVSS 8.8) phpmyadmin improper authentication vulnerability (CWE-287: Improper Authentication) affecting Phpmyadmin/phpmyadmin libraries in the Packagist ecosystem. The issue involves phpmyadmin improper authentication. Remediation is available by upgrading affected packages to version 4.8.2.
CVE-2018-12613 at a Glance
Security Impact
CVSS: 8.8
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:H/I:H/A:H).
How to Fix CVE-2018-12613
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.
Upgrade phpmyadmin/phpmyadmin to 4.8.2
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-2018-12613, 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.8.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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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
CVE-2018-12613 Affected Phpmyadmin/phpmyadmin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phpmyadmin/phpmyadmin
|
Packagist |
≥ 4.8
< 4.8.2
|
4.8.2
|
References
Frequently Asked Questions
What is CVE-2018-12613?
Which Phpmyadmin/phpmyadmin versions are affected?
What version fixes CVE-2018-12613?
Is phpmyadmin/phpmyadmin affected?
What is the CVSS score of CVE-2018-12613?
What CWE is associated with CVE-2018-12613?
How can I check Packagist dependencies for CVE-2018-12613?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x394-g9j8-x7mf",
"modified" : "2024-04-24T17:15:57Z",
"published" : "2022-05-13T01:05:22Z",
"aliases" : [ "CVE-2018-12613" ],
"summary" : "phpMyAdmin Improper Authentication",
"details" : "An issue was discovered in phpMyAdmin 4.8.x before 4.8.2, in which an attacker can include (view and potentially execute) files on the server. The vulnerability comes from a portion of code where pages are redirected and loaded within phpMyAdmin, and an improper test for whitelisted pages. An attacker must be authenticated, except in the \"$cfg['AllowArbitraryServer'] = true\" case (where an attacker can specify any host he/she is already in control of, and execute arbitrary code on phpMyAdmin) and the \"$cfg['ServerDefault'] = 0\" case (which bypasses the login requirement and runs the vulnerable code without any authentication).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "phpmyadmin/phpmyadmin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.8"
}, {
"fixed" : "4.8.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-12613"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/phpmyadmin/composer"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/201904-16"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/44924"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/44928"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/45020"
}, {
"type" : "WEB",
"url" : "https://www.phpmyadmin.net/security/PMASA-2018-4"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/164623/phpMyAdmin-4.8.1-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/104532"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-24T17:15:56Z",
"nvd_published_at" : "2018-06-21T20:29:00Z"
}
}