Lucene search

K
githubGitHub Advisory DatabaseGHSA-Q264-W97Q-Q778
HistoryFeb 10, 2023 - 11:08 p.m.

Denial of service via HAMT Decoding Panics

2023-02-1023:08:06
CWE-400
GitHub Advisory Database
github.com
10
hamt decoding
panics
virtual memory leaks
untrusted user input
fanout parameter

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

38.1%

Impact

Trying to read malformed HAMT sharded directories can cause panics and virtual memory leaks.
If you are reading untrusted user input, an attacker can then trigger a panic.

This is caused by bogus fanout parameter in the HAMT directory nodes.
This include checks returned in ipfs/go-bitfield GHSA-2h6c-j3gf-xp9r, as well as limiting the fanout to <= 1024 (to avoid attempts of arbitrary sized allocations).

Patches

Workarounds

Do not feed untrusted user data to the decoding functions.

References

Affected configurations

Vulners
Node
github.com\/ipfs\/gounixfsRange<0.4.3
CPENameOperatorVersion
github.com/ipfs/go-unixfslt0.4.3

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

38.1%

Related for GHSA-Q264-W97Q-Q778