GHSA-7h65-4p22-39j6: Github.com/crossplane/crossplane Unexpected Behavior From Is Methods Vulnerability

CRITICAL
CVSS 9.8
Published
Advisory Summary

GHSA-7h65-4p22-39j6 is a CRITICAL (CVSS 9.8) unexpected behavior from is methods vulnerability (General Security Weakness) affecting Github.com/crossplane/crossplane libraries in the Go ecosystem. The issue involves unexpected behavior from is methods for ipv4-mapped ipv6 addresses. Remediation is available by upgrading affected packages to version 1.15.6, 1.16.3, 1.17.2.

GHSA-7h65-4p22-39j6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7h65-4p22-39j6
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Github.com/crossplane/crossplane
Package Ecosystem Go
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 GHSA-7h65-4p22-39j6

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.15.6
Upgrade github.com/crossplane/crossplane to 1.15.6
github.com/crossplane/crossplane fixed: 1.16.3
Upgrade github.com/crossplane/crossplane to 1.16.3
github.com/crossplane/crossplane fixed: 1.17.2
Upgrade github.com/crossplane/crossplane to 1.17.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 GHSA-7h65-4p22-39j6, 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.15.6), 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 General Security Weakness. 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

A critical vulnerability was reported in the versions of golang that Crossplane depends on. Details of the golang vulnerability are included below. Crossplane does not directly use the vulnerable functions from the `net/netip` package, but the version of golang libraries, runtime, and build tools have still been updated as part of this security advisory nonetheless. **Critical Vulnerabilities** Vulnerability: [CVE-2024-24790](https://nvd.nist.gov/vuln/detail/CVE-2024-24790), `golang: net/netip: Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses` Description: The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for IPv4-mapped IPv6 addresses, returning false for addresses which would return true in their traditional IPv4 forms. Affected versions: 1.17.1,1.16.2,1.15.5 See screenshot for more details ![Screenshot from 2024-09-18 17-36-37](https://github.com/user-attachments/assets/2e7ad31f-228a-4534-a4aa-b63d4911351d) Fixed versions: 1.17.2,1.16.3,1.15.6 Release notes: * https://github.com/crossplane/crossplane/releases/tag/v1.17.2 * https://github.com/crossplane/crossplane/releases/tag/v1.16.3 * https://github.com/crossplane/crossplane/releases/tag/v1.15.6

GHSA-7h65-4p22-39j6 Affected Github.com/crossplane/crossplane Versions

3 component(s)
Fixed Versions:
1.15.61.16.31.17.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/crossplane/crossplane
Go
≥ 1.15.5
< 1.15.6
All 1 versions
1.15.5
1.15.6
github.com/crossplane/crossplane
Go
≥ 1.16.2
< 1.16.3
All 1 versions
1.16.2
1.16.3
github.com/crossplane/crossplane
Go
≥ 1.17.1
< 1.17.2
All 1 versions
1.17.1
1.17.2

References

Frequently Asked Questions

What is GHSA-7h65-4p22-39j6?
GHSA-7h65-4p22-39j6 is a security vulnerability in Github.com/crossplane/crossplane involving Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses under General Security Weakness.
Which Github.com/crossplane/crossplane versions are affected?
Affected versions include releases prior to 1.15.6, 1.16.3, 1.17.2 across affected packages: github.com/crossplane/crossplane.
What version fixes GHSA-7h65-4p22-39j6?
Upgrading to 1.15.6, 1.16.3, 1.17.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.15.6, 1.16.3, 1.17.2. Upgrade your dependency to 1.15.6, 1.16.3, 1.17.2 or later.
What is the CVSS score of GHSA-7h65-4p22-39j6?
GHSA-7h65-4p22-39j6 has a CVSS v3.1 base score of 9.8 (CRITICAL) 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 GHSA-7h65-4p22-39j6?
GHSA-7h65-4p22-39j6 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-7h65-4p22-39j6?
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-7h65-4p22-39j6",
  "modified" : "2024-10-25T19:42:31Z",
  "published" : "2024-10-25T19:42:31Z",
  "aliases" : [ ],
  "summary" : "github.com/crossplane/crossplane: Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses",
  "details" : "A critical vulnerability was reported in the versions of golang that Crossplane depends on. Details of the golang vulnerability are included below. Crossplane does not directly use the vulnerable functions from the `net/netip` package, but the version of golang libraries, runtime, and build tools have still been updated as part of this security advisory nonetheless.\n\n**Critical Vulnerabilities**\nVulnerability: [CVE-2024-24790](https://nvd.nist.gov/vuln/detail/CVE-2024-24790), `golang: net/netip: Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses`\nDescription: The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for IPv4-mapped IPv6 addresses, returning false for addresses which would return true in their traditional IPv4 forms.\n\nAffected versions: 1.17.1,1.16.2,1.15.5\n\nSee screenshot for more details\n![Screenshot from 2024-09-18 17-36-37](https://github.com/user-attachments/assets/2e7ad31f-228a-4534-a4aa-b63d4911351d)\n\nFixed versions: 1.17.2,1.16.3,1.15.6\n\nRelease notes:\n\n* https://github.com/crossplane/crossplane/releases/tag/v1.17.2\n* https://github.com/crossplane/crossplane/releases/tag/v1.16.3\n* https://github.com/crossplane/crossplane/releases/tag/v1.15.6",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.15.5"
      }, {
        "fixed" : "1.15.6"
      } ]
    } ],
    "versions" : [ "1.15.5" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.16.2"
      }, {
        "fixed" : "1.16.3"
      } ]
    } ],
    "versions" : [ "1.16.2" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/crossplane/crossplane"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.1"
      }, {
        "fixed" : "1.17.2"
      } ]
    } ],
    "versions" : [ "1.17.1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/crossplane/crossplane/security/advisories/GHSA-7h65-4p22-39j6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/crossplane/crossplane"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-25T19:42:31Z",
    "nvd_published_at" : null
  }
}