Skip to content
Heist/ feed
Back to feed
Medium

fieldpath's Paved.SetValue allows growing arrays up to arbitrary sizes in crossplane-runtime

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-27483
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:14 UTC · Revision 1

Source evidence

fieldpath's Paved.SetValue allows growing arrays up to arbitrary sizes in crossplane-runtime

core-osv · Original source

Published 9 Mar 2023, 20:18 UTC

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.

osv:CVE-2023-27483
Complete source record
{
  "id": "9aefe8474500acf00faf58feea6a0c5aaa2f5a0c7fe66b8c766b20a603ce1fc0",
  "url": "https://osv.dev/vulnerability/CVE-2023-27483",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "fieldpath's Paved.SetValue allows growing arrays up to arbitrary sizes in crossplane-runtime",
    "summary": "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.",
    "evidence": "osv:CVE-2023-27483",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-27483",
      "aliases": [
        "CVE-2023-27483",
        "GHSA-vfvj-3m3g-m532",
        "GO-2023-1623"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/crossplane/crossplane-runtime",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a8605b76a8ad61822eba93c0d8787249fcdda576"
                },
                {
                  "fixed": "2ef3cde098f9fb248bdb23eb1e20c96d223509d6"
                },
                {
                  "introduced": "0e8935d6d9a942825a29ab3ab34f057cfb1dc050"
                },
                {
                  "fixed": "53508a9f4374604db140dd8ab2fa52276441e738"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:crossplane:crossplane-runtime:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.19.0"
                      },
                      {
                        "fixed": "0.19.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:crossplane:crossplane-runtime:0.16.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.16.0"
                      },
                      {
                        "last_affected": "0.16.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "53508a9f4374604db140dd8ab2fa52276441e738"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.16.0",
            "v0.19.1",
            "v0.19.0",
            "v0.20.0-rc.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-27483.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.483156205Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27483.json",
        "https://github.com/crossplane/crossplane-runtime/security/advisories/GHSA-vfvj-3m3g-m532",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-27483",
        "https://github.com/crossplane/crossplane-runtime/commit/53508a9f4374604db140dd8ab2fa52276441e738"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20",
          "CWE-400"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27483.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-27483",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491816,
  "published_at": "2023-03-09T20:18:31.955+00:00"
}