CVE-2023-23626
Denial of service via malformed size parameters in github.com/ipfs/go-bitfield
5.9
MEDIUM
CVSS 3.1
EPSS 0.47%
Description
When feeding untrusted user input into the size parameter of NewBitfield and FromBytes functions, an attacker can trigger panics. This happens when the size is a not a multiple of 8 or is negative. A workaround is to ensure size%8 == 0 && size >= 0 yourself before calling NewBitfield or FromBytes.
How to fix CVE-2023-23626
To remediate CVE-2023-23626, upgrade the affected package to a fixed version below.
- —upgrade to 1.1.0 or later
- —upgrade to 1.1.0 or later
Is CVE-2023-23626 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.1.0
- from 0, < 1.1.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |