{"id":"CVE-2023-27483","published":"2023-03-09T20:18:31Z","modified":"2025-02-25T14:59:17Z","title":"fieldpath's Paved.SetValue allows growing arrays up to arbitrary sizes in crossplane-runtime","vendor":"crossplane","product":"crossplane-runtime","tier":"tail","description":{"text":"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 has been addressed in versions 0.16.1 and 0.19.2. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00886,"percentile":0.57027,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/crossplane/crossplane-runtime/security/advisories/GHSA-vfvj-3m3g-m532","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/crossplane/crossplane-runtime/commit/53508a9f4374604db140dd8ab2fa52276441e738","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.41},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"crossplane","affectedVersions":[{"vendor":"crossplane","product":"crossplane-runtime","versions":[">= 0.17.0, < 0.19.2","< 0.16.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:29:58.601291Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/crossplane/crossplane-runtime","vulnerableRanges":[">=0.17.0, <0.19.2",">=0.6.0, <0.16.1"],"patched":["0.19.2","0.16.1"],"from":["GHSA-vfvj-3m3g-m532","GO-2023-1623"],"provenance":"source"}],"summary":{"text":"A flaw in the Paved.SetValue method of the fieldpath package in crossplane-runtime, a Go library for building Kubernetes controllers, lets input paths grow slice arrays to very large indexes without validation. An attacker who can supply path input to an application that calls Paved.SetValue with that unvalidated input, over the network without authentication or user interaction, can force excessive memory allocation and cause an out-of-memory panic, though exploiting it reliably depends on attack complexity and the application not validating indexes itself.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:00Z"},"euvd":{"id":"EUVD-2023-1111","exploited":false,"provenance":"source"}}