CVE-2023-23625: Denial of service in HAMT Decoding in go-unixfs

Published Feb 9, 2023
·
Updated

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 - https://github.com/ipfs/go-unixfs/commit/dbcc43ec3e2db0d01e8d80c55040bba3cf22cb4b

Workarounds Do not feed untrusted user data to the decoding functions.

References - https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r

Other sources

go-unixfs is an implementation of a unix-like filesystem on top of an ipld merkledag. 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. Users are advised to upgrade to version 0.4.3 to resolve this issue. Users unable to upgrade should not feed untrusted user data to the decoding functions.

Affected Software

2 affected componentsFixes available
protocol Go-unixfs Go<0.4.3
go/github.com/ipfs/go-unixfs<0.4.3
0.4.3

Event History

Feb 9, 2023
CVE Published
via MITRE·08:57 PM
Data Sourced
via MITRE·08:57 PM
DescriptionSeverityWeakness
Feb 10, 2023
Advisory Published
via GitHub·11:08 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-23625?

CVE-2023-23625 is a vulnerability in the go-unixfs library that can be exploited by reading malformed HAMT sharded directories, leading to panics and virtual memory leaks.

2

What is the severity of CVE-2023-23625?

CVE-2023-23625 has a severity rating of high with a CVSS score of 7.5.

3

How does CVE-2023-23625 affect go-unixfs?

CVE-2023-23625 affects go-unixfs versions up to and excluding version 0.4.3.

4

Can CVE-2023-23625 be exploited remotely?

No, the vulnerability requires reading malformed HAMT sharded directories, which means it can only be exploited by a local attacker.

5

How can I mitigate CVE-2023-23625?

To mitigate CVE-2023-23625, update go-unixfs to a version that is equal to or higher than 0.4.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203