Eth MeridianETHEREUM / A RESEARCH INDEX
Menu

Solidity 0.8.39 fixes storage-copy bug affecting recursive structs

As reported on November 20, 2026, the Solidity team released version 0.8.39 to fix a medium-severity bug that could corrupt storage data without an error. The bug could occur when a recursive struct in storage, or an array of such structs, was copied to a storage location containing the source data.

According to the team, affected compiler versions were 0.4.9 through 0.8.38 when using the evmasm pipeline and 0.8.13 through 0.8.38 when using the IR pipeline. The fix adds a runtime check, which incurs additional gas costs.

The team said it scanned verified contracts in the Sourcify database and found no deployed contracts that performed the affected copy operation. That finding is limited to the contracts it scanned; it does not establish that every deployed contract was unaffected.