CVE-2018-7251: Anchorcms/anchor cms Anchor CMS Logs Credentials Vulnerability

CRITICAL
Advisory Identifier: GHSA-hxcw-pqqc-rv85
CVSS 9.8
CWE-200
Published
Advisory Summary

CVE-2018-7251 is a CRITICAL (CVSS 9.8) anchor cms logs credentials vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Anchorcms/anchor cms libraries in the Packagist ecosystem. The issue involves anchor cms logs credentials. Remediation is available by upgrading affected packages to version 0.12.7.

CVE-2018-7251 at a Glance

CVE Identifier CVE-2018-7251
GHSA Identifier GHSA-hxcw-pqqc-rv85
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Anchorcms/anchor cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2018-7251

To remediate this vulnerability, upgrade all affected Anchorcms/anchor cms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

anchorcms/anchor-cms fixed: 0.12.7
Upgrade anchorcms/anchor-cms to 0.12.7
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 anchorcms/anchor-cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-7251, inspect your project dependencies for Anchorcms/anchor cms:

inspect dependencies for anchorcms/anchor-cms

Analyze the terminal output to locate any version of Anchorcms/anchor cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.7), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Anchorcms/anchor cms, 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

An issue was discovered in `config/error.php` in Anchor 0.12.3. The error log is exposed at an errors.log URI, and contains MySQL credentials if a MySQL error (such as "Too many connections") has occurred.

CVE-2018-7251 Affected Anchorcms/anchor cms Versions

1 component(s)
Fixed Versions:
0.12.7
Product / Package Ecosystem Affected Versions Fixed Version
anchorcms/anchor-cms
Packagist
< 0.12.7
0.12.7

References

Frequently Asked Questions

What is CVE-2018-7251?
CVE-2018-7251 is a security vulnerability in Anchorcms/anchor cms involving Anchor CMS Logs Credentials under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Anchorcms/anchor cms versions are affected?
Affected versions include releases prior to 0.12.7 across affected packages: anchorcms/anchor-cms.
What version fixes CVE-2018-7251?
Upgrading to 0.12.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is anchorcms/anchor-cms affected?
Yes, anchorcms/anchor-cms is affected in releases prior to 0.12.7. Upgrade your dependency to 0.12.7 or later.
What is the CVSS score of CVE-2018-7251?
CVE-2018-7251 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-7251?
CVE-2018-7251 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for CVE-2018-7251?
Run the dependency tree command: 'inspect dependencies for anchorcms/anchor-cms'. 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-hxcw-pqqc-rv85",
  "modified" : "2023-10-06T17:53:47Z",
  "published" : "2022-05-13T01:39:42Z",
  "aliases" : [ "CVE-2018-7251" ],
  "summary" : "Anchor CMS Logs Credentials",
  "details" : "An issue was discovered in `config/error.php` in Anchor 0.12.3. The error log is exposed at an errors.log URI, and contains MySQL credentials if a MySQL error (such as \"Too many connections\") has occurred.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "anchorcms/anchor-cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7251"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/anchorcms/anchor-cms/issues/1247"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/anchorcms/anchor-cms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/anchorcms/anchor-cms/releases/tag/0.12.7"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/finnwea/status/965279233030393856"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/154723/Anchor-CMS-0.12.3a-Information-Disclosure.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.andmp.com/2018/02/advisory-assigned-CVE-2018-7251-in-anchorcms.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-21T21:45:40Z",
    "nvd_published_at" : "2018-02-19T22:29:00Z"
  }
}