Vulnerabilities in pkg:golang/github.com/ipfs/go-unixfs
PACKAGECVE-2023-23625 is a MODERATE (CVSS 5.9) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/ipfs/go unixfs libraries in the Go ecosystem. The issue involves denial of service via hamt decoding panics. Remediation is available by upgrading affected packages to version 0.4.3.
pkg:golang/github.com/ipfs/go-unixfs
Vulnerability advisories affecting package pkg:golang/github.com/ipfs/go-unixfs. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-q264-w97q-q778 | CVE-2023-23625 | MODERATE | Denial of service via HAMT Decoding Panics |
CVE-2023-23625 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-23625
To remediate this vulnerability, upgrade all affected Github.com/ipfs/go unixfs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/ipfs/go-unixfs to 0.4.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/ipfs/go-unixfs
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-23625, inspect your project dependencies for Github.com/ipfs/go unixfs:
inspect dependencies for github.com/ipfs/go-unixfs
Analyze the terminal output to locate any version of Github.com/ipfs/go unixfs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/ipfs/go unixfs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-23625 Affected Github.com/ipfs/go unixfs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/ipfs/go-unixfs
|
Go |
< 0.4.3
|
0.4.3
|
References
Frequently Asked Questions
What is CVE-2023-23625?
Which Github.com/ipfs/go unixfs versions are affected?
What version fixes CVE-2023-23625?
Is github.com/ipfs/go-unixfs affected?
What is the CVSS score of CVE-2023-23625?
What CWE is associated with CVE-2023-23625?
How can I check Go dependencies for CVE-2023-23625?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q264-w97q-q778",
"modified" : "2024-05-20T21:43:31Z",
"published" : "2023-02-10T23:08:06Z",
"aliases" : [ "CVE-2023-23625" ],
"summary" : "Denial of service via HAMT Decoding Panics",
"details" : "### Impact\nTrying to read malformed HAMT sharded directories can cause panics and virtual memory leaks.\nIf you are reading untrusted user input, an attacker can then trigger a panic.\n\nThis is caused by bogus `fanout` parameter in the HAMT directory nodes.\nThis include checks returned in [ipfs/go-bitfield GHSA-2h6c-j3gf-xp9r](https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r), as well as limiting the `fanout` to `<= 1024` (to avoid attempts of arbitrary sized allocations).\n\n### Patches\n- https://github.com/ipfs/go-unixfs/commit/dbcc43ec3e2db0d01e8d80c55040bba3cf22cb4b\n\n### Workarounds\nDo not feed untrusted user data to the decoding functions.\n\n### References\n- https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/ipfs/go-unixfs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ipfs/go-unixfs/security/advisories/GHSA-q264-w97q-q778"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-23625"
}, {
"type" : "WEB",
"url" : "https://github.com/ipfs/go-unixfs/commit/467d139a640ecee4f2e74643dafcc58bb3b54175"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-q264-w97q-q778"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ipfs/go-unixfs"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2023-1557"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-10T23:08:06Z",
"nvd_published_at" : "2023-02-09T21:15:00Z"
}
}