Close Menu
    Trending
    • LUNC Burns Spike 74%, But Technical Price Setup Dims Hope
    • Here’s Why The Bitcoin And Ethereum Prices Are Still Trading Sideways
    • Ethereum aims to stop rogue AI agents from stealing trust with new ERC-8004
    • Strategy ($MSTR) Hits 52-Week Low As Bitcoin Crashes To $83k
    • What It Means for Cardano’s Price
    • How Low Can ETH Price Go in February?
    • Analyst Shares Simple Framework That Points Higher
    • Banks may lose up to $500B after Fidelity’s official token launches on Ethereum with freeze powers
    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 aims to stop rogue AI agents from stealing trust with new ERC-8004

    January 29, 2026

    Banks may lose up to $500B after Fidelity’s official token launches on Ethereum with freeze powers

    January 29, 2026

    Ethereum Foundation is hiring an Executive Director

    January 29, 2026

    Ethereum And Solana Are Flashing Caution Signals With Negative Buy/Sell Pressure Data – What This Means

    January 29, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    The Rare Signal That Hasn’t Appeared on XRP Since 2022

    December 24, 2025

    Walmart to offer Bitcoin and Ethereum trading through its OnePay app

    October 4, 2025

    Multiple Signs Point to a Potential XRP Price Rally Toward $2.80.

    January 18, 2026

    Banks may lose up to $500B after Fidelity’s official token launches on Ethereum with freeze powers

    January 29, 2026

    We Asked 4 AIs if Dogecoin (DOGE) Will Reach New ATH in 2026

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

    From Utility Token To Digital Reserve Asset

    August 18, 2025

    How Will Markets React Today to Massive $13B Bitcoin Options Expiry Event?

    November 28, 2025

    Smart Money Pours Into BNB Chain as Developer Activity Accelerates

    September 27, 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.