Wiki/The Parity Multisig Wallet Hack Explained
The Parity Multisig Wallet Hack Explained - Biturai Wiki Knowledge
ADVANCED | BITURAI KNOWLEDGE

The Parity Multisig Wallet Hack Explained

The Parity Multisig Wallet hack was a significant event in Ethereum's early history, leading to the loss of millions of dollars in Ether. It highlighted critical vulnerabilities in smart contract design and the risks associated with

Biturai Knowledge
Biturai Knowledge
Research library
Updated: 6/27/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

A multisig wallet (multi-signature wallet) is a type of cryptocurrency wallet that requires multiple private keys to authorize a transaction. This enhances security by distributing control and preventing a single point of failure.

The Parity Multisig Wallet hack refers to a series of security incidents in 2017 that affected a popular multi-signature wallet implementation developed by Parity Technologies for the Ethereum blockchain. These incidents resulted in the theft of approximately $31 million worth of Ether in the first event and the freezing of over $150 million worth of Ether in a subsequent, related event. The core issue was not a flaw in the Ethereum protocol itself, nor in Parity's client software, but rather a critical vulnerability within the specific smart contract code used for the multisig wallets. This vulnerability allowed unauthorized access and manipulation of funds, underscoring the nascent challenges in smart contract security at the time.

Key Takeaway

The primary lesson from the Parity Multisig Wallet hack is the paramount importance of rigorous security audits, robust design patterns, and comprehensive testing for smart contracts, especially those managing significant assets. The incident demonstrated that even well-intentioned and widely adopted smart contract implementations can harbor critical flaws if fundamental security principles, such as proper initialization and careful use of delegatecall, are overlooked. It served as a stark reminder that code is law on the blockchain, and vulnerabilities, once exploited, are often irreversible, leading to permanent loss or freezing of funds.

Mechanics

The Parity Multisig Wallet vulnerability stemmed from a specific design choice involving a library contract and the delegatecall opcode. In Solidity, delegatecall allows a contract to execute code from another contract (the library) in the context of the calling contract's storage. This means the library's code operates on the calling contract's data, making it a powerful but dangerous tool if not used carefully.

Parity's multisig wallet implementation used a proxy pattern where individual wallet contracts would delegatecall to a shared library contract for their core logic. The critical flaw was that the library contract itself, which contained the initWallet function (responsible for setting the wallet's owner), was deployed without being initialized. This meant that anyone could call initWallet directly on the library contract itself, effectively becoming its owner.

In the initial $31 million hack, an attacker identified this uninitialized library contract. They called the initWallet function on the library, claiming ownership. Once the attacker was the owner of the library, they could then invoke the execute function (or similar fund transfer function) on the library, which, due to the delegatecall mechanism, allowed them to drain funds from any multisig wallet that relied on that specific library instance. The attacker sent two transactions to each affected contract: one to obtain exclusive ownership of the MultiSig, and the second to move all its funds. This was possible because the library, being uninitialized, could be "claimed" by anyone, and then its functions, when called directly, would operate on its own (empty) storage, but when called via delegatecall from a wallet, would operate on the wallet's storage. The attacker exploited this to become the owner of the library itself, not necessarily the individual wallets directly, but then used the library's functions to affect the wallets.

A subsequent, even larger incident occurred months later, freezing over $150 million. This was caused by a different, though related, vulnerability. After the initial hack, Parity deployed an updated library. However, this new library also had an initialization flaw. A user (who later claimed it was accidental) called the initWallet function on the new library contract, becoming its owner. Then, this user accidentally called the kill function (or selfdestruct) on the library contract. Because hundreds of multisig wallets were relying on this library via delegatecall, when the library contract was "killed," all the funds in those dependent multisig wallets became permanently inaccessible. The delegatecall mechanism meant that the wallet contracts were essentially proxies; without the underlying library code, they had no functionality to manage their funds. This effectively froze the Ether, as there was no longer any code to execute transactions from those wallets.

Trading Relevance

While the Parity Multisig Wallet hack was a direct security incident rather than a market manipulation event, its implications for traders are significant, particularly concerning risk management and due diligence. For traders holding substantial amounts of Ether or other tokens in smart contract-based wallets, understanding such vulnerabilities is paramount. The hack underscored that the security of funds is not solely dependent on the underlying blockchain protocol but also heavily on the security of the smart contracts interacting with it.

Traders must recognize that the security landscape of decentralized finance (DeFi) and blockchain assets is continuously evolving. Relying on unaudited or poorly designed smart contracts, even from reputable developers, can expose assets to catastrophic loss. This incident reinforced the need for traders to diversify their storage solutions, utilize hardware wallets for cold storage, and thoroughly research the security track record and audit reports of any smart contract or platform they entrust with their capital. Furthermore, it highlighted the systemic risk that a single smart contract vulnerability can pose to a significant portion of the ecosystem, potentially leading to market instability or loss of confidence, which can indirectly impact trading decisions and asset valuations.

Risks

The Parity Multisig Wallet hack exemplifies several inherent risks associated with smart contracts and decentralized applications. Foremost among these is smart contract risk, which refers to the potential for bugs, vulnerabilities, or unintended behavior within the contract's code. Unlike traditional software, errors in smart contracts are often immutable and can lead to irreversible loss of funds, as demonstrated by both the theft and freezing incidents. This risk is amplified by the complexity of smart contract interactions, especially when using advanced features like delegatecall or external libraries.

Another significant risk is operational risk stemming from human error. In the case of the $150 million freezing incident, the accidental kill of the library contract by a user highlights how even non-malicious actions can have devastating consequences due to underlying design flaws. This underscores the need for robust error handling, clear documentation, and user interfaces that prevent such critical mistakes. Furthermore, the incident exposed the systemic risk associated with widely adopted, yet flawed, smart contract patterns. When many projects rely on the same vulnerable code, a single exploit can impact a large segment of the ecosystem, leading to widespread financial losses and a potential erosion of trust in the technology. Mitigating these risks requires continuous security audits, formal verification, bug bounty programs, and a commitment to best practices in smart contract development and deployment.

History and Examples

The history of the Parity Multisig Wallet hack is marked by two distinct, yet related, security incidents that profoundly impacted the Ethereum ecosystem. The first incident occurred on July 19, 2017. An unknown attacker exploited a vulnerability in Parity's multisignature wallet contract, specifically targeting wallets that had been deployed using a particular version of the contract code. The flaw allowed the attacker to become the owner of the multisig wallet and subsequently drain approximately $31 million worth of Ether from three large wallets, including funds belonging to prominent projects like Swarm City and æternity. This initial hack prompted an immediate response from the Ethereum community, with white-hat hackers working to secure other vulnerable wallets by draining them into safe addresses and returning the funds.

The second, more severe incident took place on November 6, 2017. This event did not involve theft but rather the permanent freezing of funds. Following the first hack, Parity had deployed an updated version of their multisig wallet library. However, this new library also contained a critical flaw: it was still possible to initialize the library contract itself. A user, identified as "devops199," reportedly accidentally called the initWallet function on the library contract, becoming its owner. Subsequently, this user then called the kill function on the library contract, effectively self-destructing it. Because hundreds of multisig wallets were designed to delegatecall to this now-destroyed library for their core logic, all funds held within these wallets – estimated at over $150 million worth of Ether – became permanently inaccessible. This incident highlighted the extreme immutability of blockchain transactions and the irreversible nature of smart contract errors, even when unintentional.

Common Misunderstandings

One of the most common misunderstandings surrounding the Parity Multisig Wallet hack is that it was a vulnerability in the Ethereum blockchain protocol itself or a flaw in the core Parity client software. This is incorrect. The exploit was specifically a vulnerability in the smart contract code that Parity provided as a template for users to deploy their own multisignature wallets. Ethereum's underlying protocol remained secure and functioned as intended throughout both incidents. The issue lay entirely within the application layer, demonstrating that while the blockchain provides a secure foundation, the applications built on top of it are only as secure as their code.

Another frequent misconception is that the two incidents were identical or part of a single continuous attack. While related by the underlying design pattern (use of an uninitialized library with delegatecall), they were distinct events with different outcomes. The first was a theft of funds by a malicious actor, whereas the second was an accidental freezing of funds due to a user inadvertently destroying the library contract. Furthermore, some might mistakenly believe that all Parity wallets were affected. In reality, only multisig wallets deployed using the specific vulnerable versions of the smart contract code were at risk. Wallets using other multisig implementations, such as those from OpenZeppelin, were explicitly confirmed to be unaffected. These distinctions are important for accurately understanding the nature of smart contract security and the specific vectors of attack.

Summary

The Parity Multisig Wallet hack stands as a seminal event in the history of smart contract security, serving as a powerful case study for the entire blockchain industry. It underscored the profound implications of even subtle coding errors in immutable environments, leading to both direct theft and the permanent freezing of substantial digital assets. The incidents were not a failure of the Ethereum protocol but rather a critical flaw in a widely adopted smart contract implementation, specifically concerning the initialization of a library contract and its interaction via delegatecall. The lessons learned from Parity's experience have profoundly influenced smart contract development practices, emphasizing the absolute necessity of rigorous security audits, formal verification, and adherence to secure design patterns. For anyone involved in the crypto space, from developers to traders, the Parity hack remains a potent reminder that security is paramount and requires continuous vigilance and education.

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.