CVE-2021-43008: Vrana/adminer Files Or Directories Accessible To Vulnerability
HIGHCVE-2021-43008 is a HIGH (CVSS 7.5) files or directories accessible to vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Vrana/adminer libraries in the Packagist ecosystem. The issue involves files or directories accessible to external parties in adminer. Remediation is available by upgrading affected packages to version 4.6.3.
CVE-2021-43008 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2021-43008
To remediate this vulnerability, upgrade all affected Vrana/adminer 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 vrana/adminer to 4.6.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for vrana/adminer
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-43008, inspect your project dependencies for Vrana/adminer:
inspect dependencies for vrana/adminer
Analyze the terminal output to locate any version of Vrana/adminer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.3), 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-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Vrana/adminer, 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-2021-43008 Affected Vrana/adminer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
vrana/adminer
|
Packagist |
≥ 1.12.0
< 4.6.3
|
4.6.3
|
References
Frequently Asked Questions
What is CVE-2021-43008?
Which Vrana/adminer versions are affected?
What version fixes CVE-2021-43008?
Is vrana/adminer affected?
What is the CVSS score of CVE-2021-43008?
What CWE is associated with CVE-2021-43008?
How can I check Packagist dependencies for CVE-2021-43008?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rxfq-3vpc-vv72",
"modified" : "2022-04-22T20:33:36Z",
"published" : "2022-04-06T00:01:33Z",
"aliases" : [ "CVE-2021-43008" ],
"summary" : "Files or Directories Accessible to External Parties in Adminer",
"details" : "Improper Access Control in Adminer versions 1.12.0 to 4.6.2 (fixed in version 4.6.3) allows an attacker to achieve Arbitrary File Read on the remote server by requesting the Adminer to connect to a remote MySQL database.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "vrana/adminer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "4.6.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-43008"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vrana/adminer"
}, {
"type" : "WEB",
"url" : "https://github.com/vrana/adminer/releases/tag/v4.6.3"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/05/msg00012.html"
}, {
"type" : "WEB",
"url" : "https://podalirius.net/en/cves/2021-43008"
}, {
"type" : "WEB",
"url" : "https://sansec.io/research/adminer-4.6.2-file-disclosure-vulnerability"
}, {
"type" : "WEB",
"url" : "https://www.adminer.org"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-552" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-22T20:33:36Z",
"nvd_published_at" : "2022-04-05T02:15:00Z"
}
}