CVE-2018-7667: Vrana/adminer Vrana/adminer Vulnerable To SSRF By Vulnerability

MODERATE
Advisory Identifier: GHSA-43f8-p5w3-5m25
CWE-918
Published
Advisory Summary

CVE-2018-7667 is a MODERATE vrana/adminer vulnerable to ssrf by vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Vrana/adminer libraries in the Packagist ecosystem. The issue involves vrana/adminer vulnerable to ssrf by connecting to privileged ports. Remediation is available by upgrading affected packages to version 4.7.8.

CVE-2018-7667 at a Glance

CVE Identifier CVE-2018-7667
GHSA Identifier GHSA-43f8-p5w3-5m25
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Vrana/adminer
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2018-7667

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.7.8
Upgrade vrana/adminer to 4.7.8
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-2018-7667, 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.7.8), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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

### Impact All users are affected. ### Patches * Unsuccessfully patched by 0fae40fb, included in version [4.4.0](https://github.com/vrana/adminer/releases/tag/v4.4.0). * Patched by 35bfaa75, included in version [4.7.8](https://github.com/vrana/adminer/releases/tag/v4.7.8). ### Workarounds Protect access to Adminer also by other means, e.g. by HTTP password, IP address limiting or by OTP [plugin](https://www.adminer.org/plugins/). ### References * http://hyp3rlinx.altervista.org/advisories/ADMINER-UNAUTHENTICATED-SERVER-SIDE-REQUEST-FORGERY.txt * https://sourceforge.net/p/adminer/bugs-and-features/769/ * https://gusralph.info/adminer-ssrf-bypass-cve-2018-7667/ (CVE-2020-28654) ### For more information If you have any questions or comments about this advisory: * Comment at 35bfaa75.

CVE-2018-7667 Affected Vrana/adminer Versions

1 component(s)
Fixed Versions:
4.7.8
Product / Package Ecosystem Affected Versions Fixed Version
vrana/adminer
Packagist
< 4.7.8
4.7.8

References

Frequently Asked Questions

What is CVE-2018-7667?
CVE-2018-7667 is a security vulnerability in Vrana/adminer involving vrana/adminer vulnerable to SSRF by connecting to privileged ports under CWE-918: Server-Side Request Forgery (SSRF).
Which Vrana/adminer versions are affected?
Affected versions include releases prior to 4.7.8 across affected packages: vrana/adminer.
What version fixes CVE-2018-7667?
Upgrading to 4.7.8 (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.7.8. Upgrade your dependency to 4.7.8 or later.
What CWE is associated with CVE-2018-7667?
CVE-2018-7667 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Packagist dependencies for CVE-2018-7667?
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-43f8-p5w3-5m25",
  "modified" : "2023-09-21T19:57:49Z",
  "published" : "2021-02-11T21:20:40Z",
  "aliases" : [ "CVE-2018-7667" ],
  "summary" : "vrana/adminer vulnerable to SSRF by connecting to privileged ports",
  "details" : "### Impact\nAll users are affected.\n\n### Patches\n* Unsuccessfully patched by 0fae40fb, included in version [4.4.0](https://github.com/vrana/adminer/releases/tag/v4.4.0).\n* Patched by 35bfaa75, included in version [4.7.8](https://github.com/vrana/adminer/releases/tag/v4.7.8).\n\n### Workarounds\nProtect access to Adminer also by other means, e.g. by HTTP password, IP address limiting or by OTP [plugin](https://www.adminer.org/plugins/).\n\n### References\n* http://hyp3rlinx.altervista.org/advisories/ADMINER-UNAUTHENTICATED-SERVER-SIDE-REQUEST-FORGERY.txt\n* https://sourceforge.net/p/adminer/bugs-and-features/769/\n* https://gusralph.info/adminer-ssrf-bypass-cve-2018-7667/ (CVE-2020-28654)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Comment at 35bfaa75.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "vrana/adminer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.7.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vrana/adminer/security/advisories/GHSA-43f8-p5w3-5m25"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vrana/adminer/commit/35bfaa75"
  }, {
    "type" : "WEB",
    "url" : "https://gusralph.info/adminer-ssrf-bypass-cve-2018-7667"
  }, {
    "type" : "WEB",
    "url" : "https://sourceforge.net/p/adminer/bugs-and-features/769"
  }, {
    "type" : "WEB",
    "url" : "http://hyp3rlinx.altervista.org/advisories/ADMINER-UNAUTHENTICATED-SERVER-SIDE-REQUEST-FORGERY.txt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-02-11T21:20:27Z",
    "nvd_published_at" : null
  }
}