Advisory

GO-2023-1623

Also known as: CVE-2023-27483, GHSA-vfvj-3m3g-m532

Summary

Out-of-memory panic in github.com/crossplane/crossplane-runtime

Details

An out of memory panic vulnerability exists in the crossplane-runtime libraries.

Applications that use the Paved type's SetValue method with user-provided input that is not properly validated 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), a large value. If callers do not validate paths' indexes on their own, this could allow users to consume arbitrary amounts of memory.

Applications that do not use the Paved type's SetValue method are not affected.

Users unable to upgrade can work around this issue by parsing and validating the path before passing it to the SetValue method of the Paved type, constraining the index size as deemed appropriate.

Severity

Not rated by the source.

Dates

Published
2023-03-13 19:39 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/crossplane/crossplane-runtime

Go · All systems

Affected

  • introduced 0.6.0, fixed 0.16.1, introduced 0.17.0, fixed 0.19.2 (semver)

Fixed versions

0.16.1, 0.19.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences