GMX Hack

TOTAL LOST $42.0M
High #142 All-Time Other

Summarize with AI

Affected Chain 2025 Incident surface
Recovered $37.0M 88.1% returned
All-Time Rank #142 By amount stolen
Protocol Type Exploit/Other Target category

Incident Overview

On July 9, 2025, GMX v1 was exploited for approximately $42 million due to a vulnerability that allowed a malicious contract to manipulate internal accounting and withdraw more funds than it should have. The attack affected the GLP pool on Arbitrum; other GMX deployments were not impacted. GMX has paused relevant operations and offered a bounty for the return of funds.

The attacker abused PositionManager.executeDecreaseOrder() by using a smart contract as the _account parameter, which triggered ETH refunds with no gas limit, enabling reentrancy. Within the callback, the attacker opened large short positions, causing getAum() in GlpManager.sol to register unrealized losses and inflate the protocol’s Assets Under Management (AUM). This inflated AUM was then used to redeem GLP tokens at an overvalued rate, draining ETH, USDC, and WBTC from the vault.

This loop was executed multiple times, resulting in ~$42M in total losses. The GMX team confirmed the issue was limited to v1’s GLP vault on Arbitrum, paused related functions, and initiated a bounty program for fund recovery.

Exploit tx:

https://arbiscan.io/tx/0x03182d3f…2626ef

Incident Report

Protocol / Project GMX
Date of Incident
Attack Technique Other
Classification Exchange (DEX)

Protocol Information

Protocol Type Exploit/Other
Official Website gmx.io/#/
Protocol Twitter/X @GMX_IO
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Price at Hack $14.12
Market Cap at Hack $144.0M
% of Market Cap Stolen 29.16%
Token Categories
Decentralized Exchange (DEX) Token DeFi Derivatives DEX Avalanche Ecosystem Solana Ecosystem Arbitrum Ecosystem Binance Ecosystem

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in GMX's contract logic - root cause: exchange (dex)
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely — with a thorough Other audit checklist and test coverage

If you're auditing a protocol with similar architecture to GMX, these are the critical security checks that could have prevented this incident (July 2025).

  • Verify all logic paths related to Other are guarded by proper access controls and input validation
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Funds Recovery

88.1%

Recovered

$37.0M

Net Loss

4998000

Sources & References

Learn to Prevent the Next GMX

The GMX hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial