Lucene search

K
githubGitHub Advisory DatabaseGHSA-4GJ3-6R43-3WFC
HistoryFeb 10, 2023 - 7:54 p.m.

IPFS go-unixfsnode subject to DOS via HAMT Decoding Panics

2023-02-1019:54:14
CWE-400
GitHub Advisory Database
github.com
13
ipfs
go-unixfsnode
hamt
dos
panics
virtual memory leaks
fanout parameter
security advisories
github

CVSS3

7.5

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

EPSS

0.002

Percentile

54.4%

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 a bogus fanout parameter in the HAMT directory nodes.
This includes 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

References

Affected configurations

Vulners
Node
ipfsgo-ipfs-depRange<1.5.2node.js
VendorProductVersionCPE
ipfsgo-ipfs-dep*cpe:2.3:a:ipfs:go-ipfs-dep:*:*:*:*:*:node.js:*:*

CVSS3

7.5

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

EPSS

0.002

Percentile

54.4%

Related for GHSA-4GJ3-6R43-3WFC