Close Menu
    Trending
    • Bitcoin Price Will Not See A Proper Surge Until This Happens; Analyst
    • H100 Eyes Strategic Acquisition To Triple Bitcoin Holdings
    • Cardano Pain Remains High But ADA May Have Bottomed: Santiment
    • Strategy Discloses $42 Billion Fundraising Plan To Hit 1 Million Bitcoin Target By End Of 2026
    • Capital B Acquires 44 Bitcoin, Boosting Holdings To 2,888
    • This Is Why Bitcoin Is a Better Risk Barometer Than Private Equity
    • Solana Shorts Look Crowded: Is SOL Rebound Priced In?
    • The Dogecoin Setup That Could Create New Crypto Millionaires
    CryptoGate
    • Home
    • Bitcoin News
    • Cryptocurrency
    • Crypto Market Trends
    • Altcoins
    • Ethereum
    • Blockchain
    • en
      • en
      • fr
      • de
      • it
      • ja
    CryptoGate
    Home»Ethereum»Security Alert – Solidity – Variables can be overwritten in storage
    Ethereum

    Security Alert – Solidity – Variables can be overwritten in storage

    CryptoGateBy CryptoGateJanuary 2, 2026No Comments2 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Abstract: In some conditions, variables can overwrite different variables in storage.

    Affected Solidity compiler variations: 0.1.6 to 0.4.3 (together with 0.4.4 pre-release variations)

    Detailed description:

    Storage variables which are smaller than 256 bits are packed collectively into the identical 256 bit slot if they will match. If a worth bigger than what’s allowed by the kind is assigned to the primary variable, that worth will overwrite the second variable.

    This implies if an attacker may cause an overflow within the worth of the primary variable, then the second variable will be modified. Creating an overflow within the first variable is feasible utilizing arithmetics or by instantly passing in a worth from the decision information (values in name information are aligned to 32 bytes, and padding is neither verified nor enforced).

    Contracts that solely use the categories listed under for state variables are not affected. Arrays, mappings and structs (based mostly on these following varieties) are additionally not affected:

    • signed integers, together with sizes smaller than 256 bits
    • bytesNN varieties, together with sizes smaller than 256 bits
    • unsigned integers (uint) of 256 bits

    Contracts with varieties smaller than 256 bits which are by no means subsequent to one another (observe that state variables of base contracts are “pulled in”) are not affected.

    The Ethereum multisignature pockets contract is not affected.
    Observe that addresses take up 160 bits, so contracts that solely use addresses and 256-bit varieties are protected. Moreover, addresses and booleans are nearly by no means manipulated by way of arithmetic operations in observe, so contracts utilizing solely addresses, booleans and 256 bit varieties must also be protected.

    The next contracts could also be affected:
    Contracts containing two or extra contiguous state variables the place the sum of their sizes is lower than 256 bits and the primary state variable is just not a signed integer and never of bytesNN sort.

    Sorts smaller than 256 bits embody:
    bool, enums, uint8, …, uint248, int8, …, int248, deal with, any contract sort

    Really helpful motion:

    • Recompile contracts that haven’t but been deployed utilizing no less than Solidity launch 0.4.4 (not the pre-release or nightly model).
    • Deactivate, take away funds from, or improve already deployed contracts.

    This vulnerability was discovered by [github.com/catageek](https://github.com/catageek): [https://github.com/ethereum/solidity/issues/1306](https://github.com/ethereum/solidity/points/1306)



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    CryptoGate
    • Website
    • Pinterest

    Related Posts

    How L1 and L2s can build the strongest possible Ethereum

    March 23, 2026

    Ethereum Goes Institutional With Yield, Unlocking New Earning Opportunities

    March 23, 2026

    Ethereum OG Whale Returns To Market With $19.5M ETH Buy — Details

    March 22, 2026

    Ethereum Price Won’t Crash To $1,500 Until This Happens First, Analyst Reveals

    March 21, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Bitcoin Enters ‘Boring’ Sideways Phase as Inflows Stall

    January 9, 2026

    How Liquidity Stress and Tax Moves Are Dragging Bitcoin Down

    November 14, 2025

    Bitcoin’s (BTC) Late-Stage Rally Is a Trap for New Buyers as Expert Warns Cycle Exhaustion

    September 22, 2025

    Bitcoin Soars Beyond $114K, Ethereum Spikes 6% as US-China Tensions Ease

    October 12, 2025

    Pi Network Price Crashes 88% Since Launch, New Developments Say Further Decline Is Coming

    September 17, 2025
    Categories
    • Altcoins
    • Bitcoin News
    • Blockchain
    • Crypto Market Trends
    • Crypto Mining
    • Cryptocurrency
    • Ethereum
    About us

    Welcome to cryptogate.info — your trusted gateway to the latest and most reliable news in the world of cryptocurrency. Whether you’re a seasoned trader, a blockchain enthusiast, or just curious about the future of digital finance, we’re here to keep you informed and ahead of the curve.

    At cryptogate.info, we are passionate about delivering timely, accurate, and insightful updates on everything crypto — from market trends, new coin launches, and regulatory developments to expert analysis and educational content. Our mission is to empower you with knowledge that helps you navigate the fast-paced and ever-evolving crypto landscape with confidence.

    Top Insights

    How Legal Insider Trading Data Can Improve Your Stock Entry Timing

    January 17, 2026

    Bitcoin Breaks Above Mid-Term Holder Breakeven

    September 13, 2025

    Bitcoin Bear Market Could Be Shrinking, But Are We Watching History Repeating Itself?

    March 8, 2026
    Categories
    • Altcoins
    • Bitcoin News
    • Blockchain
    • Crypto Market Trends
    • Crypto Mining
    • Cryptocurrency
    • Ethereum
    YouTube
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • Impressum
    • About us
    • Contact us
    Copyright © 2025 CryptoGate All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.