Lucene search

K
osvGoogleOSV:GO-2023-1623
HistoryMar 13, 2023 - 7:39 p.m.

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

2023-03-1319:39:57
Google
osv.dev
8
github
crossplane
runtime
out of memory
vulnerability
paved type
setvalue method
fieldpath package
memory consumption
slice
index validation
upgrade
workaround

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.001 Low

EPSS

Percentile

37.9%

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.

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

0.001 Low

EPSS

Percentile

37.9%

Related for OSV:GO-2023-1623