Any member can execute an approved transaction one instruction at a time
Members approve a set of instructions, but the executor decides whether they run atomically or one by one, possibly with gaps, failures, or a cancellation in between.
Why this is a risk, not a vulnerability · Requires member consensus
- Program
- Squads V3
- Source
- Neodyme MPL1
- Code
- View at c95b767
V3 has two ways to execute an approved transaction:
execute_transactionruns every instruction in one Solana transaction. Either all succeed or none do.execute_instructionruns only the next instruction. Any member can call it again later to run the one after.
Mixing the two paths cannot run an instruction twice, skip one, or run them out of order:
- Once any instruction has run through
execute_instruction,execute_transactionis refused. The remaining instructions must run one at a time. - Once
execute_transactionhas run, the transaction is marked executed, andexecute_instructionis refused. - Each
execute_instructioncall accepts only the next instruction in order.
Nothing in the transaction lets members require atomic execution. A member can run the first instructions of an approved transaction and stop. If a later instruction fails, the earlier ones stay done. A failure can come from an upgraded callee (V3-03), a closed account, or wrong data. A partly executed transaction stays ExecuteReady, so it can also be cancelled with some instructions already run.
Neodyme recommended removing the feature or making it opt-in per transaction. Squads documented it instead and, following MPL2, blocked it for transactions that change the multisig itself (authority 0). It remains available for every other authority.
What to do
- Assume any approved transaction may execute partially. Put instructions that must happen together in a transaction with one instruction where possible, or make each step safe on its own.
- Watch approved transactions that have started executing; finish or cancel them deliberately.
- Integrators: show when a transaction has partly executed, and how many instructions have run.