CVE-2022-50807: Concrete5/concrete5 Concrete5 CMS Contains An XPath Vulnerability

MODERATE
Advisory Identifier: GHSA-r7vr-wg3f-8hr9
CVSS 9.8
CWE-643
Published
Advisory Summary

CVE-2022-50807 is a MODERATE (CVSS 9.8) concrete5 cms contains an xpath vulnerability (CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection')) affecting Concrete5/concrete5 libraries in the Packagist ecosystem. The issue involves concrete5 cms contains an xpath injection vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2022-50807 at a Glance

CVE Identifier CVE-2022-50807
GHSA Identifier GHSA-r7vr-wg3f-8hr9
Severity MODERATE
CVSS v3.1 Base Score 9.8
CWE Classification CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection')
Affected Product Concrete5/concrete5
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:H/A:H).

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2022-50807

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: Latest secure release
Upgrade concrete5/concrete5 to Latest secure release
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-2022-50807, 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 the patched release), 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-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection'), where the product uses external input to dynamically construct an xpath expression used to retrieve data from an xml database, but it does not neutralize or incorrectly neutralizes that input. this allows an attacker to control the structure of the query. 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

Concrete5 CMS version 9.1.3 contains an XPath injection vulnerability that allows attackers to manipulate URL path parameters with malicious payloads. Attackers can flood the system with crafted requests to potentially extract internal content paths and system information.

CVE-2022-50807 Affected Concrete5/concrete5 Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
concrete5/concrete5
Packagist
9.1.3
All 1 versions
9.1.3
None specified

References

Frequently Asked Questions

What is CVE-2022-50807?
CVE-2022-50807 is a security vulnerability in Concrete5/concrete5 involving Concrete5 CMS contains an XPath injection vulnerability under CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection').
Which Concrete5/concrete5 versions are affected?
Affected versions include releases prior to current release patches across affected packages: concrete5/concrete5.
What version fixes CVE-2022-50807?
Upgrading to current release patches (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 Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-50807?
CVE-2022-50807 has a CVSS v3.1 base score of 9.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-50807?
CVE-2022-50807 is classified under CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection') (The product uses external input to dynamically construct an XPath expression used to retrieve data from an XML database, but it does not neutralize or incorrectly neutralizes that input. This allows an attacker to control the structure of the query.).
How can I check Packagist dependencies for CVE-2022-50807?
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-r7vr-wg3f-8hr9",
  "modified" : "2026-01-14T16:53:51Z",
  "published" : "2026-01-14T00:31:27Z",
  "aliases" : [ "CVE-2022-50807" ],
  "summary" : "Concrete5 CMS contains an XPath injection vulnerability",
  "details" : "Concrete5 CMS version 9.1.3 contains an XPath injection vulnerability that allows attackers to manipulate URL path parameters with malicious payloads. Attackers can flood the system with crafted requests to potentially extract internal content paths and system information.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "concrete5/concrete5"
    },
    "versions" : [ "9.1.3" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-50807"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/concretecms/concretecms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/concretecms.org/2022/concretecms-9.1.3"
  }, {
    "type" : "WEB",
    "url" : "https://www.concretecms.org"
  }, {
    "type" : "WEB",
    "url" : "https://www.concretecms.org/download"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/51144"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/concrete-cme-xpath-injection"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-643" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-14T16:53:51Z",
    "nvd_published_at" : "2026-01-13T23:15:50Z"
  }
}