Close Menu
    Trending
    • Bitcoin STH Profit-Taking Ramps Up As Price Breaks $74,000
    • Bitcoin Price Dances Near $75,000 As Market Questions ‘Decoupling’ Narrative
    • Major Governance Platform Tally Announces Shutdown Amid Regulatory Shifts
    • SOL Bottomed, Now A Rare Pattern Predicts Huge Rally
    • Ethereum Price Upside Heats Up — $2,500 Barrier in Focus
    • Ethereum Remains The Top Network For Tokenized Assets As Adoption Grows
    • Jack Mallers Confirmed As A Bitcoin 2026 Speaker
    • Argentina Orders Nationwide Block on Polymarket Over Unlicensed Gambling
    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 Remains The Top Network For Tokenized Assets As Adoption Grows

    March 18, 2026

    Ethereum Leverage Climbs After Historic Liquidation Event – New Cycle Starting?

    March 17, 2026

    Ethereum Foundation Moves $10M ETH After First-Ever Staking — More Coming?

    March 17, 2026

    Ethereum Foundation Is Dumping ETH Again, But The Buyer Is Even More Interesting

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

    Top Posts

    Mastercard Joins Ripple, Gemini to Test RLUSD on XRPL

    November 7, 2025

    Bitcoin’s Lightning Network Passes $1 Billion In Monthly Volume

    February 20, 2026

    Ethereum’s energy usage will soon decrease by ~99.95%

    November 11, 2025

    Senate Democrats, Crypto Reps Resume Talks After Bill Delay

    January 16, 2026

    Ether Exchange Supply Falls To 6-Year Low on Binance

    March 5, 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

    Bitcoin Will Go To $1 Million, Telegram Founder Durov Predict

    October 1, 2025

    Bear Market Incoming or $150K Breakout on the Horizon?

    October 20, 2025

    Acacia Partners With Unchained And Build On Bitcoin-Backed Loan Strategy

    August 7, 2025
    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.