Close Menu
    Trending
    • Altcoin Season Delayed? Why Smart Capital Is Positioning for Selective Crypto Breakouts in Mid-2026
    • These Catalysts Can Trigger The Next XRP Price Run, But Can It Reach $3?
    • Ethereum Shortfall Says Price Is Headed Lower Unless This Happens
    • What Does Bitcoin “Power Projection” Mean To The U.S. Military?
    • Bitcoin Wallets See Largest Drop Since 2024, Hinting at Market Rebound
    • Upbit’s Dogwifhat Listing Jolts WIF As Traders Chase Solana Memecoins
    • Ethereum Sees Sharp Decline In High-Leverage Long Positions — See What Happens Next
    • Here’s How Ethereum’s Futures And Spot Market On Crypto Exchanges Are Performing
    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

    Ethereum Shortfall Says Price Is Headed Lower Unless This Happens

    May 9, 2026

    Here’s How Ethereum’s Futures And Spot Market On Crypto Exchanges Are Performing

    May 8, 2026

    Ethereum loses 10% of its DeFi market share as rival chains close in

    May 8, 2026

    Why This Crypto Trader Is Loading Up On Ethereum Now

    May 8, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Here’s What The Solana Price Would Be If It Reaches The ATH Market Cap Of Ethereum

    March 12, 2026

    Pundit Highlights Major Move For XRP And RLUSD, Will Price Follow?

    November 5, 2025

    XRP MVRV Flashes Death Cross: More Decline Ahead?

    August 4, 2025

    Bitcoin Mood Sours To Levels Not Seen Since Late February

    April 7, 2026

    Bitcoin Price Jumps 8% Into New Year As Bullish Momentum Builds

    January 7, 2026
    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

    Warning Sign for XRP’s Price: is Ripple in Trouble?

    October 8, 2025

    eth2 quick update no. 10

    November 30, 2025

    ADA Deja Vu? Cardano Price Surged 200% Last Time It Was At This Support Level

    April 18, 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.