Wiki/Cetus Protocol Hack 2025 on Sui: An In-Depth Analysis
Cetus Protocol Hack 2025 on Sui: An In-Depth Analysis - Biturai Wiki Knowledge
ADVANCED | BITURAI KNOWLEDGE

Cetus Protocol Hack 2025 on Sui: An In-Depth Analysis

In May 2025, the Cetus Protocol, a leading decentralized exchange on the Sui blockchain, suffered a major exploit resulting in an estimated $223 million loss. This incident highlighted critical vulnerabilities in smart contract logic and

Biturai Knowledge
Biturai Knowledge
Research library
Updated: 7/2/2026
Technically checked

Structure, readability, internal linking, and SEO metadata were automatically checked. This article is continuously updated and is educational content, not financial advice.

Definition

The Cetus Protocol is a prominent decentralized exchange (DEX) and concentrated liquidity protocol operating on the Sui and Aptos blockchains, specifically designed for Move-based ecosystems. It enables efficient token trading and liquidity provision within these environments. In May 2025, Cetus Protocol became the victim of a significant security breach, where an attacker exploited a fundamental flaw in its smart contract code. This incident, widely known as the Cetus Protocol Hack 2025, resulted in the draining of approximately $223 million in assets from the protocol's liquidity pools. The core of the vulnerability lay in an integer overflow, a programming error that occurs when an arithmetic operation attempts to create a numeric value that is larger than the maximum size that can be stored or represented by the allocated memory space. In the context of blockchain, such an error can lead to incorrect calculations, unintended state changes, and ultimately, the unauthorized transfer of funds.

An integer overflow is a condition that arises when a calculation produces a result that exceeds the maximum value that a data type can hold, causing the value to wrap around to a minimum or unexpected value, often leading to critical security vulnerabilities in smart contracts.

Key Takeaway

The Cetus Protocol hack serves as a stark reminder of the inherent risks associated with complex smart contract development and the absolute necessity of rigorous security auditing in the decentralized finance (DeFi) sector. The incident underscored that even a seemingly minor logical flaw in a mathematical function can have catastrophic financial consequences, impacting not only the protocol itself but also the broader ecosystem it operates within. For participants in DeFi, this event reinforces the importance of understanding the underlying technical risks of protocols and the continuous need for vigilance, even in projects that are considered established or foundational to an ecosystem. It highlights that the security and resilience of blockchain designs and their applications are paramount, demanding meticulous code security testing and ongoing scrutiny.

This event also emphasized that the promise of decentralization does not inherently equate to invulnerability. While blockchain technology offers transparency and immutability, the applications built upon it are susceptible to human error in coding. The $223 million loss from Cetus Protocol demonstrated that the financial stakes in DeFi are immense, making robust security practices, including formal verification and extensive testing, indispensable for preventing similar exploits. The incident became a case study for how a single, incorrect number or a flawed overflow protection mechanism can undermine an entire protocol's integrity and lead to a complete draining of its liquidity.

Mechanics

The Cetus Protocol exploit on May 22, 2025, stemmed from a critical vulnerability within the protocol's internal pricing system, specifically an integer overflow guard in its u256 fixed-point math implementation. The flaw was identified in the checked_shlw function, which is designed to determine if an overflow would occur when a value is shifted left by one 64-bit word. This function is integral to calculating liquidity parameters in Cetus's concentrated liquidity market maker (CLMM) pools. The attacker targeted the add-liquidity path, where a single incorrect number in the checked_shlw function undermined the overflow protections, allowing a shift-left scaling step in Cetus’s u256 fixed-point math to overflow silently. This silent overflow corrupted the token-delta calculation for adding liquidity.

By manipulating the liquidity parameter to an extremely high value, the attacker caused an overflow in the intermediate calculations that went undetected due to a flawed truncation check. This vulnerability, more precisely termed MSB (most significant bits) truncation, allowed the attacker to mint an astronomical amount of CLMM liquidity for a negligible deposit. With this artificially inflated liquidity, the attacker was then able to withdraw significant reserves from the affected pools, leading to the estimated $223 million loss. The analysis of the incident, aided by tools like Verichains’ Revela-next decompiler, confirmed that this subtle flaw in the overflow protection mechanism was the root cause, enabling the complete draining of liquidity from the protocol.

Trading Relevance

The Cetus Protocol hack had immediate and far-reaching consequences for the crypto market, particularly within the Sui ecosystem. The price of the Sui (SUI) token plummeted by approximately 15% to $3.81 within days following the exploit. Such events typically trigger significant market volatility, which can present short-term trading opportunities for experienced traders who are adept at speculating on rapid price movements. However, they simultaneously amplify risks for all market participants, especially liquidity providers (LPs) and holders of the affected tokens. Traders engaging with DeFi protocols or providing liquidity must be acutely aware of potential smart contract risks and integrate these into their comprehensive risk assessments. A thorough understanding of the mechanics behind such exploits is paramount for making informed decisions and mitigating potential losses.

For liquidity providers, a hack of this magnitude represents a direct threat to their deposited assets. The possibility of a protocol being drained due to a coding flaw underscores the critical need for extensive due diligence before committing liquidity. The incident also severely impacted confidence in the Sui DeFi ecosystem, echoing the sentiment observed after the Mango Markets exploit in 2022, which shook trust in Solana's DeFi sector. This erosion of confidence can lead to a reduction in trading volume and overall liquidity, thereby impairing market efficiency. In the long term, such events often catalyze increased regulation and stricter security standards across the entire DeFi industry, fundamentally altering the landscape for both traders and protocol developers. The ability to anticipate and effectively respond to these security incidents is a vital component of successful crypto trading.

Risks

The Cetus Protocol hack vividly illustrates a spectrum of pervasive risks within the DeFi sector. The primary concern is Smart Contract Risk, which arises from the inherent complexity and potential fallibility of code. Even after undergoing audits, subtle errors can remain undetected and subsequently be exploited by malicious actors. These vulnerabilities can directly lead to substantial financial losses for users and liquidity providers, as their assets can be illicitly siphoned from the protocols. Furthermore, such incidents severely damage trust in the affected protocol and the broader ecosystem, potentially resulting in a decline in user adoption, trading volume, and overall investment. This constitutes a significant Reputational Risk for both the protocol and its underlying blockchain.

Another critical concern is Systemic Risk. The exploit of a major protocol like Cetus, which served as the primary DEX on Sui, can have cascading effects throughout the entire ecosystem. The observed price depreciation of the SUI token post-hack is a clear manifestation of this. Such events can trigger a chain reaction, impacting other interconnected protocols and projects within the same ecosystem. For investors and traders, this translates into heightened Market Risk and Volatility Risk. Consequently, the imperative for continuous security research and rigorous code audits becomes paramount to effectively mitigate these dangers. The specific risks associated with Move-based ecosystems are particularly noteworthy, as the language's complexity and its runtime environment introduce unique security challenges that may extend beyond those found in more traditional smart contract platforms.

History and Examples

The Cetus Protocol hack, which occurred on May 22, 2025, stands as one of the largest DeFi exploits in the history of cryptocurrencies. The incident, resulting in an estimated loss of $223 million, adds to a growing list of significant security breaches within the decentralized finance landscape. A prominent historical parallel is the Mango Markets Exploit in 2022, where $114 million was stolen. Similar to the Cetus incident, the Mango Markets hack led to a drastic decline in its governance token (over 50%) and severely eroded confidence in the Solana DeFi ecosystem for weeks. These historical examples underscore a recurring pattern: vulnerabilities in smart contracts, often stemming from subtle mathematical errors, can be exploited by attackers to achieve substantial financial gains.

The post-mortem analysis of the Cetus hack was significantly aided by advanced tools such as the Revela-next Decompiler by Verichains, which leverages AI to decompile Move bytecode into readable source code. Such detailed analyses are crucial for understanding the precise root cause of exploits and for developing strategies to prevent future attacks. The Cetus hack also serves as a cautionary tale regarding the risks associated with developing on newer blockchain platforms like Sui. While these platforms offer innovative functionalities and improved performance, they can also introduce novel attack vectors and rely on less battle-tested codebases. The history of DeFi exploits consistently teaches that the inherent complexity of protocols and the absolute necessity of flawless code implementation represent an ongoing challenge that can only be addressed through continuous research, comprehensive audits, and the development of robust security tools.

Common Misunderstandings

A frequent misunderstanding surrounding the Cetus hack and similar exploits pertains to the precise technical terminology used to describe the vulnerability. While the term "integer overflow" is widely adopted and generally understood, the specific technical root cause in Cetus's case was more accurately identified as MSB (Most Significant Bits) truncation. This distinction is crucial: MSB truncation occurs when the most significant bits of a number are inadvertently cut off during a calculation, leading to an incorrect result, rather than the number simply exceeding its maximum representable value and "wrapping around." This nuance is significant for developers and security experts, as it points to different types of implementation errors and, consequently, different prevention strategies. However, for a broader audience, "overflow" is often used as a simplified, more accessible explanation.

Another prevalent misconception is the belief that an audited smart contract is inherently infallible. The Cetus Protocol, like many other major DeFi projects, had undoubtedly undergone security audits. Yet, the hack unequivocally demonstrates that while audits are indispensable, they do not offer an absolute guarantee of security. Audits represent a snapshot in time and can potentially overlook particularly subtle or complex flaws, especially within new or rapidly evolving codebases. Furthermore, the complexity of fixed-point arithmetic in smart contracts, particularly when dealing with large numbers and scaling operations, is often underestimated. Many developers may not be fully aware of the potential pitfalls in implementing such mathematical operations, which can lead to critical errors like the one found in the checked_shlw function. Finally, there is a common misconception that only smaller or lesser-known protocols are susceptible to exploits; the Cetus hack serves as a powerful counter-example, proving that even established and large projects with substantial liquidity are vulnerable.

Summary

The Cetus Protocol hack in May 2025 on the Sui blockchain was a landmark event in the history of decentralized finance, resulting in the loss of approximately $223 million. The root cause was a critical integer overflow vulnerability, more precisely an MSB truncation, within the protocol's checked_shlw function. This flaw allowed an attacker to manipulate the liquidity parameter, mint astronomical amounts of liquidity, and subsequently drain the protocol's pools. This incident profoundly underscores the deep-seated risks associated with the complexity of smart contracts and the absolute necessity of flawless code implementation. The repercussions extended from a significant price drop of the SUI token to a broader erosion of trust within the entire Sui ecosystem.

The lessons gleaned from the Cetus hack are multifaceted: it emphasizes the paramount importance of stringent security audits, continuous research and development of advanced security tools, and unwavering vigilance from traders and liquidity providers. The event serves as a potent reminder that even in established protocols, subtle programming errors can have devastating consequences, and that security in the blockchain world remains an ongoing and evolving challenge. For the future trajectory of the DeFi sector, it is imperative to meticulously learn from such incidents to develop more robust and resilient protocols, thereby strengthening user confidence in this innovative financial technology. A precise and thorough analysis of attack mechanics is fundamental for the continued advancement of secure blockchain applications.

OKX · Official Biturai Partner

OKX

Explore the current OKX offering through the official Biturai partner link. Products and availability may vary by country.

Explore OKX

Partner link · Biturai may receive compensation when it is used · not investment advice

OKX

Disclaimer

This article is for informational purposes only. The content does not constitute financial advice, investment recommendation, or solicitation to buy or sell securities or cryptocurrencies. Biturai assumes no liability for the accuracy, completeness, or timeliness of the information. Investment decisions should always be made based on your own research and considering your personal financial situation.

Transparency

Biturai may use AI-assisted tools to research, structure, or update Wiki articles. Editorially reviewed articles are marked separately; all content remains educational and does not replace your own review.