CVE-2021-22954: Concrete5/concrete5 Cross Site Request Forgery Vulnerability

HIGH
Advisory Identifier: GHSA-gr23-g276-xc73
CWE-352
Published
Advisory Summary

CVE-2021-22954 is a HIGH cross site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Concrete5/concrete5 libraries in the Packagist ecosystem. The issue involves cross site request forgery in concrete5/concrete5. Remediation is available by upgrading affected packages to version 9.0.0.

CVE-2021-22954 at a Glance

CVE Identifier CVE-2021-22954
GHSA Identifier GHSA-gr23-g276-xc73
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Concrete5/concrete5
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2021-22954

To remediate this vulnerability, upgrade all affected Concrete5/concrete5 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/concrete5 fixed: 9.0.0
Upgrade concrete5/concrete5 to 9.0.0
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/concrete5

How to Check if You Are Affected

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

inspect dependencies for concrete5/concrete5

Analyze the terminal output to locate any version of Concrete5/concrete5 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.0.0), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Concrete5/concrete5, 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

A cross-site request forgery vulnerability exists in Concrete CMS <v9 that could allow an attacker to make requests on behalf of other users.

CVE-2021-22954 Affected Concrete5/concrete5 Versions

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

References

Frequently Asked Questions

What is CVE-2021-22954?
CVE-2021-22954 is a security vulnerability in Concrete5/concrete5 involving Cross Site Request Forgery in concrete5/concrete5 under CWE-352: Cross-Site Request Forgery (CSRF).
Which Concrete5/concrete5 versions are affected?
Affected versions include releases prior to 9.0.0 across affected packages: concrete5/concrete5.
What version fixes CVE-2021-22954?
Upgrading to 9.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is concrete5/concrete5 affected?
Yes, concrete5/concrete5 is affected in releases prior to 9.0.0. Upgrade your dependency to 9.0.0 or later.
What CWE is associated with CVE-2021-22954?
CVE-2021-22954 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2021-22954?
Run the dependency tree command: 'inspect dependencies for concrete5/concrete5'. 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-gr23-g276-xc73",
  "modified" : "2022-02-16T22:54:59Z",
  "published" : "2022-02-11T00:00:58Z",
  "aliases" : [ "CVE-2021-22954" ],
  "summary" : "Cross Site Request Forgery in concrete5/concrete5 ",
  "details" : "A cross-site request forgery vulnerability exists in Concrete CMS <v9 that could allow an attacker to make requests on behalf of other users.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/concrete5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-22954"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/developers/introduction/version-history/90-release-notes"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-16T22:54:59Z",
    "nvd_published_at" : "2022-02-09T23:15:00Z"
  }
}