Vulnerabilities in pkg:maven/org.craftercms/crafter-search

PACKAGE
Advisory Identifier: GHSA-2wr2-8qjq-gh55
Advisory Summary

CVE-2021-23264 is a CRITICAL (CVSS 9.1) crafter-search vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Crafter search libraries in the Maven ecosystem. The issue involves crafter-search. Remediation is available by upgrading affected packages to version 3.1.15.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.craftercms/crafter-search

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.craftercms/crafter-search. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2wr2-8qjq-gh55 CVE-2021-23264 CRITICAL Exposure of Resource to Wrong Sphere in org.craftercms:crafter-search

CVE-2021-23264 at a Glance

CVE Identifier CVE-2021-23264
GHSA Identifier GHSA-2wr2-8qjq-gh55
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Crafter search
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:N).

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 None (A:N)

How to Fix CVE-2021-23264

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

org.craftercms:crafter-search fixed: 3.1.15
<dependency>
    <groupId>org.craftercms</groupId>
    <artifactId>crafter-search</artifactId>
    <version>3.1.15</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.craftercms

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2021-23264, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.craftercms

Analyze the terminal output to locate any version of Crafter search in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.15), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.craftercms command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Crafter search, 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

Installations, where crafter-search is not protected, allow unauthenticated remote attackers to create, view, and delete search indexes.

CVE-2021-23264 Affected Crafter search Versions

1 component(s)
Fixed Versions:
3.1.15
Product / Package Ecosystem Affected Versions Fixed Version
org.craftercms:crafter-search
Maven
≥ 3.1.0
< 3.1.15
3.1.15

References

Frequently Asked Questions

What is CVE-2021-23264?
CVE-2021-23264 is a security vulnerability in Crafter search involving crafter-search under CWE-668: Exposure of Resource to Wrong Sphere.
Which Crafter search versions are affected?
Affected versions include releases prior to 3.1.15 across affected packages: org.craftercms:crafter-search.
What version fixes CVE-2021-23264?
Upgrading to 3.1.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is crafter-search affected?
Yes, org.craftercms:crafter-search is affected in releases prior to 3.1.15. Upgrade your dependency to 3.1.15 or later.
What is the CVSS score of CVE-2021-23264?
CVE-2021-23264 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2021-23264?
CVE-2021-23264 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check Maven dependencies for CVE-2021-23264?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.craftercms'. 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-2wr2-8qjq-gh55",
  "modified" : "2021-12-06T21:35:33Z",
  "published" : "2021-12-16T15:27:35Z",
  "aliases" : [ "CVE-2021-23264" ],
  "summary" : "Exposure of Resource to Wrong Sphere in org.craftercms:crafter-search",
  "details" : "Installations, where crafter-search is not protected, allow unauthenticated remote attackers to create, view, and delete search indexes.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.craftercms:crafter-search"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-23264"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftercms/craftercms/commit/0e256ef0372c7be9d6e2fefc4652dd4fd94770a1"
  }, {
    "type" : "WEB",
    "url" : "https://docs.craftercms.org/en/3.1/security/advisory.html#cv-2021120107"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-402", "CWE-668" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-12-06T21:35:33Z",
    "nvd_published_at" : "2021-12-02T16:15:00Z"
  }
}