CVE-2021-22951: Concrete5/core Password Exposure Vulnerability

MODERATE
Advisory Identifier: GHSA-rhf5-f553-xg82
CWE-639 CWE-200
Published
Advisory Summary

CVE-2021-22951 is a MODERATE password exposure vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Concrete5/core libraries in the Packagist ecosystem. The issue involves password exposure in concrete5/core. Remediation is available by upgrading affected packages to version 8.5.7.

CVE-2021-22951 at a Glance

CVE Identifier CVE-2021-22951
GHSA Identifier GHSA-rhf5-f553-xg82
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Concrete5/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2021-22951

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

concrete5/core fixed: 8.5.7
Upgrade concrete5/core to 8.5.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 concrete5/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-22951, inspect your project dependencies for Concrete5/core:

inspect dependencies for concrete5/core

Analyze the terminal output to locate any version of Concrete5/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.5.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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Concrete5/core, 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

Unauthorized individuals could view password protected files using view_inline in Concrete CMS (previously concrete 5) prior to version 8.5.7. Concrete CMS now checks to see if a file has a password in view_inline and, if it does, the file is not rendered.For version 8.5.6, the following mitigations were put in place a. restricting file types for view_inline to images only b. putting a warning in the file manager to advise users.

CVE-2021-22951 Affected Concrete5/core Versions

1 component(s)
Fixed Versions:
8.5.7
Product / Package Ecosystem Affected Versions Fixed Version
concrete5/core
Packagist
< 8.5.7
8.5.7

References

Frequently Asked Questions

What is CVE-2021-22951?
CVE-2021-22951 is a security vulnerability in Concrete5/core involving Password exposure in concrete5/core under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Concrete5/core versions are affected?
Affected versions include releases prior to 8.5.7 across affected packages: concrete5/core.
What version fixes CVE-2021-22951?
Upgrading to 8.5.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is concrete5/core affected?
Yes, concrete5/core is affected in releases prior to 8.5.7. Upgrade your dependency to 8.5.7 or later.
What CWE is associated with CVE-2021-22951?
CVE-2021-22951 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Packagist dependencies for CVE-2021-22951?
Run the dependency tree command: 'inspect dependencies for concrete5/core'. 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-rhf5-f553-xg82",
  "modified" : "2021-11-22T18:22:30Z",
  "published" : "2021-11-23T18:18:16Z",
  "aliases" : [ "CVE-2021-22951" ],
  "summary" : "Password exposure in concrete5/core",
  "details" : "Unauthorized individuals could view password protected files using view_inline in Concrete CMS (previously concrete 5) prior to version 8.5.7. Concrete CMS now checks to see if a file has a password in view_inline and, if it does, the file is not rendered.For version 8.5.6, the following mitigations were put in place a. restricting file types for view_inline to images only b. putting a warning in the file manager to advise users.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.5.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-22951"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/1102014"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/developers/introduction/version-history/857-release-notes"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-22T18:21:13Z",
    "nvd_published_at" : "2021-11-19T19:15:00Z"
  }
}