Skip to main content

Uncontrolled Resource Consumption


Severity High
Score 7.5/10


The crossplane-runtime is a set of go libraries used to build Kubernetes controllers in Crossplane and its related stacks. An out of memory panic vulnerability has been discovered in affected versions. Applications that use the "Paved" type's "SetValue" method with user provided input without proper validation might use excessive amounts of memory and cause an out of memory panic. In the "fieldpath" package, the "Paved.SetValue" method sets a value on the Paved object according to the provided path, without any validation. This allows setting values in slices at any provided index, which grows the target array up to the requested index, the index is currently capped at max uint32 (4294967295) given how indexes are parsed, but that is still an unnecessarily large value. If callers are not validating paths' indexes on their own, which most probably are not going to do, given that the input is parsed directly in the "SetValue" method, this could allow users to consume arbitrary amounts of memory. Applications that do not use the "Paved" type's "SetValue" method are not affected. This issue affects versions through 0.16.0, 0.17.0-rc.0 through 0.17.0, 0.18.0-rc.0 through 0.19.1, and 0.20.0-rc.0. Users are advised to upgrade. Users unable to upgrade can parse and validate the path before passing it to the "SetValue" method of the "Paved" type, constraining the index size as deemed appropriate.

  • LOW
  • NONE
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-400 - Uncontrolled resource consumption

An uncontrolled resource allocation attack (also known as resource exhaustion attack) triggers unauthorized overconsumption of the limited resources in an application, such as memory, file system storage, database connection pool entries, and CPU. This may lead to denial of service for valid users and degradation of the application's functionality as well as that of the host operating system.

Advisory Timeline

  • Published