Glossary definition

Reentrancy

Reentrancy occurs when an external interaction transfers control and execution enters the calling system again before its earlier operation is safely resolved.

also: reentrant call, reentrancy attack · reviewed July 22, 2026

The classic case sends value before reducing a balance, allowing a recipient to call the withdrawal function repeatedly against stale state. The broader class includes re-entry through another function or contract, token receiver hooks, cross-chain callbacks, and view functions that expose temporarily inconsistent values.

A mutex can stop some same-contract paths, but it does not repair every shared state or cross-contract interaction. Reviewers trace external control transfer, the state visible at that moment, and every callable route back into the system. The complete reentrancy guide and its linked executable examples cover each major variant without making this definition page compete with the tutorial.

Used in context

Articles using this term.