CVE-2023-38495: Github.com/crossplane/crossplane Possible Image Tampering From Missing Vulnerability

HIGH
Advisory Identifier: GHSA-pj4x-2xr5-w87m
CVSS 8.3
CWE-20
Published
Advisory Summary

CVE-2023-38495 is a HIGH (CVSS 8.3) possible image tampering from missing vulnerability (CWE-20: Improper Input Validation) affecting Github.com/crossplane/crossplane libraries in the Go ecosystem. The issue involves possible image tampering from missing image validation for packages. Remediation is available by upgrading affected packages to version 1.11.5, 1.12.3.

CVE-2023-38495 at a Glance

CVE Identifier CVE-2023-38495
GHSA Identifier GHSA-pj4x-2xr5-w87m
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/crossplane/crossplane
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.3

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

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

How to Fix CVE-2023-38495

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-38495, 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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 Crossplanes image backend does not validate the byte contents of Crossplane packages. As such, Crossplane does not detect if an attacker has tampered with a Package. ### 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-11` 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-11` by @AdamKorcz and @DavidKorczynski from Ada Logic and facilitated by OSTIF as part of the Security Audit sponsored by CNCF.

CVE-2023-38495 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-38495?
CVE-2023-38495 is a security vulnerability in Github.com/crossplane/crossplane involving Possible image tampering from missing image validation for Packages under CWE-20: Improper Input Validation.
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-38495?
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-38495?
CVE-2023-38495 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-38495?
CVE-2023-38495 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2023-38495?
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-pj4x-2xr5-w87m",
  "modified" : "2023-07-28T15:33:38Z",
  "published" : "2023-07-28T15:33:38Z",
  "aliases" : [ "CVE-2023-38495" ],
  "summary" : "Possible image tampering from missing image validation for Packages",
  "details" : "### Impact\n\nCrossplanes image backend does not validate the byte contents of Crossplane packages. As such, Crossplane does not detect if an attacker has tampered with a Package.\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-11` 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-11` 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:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "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-pj4x-2xr5-w87m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38495"
  }, {
    "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-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-28T15:33:38Z",
    "nvd_published_at" : "2023-07-27T19:15:10Z"
  }
}