Advisory

GHSA-9mfc-chwf-7whf

Also known as: None

Summary

ckb: Large dep group requires a lot of resources to process but the cost to commit the transaction is very low.

Details

Impact

When a transaction contains a dep group with many cells, the resources required to process it are not linear to the transaction size nor spent script cycles.

Patches

In 0.43.3, nodes drop the transactions relayed to them when they contain a dep group with more than 64 cells. They do not ban peers who send them such transactions.

In 0.100, the consensus disallow transactions using a dep group with more than 64 cells. Peers relaying such transaction must be banned. Blocks committing such transactions must be rejected.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-11-02 18:14 UTC
Modified
2022-11-02 18:14 UTC

Affected packages and fixes

ckb

crates.io · All systems

Affected

  • introduced 0, fixed 0.43.3 (semver)

Fixed versions

0.43.3

Fix

  • Fixed version 0.43.3
    cargo update -p ckb --precise 0.43.3

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences