CVE-2023-37900: Github.com/crossplane/crossplane Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-68p4-95xf-7gx8
CVSS 3.4
CWE-400
Published
Advisory Summary

CVE-2023-37900 is a LOW (CVSS 3.4) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/crossplane/crossplane libraries in the Go ecosystem. The issue involves denial of service from large image. Remediation is available by upgrading affected packages to version 1.11.5, 1.12.3.

CVE-2023-37900 at a Glance

CVE Identifier CVE-2023-37900
GHSA Identifier GHSA-68p4-95xf-7gx8
Severity LOW
CVSS v3.1 Base Score 3.4
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/crossplane/crossplane
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.4

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

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

How to Fix CVE-2023-37900

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.11.5
Upgrade github.com/crossplane/crossplane to 1.11.5
github.com/crossplane/crossplane fixed: 1.12.3
Upgrade github.com/crossplane/crossplane to 1.12.3
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-37900, 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.11.5), 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

### Impact An high-privileged user could create a Package referencing an arbitrarily large image containing that Crossplane would then parse, possibly resulting in exhausting all the available memory and therefore in the container being OOMKilled. The impact is low due to the high privileges required to be able to create the Package and the eventually consistency nature of controller. ### Patches The problem has been fixed in 1.11.5, 1.12.3 and 1.13.0, all the supported versions of Crossplane at the time of writing. ### Workarounds Only using images from trusted sources and keeping Package editing/creating privileges to administrators only, which should be both considered already best practices. ### References See `ADA-XP-23-16` in the Security Audit's [report](https://github.com/crossplane/crossplane/blob/ac8b24fe739c5d942ea885157148497f196c3dd3/security/ADA-security-audit-23.pdf). ### Credits This was reported as `ADA-XP-23-16` by @AdamKorcz and @DavidKorczynski from Ada Logic and facilitated by OSTIF as part of the Security Audit sponsored by CNCF.

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

2 component(s)
Fixed Versions:
1.11.51.12.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/crossplane/crossplane
Go
< 1.11.5
1.11.5
github.com/crossplane/crossplane
Go
≥ 1.12.0
< 1.12.3
1.12.3

References

Frequently Asked Questions

What is CVE-2023-37900?
CVE-2023-37900 is a security vulnerability in Github.com/crossplane/crossplane involving Denial of service from large image under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/crossplane/crossplane versions are affected?
Affected versions include releases prior to 1.11.5, 1.12.3 across affected packages: github.com/crossplane/crossplane.
What version fixes CVE-2023-37900?
Upgrading to 1.11.5, 1.12.3 (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.11.5, 1.12.3. Upgrade your dependency to 1.11.5, 1.12.3 or later.
What is the CVSS score of CVE-2023-37900?
CVE-2023-37900 has a CVSS v3.1 base score of 3.4 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:N/I:N/A:L.
What CWE is associated with CVE-2023-37900?
CVE-2023-37900 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-37900?
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-68p4-95xf-7gx8",
  "modified" : "2023-07-28T15:36:08Z",
  "published" : "2023-07-28T15:36:08Z",
  "aliases" : [ "CVE-2023-37900" ],
  "summary" : "Denial of service from large image",
  "details" : "### Impact\n\nAn high-privileged user could create a Package referencing an arbitrarily large image containing that Crossplane would then parse, possibly resulting in exhausting all the available memory and therefore in the container being OOMKilled.\n\nThe impact is low due to the high privileges required to be able to create the Package and the eventually consistency nature of controller.\n\n### Patches\n\nThe problem has been fixed in 1.11.5, 1.12.3 and 1.13.0, all the supported versions of Crossplane at the time of writing.\n\n### Workarounds\n\nOnly using images from trusted sources and keeping Package editing/creating privileges to administrators only, which should be both considered already best practices.\n\n### References\n\nSee `ADA-XP-23-16` in the Security Audit's [report](https://github.com/crossplane/crossplane/blob/ac8b24fe739c5d942ea885157148497f196c3dd3/security/ADA-security-audit-23.pdf).\n\n### Credits\n\nThis was reported as `ADA-XP-23-16` by @AdamKorcz and @DavidKorczynski from Ada Logic and facilitated by OSTIF as part of the Security Audit sponsored by CNCF.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.11.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.0"
      }, {
        "fixed" : "1.12.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crossplane/crossplane/security/advisories/GHSA-68p4-95xf-7gx8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-37900"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crossplane/crossplane"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/crossplane/crossplane/blob/ac8b24fe739c5d942ea885157148497f196c3dd3/security/ADA-security-audit-23.pdf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-28T15:36:08Z",
    "nvd_published_at" : "2023-07-27T16:15:10Z"
  }
}