CVE-2018-13778
Description
The mintToken function of a smart contract implementation for CGCToken, an Ethereum token, has an integer overflow that allows the owner of the contract to set the balance of an arbitrary user to any value.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An integer overflow in CGCToken's mintToken function lets the owner arbitrarily set any user's balance, enabling infinite token creation.
Vulnerability
The mintToken function in the CGCToken smart contract contains an integer overflow vulnerability. The contract allows the owner to mint tokens to any address, and due to the absence of overflow protection (e.g., SafeMath), calling mintToken with a large mintedAmount can cause an arithmetic overflow in the balance update. Affected versions include all deployments of the CGCToken contract identified at [1] [2].
Exploitation
An attacker who is the contract owner (or gains owner privileges) can exploit this by calling mintToken with a carefully crafted mintedAmount value that causes an integer overflow. This results in the target address's balance being set to an attacker-chosen value rather than the intended increment [1]. No user interaction or special network position is required beyond being the contract owner.
Impact
Successful exploitation allows the owner to arbitrarily adjust the token balance of any address, inflating the total supply without limit. This can be used to devalue the token, drain liquidity pools, or manipulate any token-based logic that depends on balances. The privilege level is owner-only, but the impact on token economics and trust is critical [1].
Mitigation
No official patched version of CGCToken has been released. Developers should use SafeMath for arithmetic operations or implement overflow checks in the mintToken function. The contract remains unpatched as of the reference publication date [1].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- github.com/BlockChainsSecurity/EtherTokens/blob/master/GEMCHAIN/mint%20integer%20overflow.mdmitrex_refsource_MISC
- github.com/BlockChainsSecurity/EtherTokens/tree/master/CGCTokenmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.