CVE-2023-27484: Github.com/crossplane/crossplane Crossplane-runtime Contains Improper Input Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-v829-x6hh-cqfq
CVSS 6.2
CWE-400 CWE-20
Published
Advisory Summary

CVE-2023-27484 is a MODERATE (CVSS 6.2) crossplane-runtime contains improper input validation vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/crossplane/crossplane libraries in the Go ecosystem. The issue involves crossplane-runtime contains improper input validation via compositions. Remediation is available by upgrading affected packages to version 1.9.2, 1.10.3, 1.11.2.

CVE-2023-27484 at a Glance

CVE Identifier CVE-2023-27484
GHSA Identifier GHSA-v829-x6hh-cqfq
Severity MODERATE
CVSS v3.1 Base Score 6.2
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/crossplane/crossplane
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.2

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

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

How to Fix CVE-2023-27484

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

github.com/crossplane/crossplane fixed: 1.9.2
Upgrade github.com/crossplane/crossplane to 1.9.2
github.com/crossplane/crossplane fixed: 1.10.3
Upgrade github.com/crossplane/crossplane to 1.10.3
github.com/crossplane/crossplane fixed: 1.11.2
Upgrade github.com/crossplane/crossplane to 1.11.2
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 github.com/crossplane/crossplane

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-27484, inspect your project dependencies for Github.com/crossplane/crossplane:

inspect dependencies for github.com/crossplane/crossplane

Analyze the terminal output to locate any version of Github.com/crossplane/crossplane in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.2), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/crossplane/crossplane, 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

### Summary Fuzz testing, by Ada Logics and sponsored by the CNCF, identified a [vulnerability](https://github.com/crossplane/crossplane-runtime/security/advisories/GHSA-vfvj-3m3g-m532) in the `fieldpath` package from `crossplane/crossplane-runtime` that an already highly privileged Crossplane user able to create or update Compositions could leverage to cause an out of memory panic in Crossplane. ### Details Compositions allow users to specify patches inserting elements into arrays at an arbitrary index. When a Composition is selected for a Composite Resource, patches are evaluated and if a specified index is greater than the current size of the target slice, that slice's size will be increased to the specified index, which could lead to an excessive amount of memory usage and therefore the Pod being OOM-Killed. The index is already capped to the maximum value for a uint32 (4294967295) when parsed, but that is still an unnecessarily large value. ### Workaround Users can restrict write privileges on Compositions to only admin users as a workaround.

CVE-2023-27484 Affected Github.com/crossplane/crossplane Versions

3 component(s)
Fixed Versions:
1.9.21.10.31.11.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/crossplane/crossplane
Go
< 1.9.2
1.9.2
github.com/crossplane/crossplane
Go
≥ 1.10.0
< 1.10.3
1.10.3
github.com/crossplane/crossplane
Go
≥ 1.11.0
< 1.11.2
1.11.2

References

Frequently Asked Questions

What is CVE-2023-27484?
CVE-2023-27484 is a security vulnerability in Github.com/crossplane/crossplane involving Crossplane-runtime contains Improper Input Validation via Compositions under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/crossplane/crossplane versions are affected?
Affected versions include releases prior to 1.9.2, 1.10.3, 1.11.2 across affected packages: github.com/crossplane/crossplane.
What version fixes CVE-2023-27484?
Upgrading to 1.9.2, 1.10.3, 1.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/crossplane/crossplane affected?
Yes, github.com/crossplane/crossplane is affected in releases prior to 1.9.2, 1.10.3, 1.11.2. Upgrade your dependency to 1.9.2, 1.10.3, 1.11.2 or later.
What is the CVSS score of CVE-2023-27484?
CVE-2023-27484 has a CVSS v3.1 base score of 6.2 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with CVE-2023-27484?
CVE-2023-27484 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2023-27484?
Run the dependency tree command: 'inspect dependencies for github.com/crossplane/crossplane'. 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-v829-x6hh-cqfq",
  "modified" : "2023-03-10T23:47:53Z",
  "published" : "2023-03-10T23:47:53Z",
  "aliases" : [ "CVE-2023-27484" ],
  "summary" : "Crossplane-runtime contains Improper Input Validation via Compositions",
  "details" : "### Summary\n\nFuzz testing, by Ada Logics and sponsored by the CNCF, identified a [vulnerability](https://github.com/crossplane/crossplane-runtime/security/advisories/GHSA-vfvj-3m3g-m532) in the `fieldpath` package from `crossplane/crossplane-runtime` that an already highly privileged Crossplane user able to create or update Compositions could leverage to cause an out of memory panic in Crossplane.\n\n### Details\n\nCompositions allow users to specify patches inserting elements into arrays at an arbitrary index. When a Composition is selected for a Composite Resource, patches are evaluated and if a specified index is greater than the current size of the target slice, that slice's size will be increased to the specified index, which could lead to an excessive amount of memory usage and therefore the Pod being OOM-Killed. The index is already capped to the maximum value for a uint32 (4294967295) when parsed, but that is still an unnecessarily large value.\n\n### Workaround\n\nUsers can restrict write privileges on Compositions to only admin users as a workaround.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.10.0"
      }, {
        "fixed" : "1.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.11.0"
      }, {
        "fixed" : "1.11.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crossplane/crossplane/security/advisories/GHSA-v829-x6hh-cqfq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-27484"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crossplane/crossplane"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-10T23:47:53Z",
    "nvd_published_at" : "2023-03-09T21:15:00Z"
  }
}