Close Menu
    Trending
    • Ethereum Sheds 5% Amid Market Pullback, Raising Risks of Deeper Correction
    • Czech Central Bank Buys $1 Million In Bitcoin And Crypto
    • RISE Evolves Beyond Fastest Layer 2 into the Home for Global Markets, with RISE MarketCore and RISEx.
    • SUI Silent Comeback: The Underdog Preparing For A $20 Charge
    • Amboss, Voltage Partner To Make Bitcoin Payments Profitable
    • 2019 Blocklist Was Not a Secret Kill Switch
    • $1.33B Ethereum Whale Just Moved Another $120M USDT to Binance – Details
    • Here’s Why Ethereum Fusaka Upgrade Might Trigger The Next Explosive Leg Up For ETH
    Facebook X (Twitter) Instagram YouTube
    Finance Insider Today
    • Home
    • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • Market Trends
    • More
      • Blockchain
      • Mining
    • Sponsored
    Finance Insider Today
    Home»Ethereum»Security Alert – Solidity – Variables can be overwritten in storage
    Ethereum

    Security Alert – Solidity – Variables can be overwritten in storage

    Finance Insider TodayBy Finance Insider TodayJuly 5, 2025No 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 can be 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 sort is assigned to the primary variable, that worth will overwrite the second variable.

    This implies if an attacker could 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 straight passing in a worth from the decision knowledge (values in name knowledge are aligned to 32 bytes, and padding is neither verified nor enforced).

    Contracts that solely use the categories listed beneath for state variables are not affected. Arrays, mappings and structs (primarily based 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 can be by no means subsequent to one another (notice 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 virtually by no means manipulated by way of arithmetic operations in observe, so contracts utilizing solely addresses, booleans and 256 bit varieties also needs to 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 just isn’t a signed integer and never of bytesNN kind.

    Sorts smaller than 256 bits embrace:
    bool, enums, uint8, …, uint248, int8, …, int248, tackle, any contract kind

    Beneficial motion:

    • Recompile contracts that haven’t but been deployed utilizing a minimum of 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
    Finance Insider Today

    Related Posts

    Here’s Why Ethereum Fusaka Upgrade Might Trigger The Next Explosive Leg Up For ETH

    November 14, 2025

    JPMorgan just put JPM Coin bank deposits on Base

    November 13, 2025

    Ethereum’s Fusaka Upgrade Is Just Around The Corner—What To Expect

    November 13, 2025

    Bitmine Keeps Accumulating Ethereum Despite $1.8 Billion In Unrealized Losses – Details

    November 13, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Is ETH Dumping to $2K Next as Momentum Fades?

    June 1, 2025

    Hyperliquid Hits $400B Trading Volume and $100M Revenue as HYPE Price Eyes $55 Breakout

    September 3, 2025

    3 AIs With Big Price Predictions for Ripple (XRP) in November: Answers Could Shock You

    November 1, 2025

    Bitcoin Consolidation Continues: These Are Two Key Support Levels To Watch

    July 6, 2025

    Analysts Predict Rally Alongside Real-World Adoption

    July 6, 2025
    Categories
    • Altcoins
    • Bitcoin
    • Blockchain
    • Cryptocurrency
    • Ethereum
    • Market Trends
    • Mining
    About us

    Welcome to Finance Insider Today – your go-to source for the latest Crypto News, Market Trends, and Blockchain Insights.

    At FinanceInsiderToday.com, we’re passionate about helping our readers stay informed in the fast-moving world of cryptocurrency. Whether you're a seasoned investor, a crypto enthusiast, or just getting started in the digital finance space, we bring you the most relevant and timely news to keep you ahead of the curve.
    We cover everything from Bitcoin and Ethereum to DeFi, NFTs, altcoins, regulations, and the evolving landscape of Web3. With a global perspective and a focus on clarity, Finance Insider Today is your trusted companion in navigating the future of digital finance.

    Thanks for joining us on this journey. Stay tuned, stay informed, and stay ahead.

    Top Insights

    Ethereum Sheds 5% Amid Market Pullback, Raising Risks of Deeper Correction

    November 14, 2025

    Czech Central Bank Buys $1 Million In Bitcoin And Crypto

    November 14, 2025

    RISE Evolves Beyond Fastest Layer 2 into the Home for Global Markets, with RISE MarketCore and RISEx.

    November 14, 2025
    Categories
    • Altcoins
    • Bitcoin
    • Blockchain
    • Cryptocurrency
    • Ethereum
    • Market Trends
    • Mining
    Facebook X (Twitter) Instagram YouTube
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2025 Financeinsidertoday.com All Rights Reserved.

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