Close Menu
    Trending
    • Toss Bank Tests Solana Stablecoin Rails For Overseas Transfers
    • Latest bear market victim shows how quickly DeFi users are left behind when crypto projects move on
    • BlackRock Tells Investors To Put Bitcoin In Their Portfolios
    • Binance Makes a New Push to Secure EU Approval
    • Securitize Tokenizes Roubini-Linked ETF Under Dubai VARA Framework
    • Ethereum Foundation cuts 20% of staff as ETH sinks 44% YTD despite record usage
    • European Union’s ESMA Orders Unlicensed Crypto Firms To Exit EU Market As MiCA Deadline Arrives
    • Here’s Why BTC’s Price Could Crash Below $38K (Analyst)
    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

    Latest bear market victim shows how quickly DeFi users are left behind when crypto projects move on

    June 24, 2026

    Ethereum Foundation cuts 20% of staff as ETH sinks 44% YTD despite record usage

    June 24, 2026

    Crypto users told to pull funds after Ethereum L2 bridge failure exposes rollup exit risk

    June 24, 2026

    The EF’s new structure | Ethereum Foundation Blog

    June 23, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Plasma (XPL Crypto) Loses 85 % of Its Value in Six Weeks: What Happened?

    November 23, 2025

    EstateX Partners with Justin Sun’s Liberland Republic for Tokenization

    September 24, 2025

    Bitcoin Mining And Crypto Stocks Fall As Bitcoin Slumps More

    October 16, 2025

    Nearly All ETH Held by Companies Was Purchased in Past Quarter Alone

    October 16, 2025

    Kanye’s YZY Reich Rises, Falls 60% After Launch Hype

    August 22, 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

    Join Us: EF Protocol Reddit AMA – August 29th, 2025

    August 17, 2025

    Goldman Sachs Issues Dollar Warning As Bitcoin Challenges Gold

    September 6, 2025

    Bitcoin-Treasury Smarter Web Company Debuts On LSE

    February 4, 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.