The Solidity compiler has released version 0.8.39, which focuses on fixing a storage safety vulnerability of moderate severity. What makes this vulnerability unusual is that it can silently corrupt data without triggering any error messages, posing a hidden risk to developers.
Specifically, the issue is triggered when code copies a recursive struct stored in storage to another storage location that also contains the same struct. The vulnerability affects compiled output from multiple 0.8.x versions. The development team chose to address it by adding runtime overlap checks, but this protection comes with increased gas costs.
After releasing the patch, the team conducted a comprehensive review of existing verified contracts and found no deployed on-chain contracts that had actually been affected by the vulnerability.
Specifically, the issue is triggered when code copies a recursive struct stored in storage to another storage location that also contains the same struct. The vulnerability affects compiled output from multiple 0.8.x versions. The development team chose to address it by adding runtime overlap checks, but this protection comes with increased gas costs.
After releasing the patch, the team conducted a comprehensive review of existing verified contracts and found no deployed on-chain contracts that had actually been affected by the vulnerability.
