CVE-2020-15246: October/cms Local File Inclusion By Unauthenticated Vulnerability

HIGH
Advisory Identifier: GHSA-xwjr-6fj7-fc6h
CVSS 7.5
CWE-863 CWE-22
Published
Advisory Summary

CVE-2020-15246 is a HIGH (CVSS 7.5) local file inclusion by unauthenticated vulnerability (CWE-863: Incorrect Authorization) affecting October/cms libraries in the Packagist ecosystem. The issue involves local file inclusion by unauthenticated users. Remediation is available by upgrading affected packages to version 1.0.469.

CVE-2020-15246 at a Glance

CVE Identifier CVE-2020-15246
GHSA Identifier GHSA-xwjr-6fj7-fc6h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-863: Incorrect Authorization
Affected Product October/cms
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-2020-15246

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

october/cms fixed: 1.0.469
Upgrade october/cms to 1.0.469
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 october/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-15246, inspect your project dependencies for October/cms:

inspect dependencies for october/cms

Analyze the terminal output to locate any version of October/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.469), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In October/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

### Impact An attacker can exploit this vulnerability to read local files on an October CMS server. The vulnerability is exploitable by unauthenticated users via a specially crafted request. ### Patches Issue has been patched in Build 469 (v1.0.469) and v1.1.0. ### Workarounds Apply https://github.com/octobercms/library/commit/80aab47f044a2660aa352450f55137598f362aa4 to your installation manually if unable to upgrade to Build 469. ### References Reported by [ka1n4t](https://github.com/ka1n4t) ### For more information If you have any questions or comments about this advisory: * Email us at [hello@octobercms.com](mailto:hello@octobercms.com) ### Threat assessment: <img width="1105" alt="Screen Shot 2020-10-10 at 1 05 19 PM" src="https://user-images.githubusercontent.com/7253840/95663086-4ffc4780-0af9-11eb-9bb6-fd40cf11c033.png">

CVE-2020-15246 Affected October/cms Versions

1 component(s)
Fixed Versions:
1.0.469
Product / Package Ecosystem Affected Versions Fixed Version
october/cms
Packagist
≥ 1.0.421
< 1.0.469
1.0.469

References

Frequently Asked Questions

What is CVE-2020-15246?
CVE-2020-15246 is a security vulnerability in October/cms involving Local File Inclusion by unauthenticated users under CWE-863: Incorrect Authorization.
Which October/cms versions are affected?
Affected versions include releases prior to 1.0.469 across affected packages: october/cms.
What version fixes CVE-2020-15246?
Upgrading to 1.0.469 (or the latest patched release for your respective branch) resolves the vulnerability.
Is october/cms affected?
Yes, october/cms is affected in releases prior to 1.0.469. Upgrade your dependency to 1.0.469 or later.
What is the CVSS score of CVE-2020-15246?
CVE-2020-15246 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-2020-15246?
CVE-2020-15246 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Packagist dependencies for CVE-2020-15246?
Run the dependency tree command: 'inspect dependencies for october/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-xwjr-6fj7-fc6h",
  "modified" : "2021-11-19T13:46:03Z",
  "published" : "2020-11-23T19:48:12Z",
  "aliases" : [ "CVE-2020-15246" ],
  "summary" : "Local File Inclusion by unauthenticated users",
  "details" : "### Impact\nAn attacker can exploit this vulnerability to read local files on an October CMS server. The vulnerability is exploitable by unauthenticated users via a specially crafted request.\n\n### Patches\nIssue has been patched in Build 469 (v1.0.469) and v1.1.0.\n\n### Workarounds\nApply https://github.com/octobercms/library/commit/80aab47f044a2660aa352450f55137598f362aa4 to your installation manually if unable to upgrade to Build 469.\n\n### References\nReported by [ka1n4t](https://github.com/ka1n4t)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [hello@octobercms.com](mailto:hello@octobercms.com)\n\n### Threat assessment:\n<img width=\"1105\" alt=\"Screen Shot 2020-10-10 at 1 05 19 PM\" src=\"https://user-images.githubusercontent.com/7253840/95663086-4ffc4780-0af9-11eb-9bb6-fd40cf11c033.png\">",
  "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" : "october/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.421"
      }, {
        "fixed" : "1.0.469"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/security/advisories/GHSA-xwjr-6fj7-fc6h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15246"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/library/commit/80aab47f044a2660aa352450f55137598f362aa4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/octobercms/october"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-11-23T19:23:14Z",
    "nvd_published_at" : "2020-11-23T20:15:00Z"
  }
}