When Smart Contracts Snap: What the $42M GMX Exploit Tells Us Abo
A reentrancy flaw in GMX V1's GLP pool let an attacker manipulate the value of GLP tokens during redemption and withdraw more than they were due, draining over $42 million across Arbitrum and Avalanche. The protocol halted minting and paused redemptions in response.
Published on medium.com
On the morning of July 9, 2025, investors woke to news that GMX — one of the most trusted decentralized exchanges (DEXs) in Web3 — had suffered a devastating exploit. Over $42 million was siphoned from its GMX V1 GLP liquidity pools across the Arbitrum and Avalanche chains.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the redemption function updated its internal accounting only after making an external call, so a re-entrant call could read stale state and redeem at an inflated value.
Impact
Over $42 million was taken from the GLP pools on two chains, and the GMX token fell about 18% within hours as trust and liquidity were hit.
What the attacker needed
Funds in the GLP pool; ability to call the redemption function
The fix
The text does not describe a code fix; it says GMX halted GLP minting, paused redemptions and offered a 10% white-hat bounty for return of the funds.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A smart contract is a program that runs on a blockchain and holds funds. Reentrancy is when that program calls out to another contract before it has finished updating its own records, so the other contract can call back in and trick it into paying out twice. Here the attacker used that gap to get more money than their tokens were worth.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.