CVE-2023-27483: Out-of-memory panic in github.com/crossplane/crossplane-runtime

Summary

13/03/2023
Yes i
Moderate
5.9

CVE-2023-27483: Out-of-memory panic in github.com/crossplane/crossplane-runtime. Affects github.com/crossplane/crossplane-runtime across 2 version ranges.

>= 0.6.0, < 0.16.1 >= 0.17.0, < 0.19.2

Fixed in 0.16.1 or 0.19.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The github.com/crossplane/crossplane-runtime package is a Go library that provides runtime support for Crossplane, an open-source Kubernetes add-on that enables users to manage and provision cloud resources. The package includes the Paved type, which allows users to set values on objects according to a provided path. This functionality is used by applications that utilize the crossplane-runtime library to manipulate data structures.

Vulnerability Detail

An out-of-memory panic vulnerability has been discovered in the crossplane-runtime library. When using the Paved type's SetValue method with user-provided input that is not properly validated, excessive amounts of memory can be consumed, potentially leading to an out-of-memory panic. The vulnerability arises from the lack of validation in the Paved.SetValue method, which allows setting values in slices at any provided index, causing the target array to grow up to the requested index. If callers fail to validate path indexes, this can result in arbitrary memory consumption. Applications that do not use the Paved type's SetValue method are not affected.

How To Fix

Latest published version: v1.20.12 as of 23 Oct 2026

go get github.com/crossplane/crossplane-runtime@v1.20.12

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 0.6.0, < 0.16.1 0.16.1
    go get github.com/crossplane/crossplane-runtime@v0.16.1
  • >= 0.17.0, < 0.19.2 0.19.2
    go get github.com/crossplane/crossplane-runtime@v0.19.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a fixed version is not immediately feasible, users can implement a workaround by parsing and validating the path before passing it to the SetValue method of the Paved type. This involves constraining the index size to an appropriate limit to prevent excessive memory consumption. Here is an example of how to implement this workaround:

import (
	"github.com/crossplane/crossplane-runtime/pkg/fieldpath"
)

func SetValueSafely(paved *fieldpath.Paved, path string, value interface{}) error {
	// Parse and validate the path
	// ... (implementation details)

	// Set the value on the Paved object
	err := paved.SetValue(parsedPath, value)
	if err != nil {
		return err
	}

	return nil
}

Conclusion

The out-of-memory panic vulnerability in the crossplane-runtime library can be mitigated by upgrading to a fixed version or implementing the provided workaround. It is recommended to upgrade to versions 0.16.1, 0.19.2, or later to ensure the proper validation of user-provided input. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/crossplane/crossplane-runtime →

Share this vulnerability

FAQ

Versions 0.6.0 to 0.16.0 of the crossplane-runtime library are affected by this vulnerability.

No, applications that do not use the Paved type's SetValue method are not affected by this vulnerability.

The vulnerability can lead to excessive memory consumption and potentially cause an out-of-memory panic, resulting in application crashes or instability.

You can implement a workaround by parsing and validating the path before passing it to the SetValue method of the Paved type. This involves constraining the index size to prevent excessive memory consumption. Refer to the 'workaround' section for more details.

This vulnerability was disclosed by Ada Logics in a fuzzing audit sponsored by CNCF.

How To Fix

Latest published version: v1.20.12 as of 23 Oct 2026

go get github.com/crossplane/crossplane-runtime@v1.20.12

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 0.6.0, < 0.16.1 0.16.1
    go get github.com/crossplane/crossplane-runtime@v0.16.1
  • >= 0.17.0, < 0.19.2 0.19.2
    go get github.com/crossplane/crossplane-runtime@v0.19.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback