A critical balance-handling flaw was exploited across six blockchains, exposing the risks of silent patching, incomplete asset inventories, and vulnerable shared code.

A critical vulnerability in the Cosmos EVM framework has become a major lesson in how a software flaw can escalate into a multi-organization security incident.

The vulnerability, tracked as GHSA-7g4w-cg88-2cq2, affected multiple versions of the shared Cosmos EVM module and was ultimately exploited to drain funds from six blockchain networks between August 20 and August 25, 2026.

The incident is particularly significant because Cosmos Labs knew by August 13 that the vulnerability affected all Cosmos EVM chains, regardless of their decimal configuration. However, the issue continued through a patching process originally intended for vulnerabilities that were not expected to threaten funds on production networks.

The situation demonstrates a difficult reality for software ecosystems: once a vulnerability affects shared infrastructure, patching the upstream project is only one part of the problem.

A vulnerability that escaped its original assessment

The flaw was reported through the Cosmos Labs bug bounty program on April 25.

At the time, researchers and developers assessed that the issue did not put funds on live networks at risk. Cosmos Labs later discovered that this assessment was incorrect.

The initial analysis focused heavily on networks using particular decimal configurations. The team eventually confirmed that all Cosmos EVM chains were vulnerable.

That change in understanding should have significantly altered the incident response strategy.

Instead, Cosmos Labs proceeded with its silent patching process because the fix had already been publicly available on the main branch and the team believed there was no known exploitation.

That assumption proved costly.

How the balance flaw could be abused

The vulnerability exists in the process that reconciles Ethereum Virtual Machine state with the Cosmos SDK banking system.

The EVM tracks an account's spendable balance, while Cosmos SDK vesting accounts can maintain both spendable and locked balances.

The problem occurs when a vesting account delegates more funds than its spendable balance.

An unchecked subtraction can cause the balance to wrap around to an extremely large value. The reconciliation mechanism can then interpret the resulting balance difference as a legitimate amount that needs to be minted or burned.

This creates an opportunity for an attacker to manipulate balances and potentially drain funds.

The attack could also be used against another account by manipulating the reconciliation process so that the system attempts to burn the victim's actual holdings.

In other words, a relatively small accounting error became a mechanism capable of producing extremely large balance discrepancies.

Six blockchains suffered exploitation

Cosmos Labs confirmed that attackers leveraged the vulnerability against six chains.

The affected assets were reportedly worth millions of dollars, with Cosmos Labs estimating approximately $2.87 million in affected assets sold through decentralized exchanges based on August 19 prices.

The company also estimated another $2.85 million was sold through centralized exchanges.

These figures have not been independently audited, so they should be treated as incident estimates rather than confirmed loss totals.

Nevertheless, the scale demonstrates how quickly a vulnerability in shared blockchain infrastructure can translate into financial consequences across multiple independent networks.

The patching process became part of the problem

One of the most important lessons from this incident involves vulnerability disclosure and patch coordination.

Cosmos Labs maintains a policy stating that vulnerabilities presenting an immediate or network-wide risk should trigger emergency mitigation, private fix distribution, or coordinated upgrades before public disclosure.

However, the team initially categorized this vulnerability differently because it believed production funds were not at risk.

Once the team confirmed that every Cosmos EVM chain was vulnerable, the risk profile had changed.

The incident therefore highlights a critical principle for security teams:

A vulnerability's response strategy must change when its impact assessment changes.

A patching workflow that is appropriate for a low-impact vulnerability may be completely inappropriate for a flaw capable of affecting funds across an entire ecosystem.

Shared code creates shared risk

The Cosmos ecosystem includes more than 115 known public blockchains, while Cosmos Labs acknowledged that it does not maintain a complete registry of networks using its software.

That creates a major coordination challenge.

When a critical vulnerability exists in shared infrastructure, security teams need to answer several questions immediately:

  • Which organizations use the affected component?
  • Which versions are deployed?
  • Which networks are exposed?
  • Who owns each deployment?
  • Who should receive emergency notifications?
  • Which systems require coordinated upgrades?
  • Which deployments have already been exploited?

Without an accurate downstream inventory, even an excellent security patch can fail to reach the organizations that need it.

Forks introduced another complication

The incident also revealed the risks associated with maintaining software forks.

One downstream implementation reportedly applied upstream fixes but remained vulnerable because its fork contained duplicated helper functions. The upstream patch modified one code path while another vulnerable implementation remained active.

This is a critical lesson for organizations maintaining customized versions of open-source software.

Applying a patch by commit or pull request is not always enough.

Security teams should validate the actual runtime path and confirm that the vulnerable behavior no longer exists in the deployed code.

Emergency mitigation may be better than an unsafe upgrade

Cosmos Labs advised operators that systems unable to perform the required upgrade immediately should halt the chain rather than proceed with an unsafe coordinated upgrade.

Operators were also advised to restrict the creation of certain vesting accounts to close the condition required for exploitation.

However, configuration changes alone were not considered a replacement for the official security update.

This reflects an important incident-response principle: when a critical vulnerability can directly affect financial assets, availability may temporarily become preferable to uncontrolled compromise.

For blockchain operators, stopping block production can be disruptive. Allowing an actively exploitable vulnerability to remain available can be significantly worse.

What CISOs and security leaders should learn

Although this incident occurred in blockchain infrastructure, its lessons apply far beyond cryptocurrency.

Organizations that depend on shared open-source components should maintain a current software dependency and supplier inventory.

When a critical vulnerability emerges, security teams should be able to quickly determine:

  1. Where the affected component is deployed.
  2. Which versions are running.
  3. Whether internal forks or custom modifications exist.
  4. Whether the vulnerable functionality is reachable.
  5. Which business processes depend on the component.
  6. Which teams and vendors must coordinate the response.
  7. Whether emergency shutdown or isolation is required.

Security teams should also validate patches in the actual production code path, rather than assuming that a successful build or passing test suite proves the vulnerability has been eliminated.

The bigger cybersecurity lesson

The Cosmos EVM incident is more than a blockchain vulnerability story.

It demonstrates how shared software creates shared exposure.

A single flaw in a commonly deployed component can spread risk across dozens of organizations, while incomplete asset inventories and delayed coordination can turn a technical vulnerability into a systemic incident.

For CISOs and technology leaders, the takeaway is clear: vulnerability management must extend beyond identifying CVEs and installing patches.

Organizations need visibility into their software supply chain, downstream dependencies, custom forks, critical business services, and emergency communication channels.

Knowing that a vulnerability exists is only the beginning. Knowing exactly where it exists—and being able to coordinate a response - is what determines how effectively an organization can contain it.