Close Menu
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • Blockchain
    • Mining
  • Stocks
  • Forex
  • Personal Finance
  • World Economy
  • AI in Finance
  • Commodities
  • DeFi
  • Fintech
  • NFTs
  • Learn Finance
Trending
  • If Bitcoin Price Doesn’t Hold Take And Hold $69,000 With Momentum, It Could Get Very Bad
  • Announcing the Devcon SEA venue!
  • Why 74% of Large Investors Are Bullish on Crypto Right Now
  • Circle Unveils Gas-Free USDC Nanopayments Enabling $0.000001 AI Transactions
  • Allocation Update – Q1 2024
  • FBI Warns of Fake Token Scam on Tron
  • Trump’s “Ultimatum” Triggers Market Turmoil, Bitcoin Drops 2% — How Can Investors Hedge Risk?
  • Resolv Protocol Stalls With Attacker An Minting 50 Million Unbacked USR Tokens
Facebook X (Twitter) Instagram YouTube
Finance Insider Today
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • Altcoins
    • Blockchain
    • Mining
  • Stocks
  • Forex
  • Personal Finance
  • World Economy
  • AI in Finance
  • Commodities
  • DeFi
  • Fintech
  • NFTs
  • Learn Finance
Finance Insider Today
Home » Ethereum
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

⚠️ Investment Disclaimer
The content published on Finance Insider Today is for informational and educational purposes only. It does not constitute financial advice, investment advice, or any other form of professional advice. Always conduct your own research and consult a qualified financial advisor before making any investment decisions. Finance Insider Today is not responsible for any financial losses resulting from decisions made based on information published on this website. Past performance is not indicative of future results. Financial markets carry significant risk. Never invest more than you can afford to lose.
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Finance Insider Today

Related Posts

Announcing the Devcon SEA venue!

March 23, 2026

Allocation Update – Q1 2024

March 23, 2026

Devcon Scholars Program Returns for Devcon SEA!

March 23, 2026

Ticket launch details, on-chain raffle-auction, and programming tracks revealed

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

Top Posts

Critical Warning for Ripple’s (XRP) Price After 30% Monthly Surge: Details

May 7, 2025

Brief Ethereum Recovery Coincides With Record-Breaking Levels Of Address Expansion

March 5, 2026

150,000,000 XRP Sold in 48 Hours: Panic or Opportunity?

December 3, 2025

This Billionaire Thinks Bitcoin Is ‘Very Appealing’

October 7, 2025

The Stateless Tech Tree: reGenesis Edition

June 7, 2025
CurrencyPrice
UAE Dirham 
UAE Dirham
3.6725
Australian Dollar 
Australian Dollar
1.4356up
Canadian Dollar 
Canadian Dollar
1.3727up
Swiss Franc 
Swiss Franc
0.7899up
Renminbi 
Renminbi
6.9115up
Euro 
Euro
0.8667up
British Pound 
British Pound
0.7515up
Japanese Yen 
Japanese Yen
159.5286up
Malaysian Ringgit 
Malaysian Ringgit
3.9396up
New Zealand Dollar 
New Zealand Dollar
1.7238up
US Dollar 
US Dollar
1
23 Mar · FX Source: CurrencyRate 
CurrencyRate.Today
Check: 23 Mar 2026 05:45 UTC
Latest change: 23 Mar 2026 05:38 UTC
API: CurrencyRate
Disclaimers. This plugin or website cannot guarantee the accuracy of the exchange rates displayed. You should confirm current rates before making any transactions that could be affected by changes in the exchange rates.
⚡You can install this WP plugin on your website from the WordPress official website: Exchange Rates🚀
Categories
  • Altcoins
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Ethereum
  • Forex
  • Mining
  • Personal Finance
  • Stocks
  • World Economy
About us

Finance Insider Today is an independent financial news platform covering global markets, cryptocurrency, economy, fintech, and personal finance. Published daily.

Top Insights

If Bitcoin Price Doesn’t Hold Take And Hold $69,000 With Momentum, It Could Get Very Bad

March 23, 2026

Announcing the Devcon SEA venue!

March 23, 2026

Why 74% of Large Investors Are Bullish on Crypto Right Now

March 23, 2026
Categories
  • Altcoins
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Ethereum
  • Forex
  • Mining
  • Personal Finance
  • Stocks
  • World Economy
X (Twitter) Instagram YouTube
  • About us
  • Contact us
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
Copyright © 2026 Financeinsidertoday.com All Rights Reserved.

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