CVE-2019-12204: Silverstripe/cms Missing Warning Can Lead To Vulnerability

CRITICAL
Advisory Identifier: GHSA-cg8j-8w52-735v
CVSS 9.8
Published
Advisory Summary

CVE-2019-12204 is a CRITICAL (CVSS 9.8) missing warning can lead to vulnerability (General Security Weakness) affecting Silverstripe/cms libraries in the Packagist ecosystem. The issue involves missing warning can lead to unauthenticated admin access in silverstripe. Remediation is available by upgrading affected packages to version 4.4.4, 4.3.5.

CVE-2019-12204 at a Glance

CVE Identifier CVE-2019-12204
GHSA Identifier GHSA-cg8j-8w52-735v
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Silverstripe/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.1/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-2019-12204

To remediate this vulnerability, upgrade all affected Silverstripe/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.

silverstripe/cms fixed: 4.4.4
Upgrade silverstripe/cms to 4.4.4
silverstripe/framework fixed: 4.3.5
Upgrade silverstripe/framework to 4.3.5
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 silverstripe/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-12204, inspect your project dependencies for Silverstripe/cms:

inspect dependencies for silverstripe/cms

Analyze the terminal output to locate any version of Silverstripe/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.4), 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 General Security Weakness. In Silverstripe/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

In SilverStripe through 4.3.3, a missing warning about leaving install.php in a public webroot can lead to unauthenticated admin access.

CVE-2019-12204 Affected Silverstripe/cms Versions

2 component(s)
Fixed Versions:
4.4.44.3.5
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/cms
Packagist
≥ 4.4.0
< 4.4.4
4.4.4
silverstripe/framework
Packagist
≥ 4.1.0
< 4.3.5
4.3.5

References

Frequently Asked Questions

What is CVE-2019-12204?
CVE-2019-12204 is a security vulnerability in Silverstripe/cms involving Missing warning can lead to unauthenticated admin access in SilverStripe under General Security Weakness.
Which Silverstripe/cms versions are affected?
Affected versions include releases prior to 4.4.4, 4.3.5 across affected packages: silverstripe/cms, silverstripe/framework.
What version fixes CVE-2019-12204?
Upgrading to 4.4.4, 4.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/cms affected?
Yes, silverstripe/cms is affected in releases prior to 4.4.4. Upgrade your dependency to 4.4.4 or later.
Is silverstripe/framework affected?
Yes, silverstripe/framework is affected in releases prior to 4.3.5. Upgrade your dependency to 4.3.5 or later.
What is the CVSS score of CVE-2019-12204?
CVE-2019-12204 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-12204?
CVE-2019-12204 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2019-12204?
Run the dependency tree command: 'inspect dependencies for silverstripe/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-cg8j-8w52-735v",
  "modified" : "2024-02-05T10:39:45Z",
  "published" : "2019-11-12T23:01:25Z",
  "aliases" : [ "CVE-2019-12204" ],
  "summary" : "Missing warning can lead to unauthenticated admin access in SilverStripe",
  "details" : "In SilverStripe through 4.3.3, a missing warning about leaving install.php in a public webroot can lead to unauthenticated admin access.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.1.0"
      }, {
        "fixed" : "4.3.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-12204"
  }, {
    "type" : "WEB",
    "url" : "https://forum.silverstripe.org/c/releases"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2019-12204.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://packagist.org/packages/silverstripe/cms"
  }, {
    "type" : "WEB",
    "url" : "https://packagist.org/packages/silverstripe/framework"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/CVE-2019-12204"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/cve-2019-12204"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-10-01T18:05:09Z",
    "nvd_published_at" : "2019-09-25T19:15:10Z"
  }
}