CVE-2020-5296: October/cms Arbitrary File Deletion Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-jv6v-fvvx-4932
CVSS 6.2
CWE-610 CWE-73
Published
Advisory Summary

CVE-2020-5296 is a MODERATE (CVSS 6.2) arbitrary file deletion vulnerability vulnerability (CWE-610: Externally Controlled Reference to a Resource in Another Sphere) affecting October/cms libraries in the Packagist ecosystem. The issue involves arbitrary file deletion vulnerability in octobercms. Remediation is available by upgrading affected packages to version 1.0.466.

CVE-2020-5296 at a Glance

CVE Identifier CVE-2020-5296
GHSA Identifier GHSA-jv6v-fvvx-4932
Severity MODERATE
CVSS v3.1 Base Score 6.2
CWE Classification CWE-610: Externally Controlled Reference to a Resource in Another Sphere
Affected Product October/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.2

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-5296

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.466
Upgrade october/cms to 1.0.466
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-5296, 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.466), 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-610: Externally Controlled Reference to a Resource in Another Sphere, where the product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere. 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 delete arbitrary local files of an October CMS server. The vulnerability is only exploitable by an authenticated backend user with the `cms.manage_assets` permission. ### Patches Issue has been patched in Build 466 (v1.0.466). ### Workarounds Apply https://github.com/octobercms/october/commit/2b8939cc8b5b6fe81e093fe2c9f883ada4e3c8cc to your installation manually if unable to upgrade to Build 466. ### References Reported by [Sivanesh Ashok](https://stazot.com/) ### 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="1241" alt="Screen Shot 2020-03-31 at 12 16 53 PM" src="https://user-images.githubusercontent.com/7253840/78060872-89354d00-7349-11ea-8c2b-5881b0a50736.png">

CVE-2020-5296 Affected October/cms Versions

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

References

Frequently Asked Questions

What is CVE-2020-5296?
CVE-2020-5296 is a security vulnerability in October/cms involving Arbitrary File Deletion vulnerability in OctoberCMS under CWE-610: Externally Controlled Reference to a Resource in Another Sphere.
Which October/cms versions are affected?
Affected versions include releases prior to 1.0.466 across affected packages: october/cms.
What version fixes CVE-2020-5296?
Upgrading to 1.0.466 (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.466. Upgrade your dependency to 1.0.466 or later.
What is the CVSS score of CVE-2020-5296?
CVE-2020-5296 has a CVSS v3.1 base score of 6.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2020-5296?
CVE-2020-5296 is classified under CWE-610: Externally Controlled Reference to a Resource in Another Sphere (The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.).
How can I check Packagist dependencies for CVE-2020-5296?
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-jv6v-fvvx-4932",
  "modified" : "2021-03-04T18:28:29Z",
  "published" : "2020-06-03T21:58:21Z",
  "aliases" : [ "CVE-2020-5296" ],
  "summary" : "Arbitrary File Deletion vulnerability in OctoberCMS",
  "details" : "### Impact\nAn attacker can exploit this vulnerability to delete arbitrary local files of an October CMS server. The vulnerability is only exploitable by an authenticated backend user with the `cms.manage_assets` permission.\n\n### Patches\nIssue has been patched in Build 466 (v1.0.466).\n\n### Workarounds\nApply https://github.com/octobercms/october/commit/2b8939cc8b5b6fe81e093fe2c9f883ada4e3c8cc to your installation manually if unable to upgrade to Build 466.\n\n### References\nReported by [Sivanesh Ashok](https://stazot.com/)\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=\"1241\" alt=\"Screen Shot 2020-03-31 at 12 16 53 PM\" src=\"https://user-images.githubusercontent.com/7253840/78060872-89354d00-7349-11ea-8c2b-5881b0a50736.png\">",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "october/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.319"
      }, {
        "fixed" : "1.0.466"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/security/advisories/GHSA-jv6v-fvvx-4932"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-5296"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/commit/2b8939cc8b5b6fe81e093fe2c9f883ada4e3c8cc"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/158730/October-CMS-Build-465-XSS-File-Read-File-Deletion-CSV-Injection.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2020/Aug/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-610", "CWE-73" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-03T21:26:30Z",
    "nvd_published_at" : "2020-06-03T22:15:00Z"
  }
}