CVE-2022-21829: Concrete5/core Code Injection Vulnerability

HIGH
Advisory Identifier: GHSA-6xc4-7fmm-65q2
CVSS 8.0
CWE-319 CWE-74
Published
Advisory Summary

CVE-2022-21829 is a HIGH (CVSS 8.0) code injection vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Concrete5/core libraries in the Packagist ecosystem. The issue involves code injection in concrete cms. Remediation is available by upgrading affected packages to version 9.1.0, 8.5.8.

CVE-2022-21829 at a Glance

CVE Identifier CVE-2022-21829
GHSA Identifier GHSA-6xc4-7fmm-65q2
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-319: Cleartext Transmission of Sensitive Information
Affected Product Concrete5/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

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

How to Fix CVE-2022-21829

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: 9.1.0
Upgrade concrete5/core to 9.1.0
concrete5/core fixed: 8.5.8
Upgrade concrete5/core to 8.5.8
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-2022-21829, 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 9.1.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-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. 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

Concrete CMS Versions 9.0.0 through 9.0.2 and 8.5.7 and below can download zip files over HTTP and execute code from those zip files which could lead to an RCE. Fixed by enforcing ‘concrete_secure’ instead of ‘concrete’. Concrete now only makes requests over https even a request comes in via http. Concrete CMS security team ranked this 8 with CVSS v3.1 vector: AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H Credit goes to Anna for reporting HackerOne 1482520.

CVE-2022-21829 Affected Concrete5/core Versions

2 component(s)
Fixed Versions:
9.1.08.5.8
Product / Package Ecosystem Affected Versions Fixed Version
concrete5/core
Packagist
≥ 9.0.0
< 9.1.0
9.1.0
concrete5/core
Packagist
< 8.5.8
8.5.8

References

Frequently Asked Questions

What is CVE-2022-21829?
CVE-2022-21829 is a security vulnerability in Concrete5/core involving Code injection in concrete CMS under CWE-319: Cleartext Transmission of Sensitive Information.
Which Concrete5/core versions are affected?
Affected versions include releases prior to 9.1.0, 8.5.8 across affected packages: concrete5/core.
What version fixes CVE-2022-21829?
Upgrading to 9.1.0, 8.5.8 (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 9.1.0, 8.5.8. Upgrade your dependency to 9.1.0, 8.5.8 or later.
What is the CVSS score of CVE-2022-21829?
CVE-2022-21829 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2022-21829?
CVE-2022-21829 is classified under CWE-319: Cleartext Transmission of Sensitive Information (The product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors.).
How can I check Packagist dependencies for CVE-2022-21829?
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-6xc4-7fmm-65q2",
  "modified" : "2022-07-06T16:49:22Z",
  "published" : "2022-06-25T00:00:53Z",
  "aliases" : [ "CVE-2022-21829" ],
  "summary" : "Code injection in concrete CMS",
  "details" : "Concrete CMS Versions 9.0.0 through 9.0.2 and 8.5.7 and below can download zip files over HTTP and execute code from those zip files which could lead to an RCE. Fixed by enforcing ‘concrete_secure’ instead of ‘concrete’. Concrete now only makes requests over https even a request comes in via http. Concrete CMS security team ranked this 8 with CVSS v3.1 vector: AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H Credit goes to Anna for reporting HackerOne 1482520.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "9.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.5.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-21829"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/1482520"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/developers/introduction/version-history/858-release-notes"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/developers/introduction/version-history/910-release-notes"
  }, {
    "type" : "WEB",
    "url" : "https://documentation.concretecms.org/developers/introduction/version-history/910-release-notes,"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/concretecms/concretecms-core"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/1482520,"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-319", "CWE-74" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-29T22:07:26Z",
    "nvd_published_at" : "2022-06-24T15:15:00Z"
  }
}