CVE-2021-43008: Vrana/adminer Files Or Directories Accessible To Vulnerability

HIGH
Advisory Identifier: GHSA-rxfq-3vpc-vv72
CVSS 7.5
CWE-552
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-43008
GHSA Identifier GHSA-rxfq-3vpc-vv72
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Vrana/adminer
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

vrana/adminer fixed: 4.6.3
Upgrade vrana/adminer to 4.6.3
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 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

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.

CVE-2021-43008 Affected Vrana/adminer Versions

1 component(s)
Fixed Versions:
4.6.3
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?
CVE-2021-43008 is a security vulnerability in Vrana/adminer involving Files or Directories Accessible to External Parties in Adminer under CWE-552: Files or Directories Accessible to External Parties.
Which Vrana/adminer versions are affected?
Affected versions include releases prior to 4.6.3 across affected packages: vrana/adminer.
What version fixes CVE-2021-43008?
Upgrading to 4.6.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vrana/adminer affected?
Yes, vrana/adminer is affected in releases prior to 4.6.3. Upgrade your dependency to 4.6.3 or later.
What is the CVSS score of CVE-2021-43008?
CVE-2021-43008 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2021-43008?
CVE-2021-43008 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Packagist dependencies for CVE-2021-43008?
Run the dependency tree command: 'inspect dependencies for vrana/adminer'. 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-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"
  }
}