Advisory

GO-2023-1558

Also known as: CVE-2023-23626, GHSA-2h6c-j3gf-xp9r

Summary

Denial of service via malformed size parameters in github.com/ipfs/go-bitfield

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-02-14 19:41 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/ipfs/go-bitfield

Go · All systems

Affected

  • introduced 0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences