Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (22 loc) · 1.79 KB

020.md

File metadata and controls

37 lines (22 loc) · 1.79 KB

seeu

low

Compiler version Pragma is non-specific

Summary

Compiler version Pragma is non-specific

Vulnerability Detail

For non-library contracts, floating pragmas may be a security risk for application implementations

Impact

A known vulnerable compiler version may accidentally be selected or security tools might fallback to an older compiler version ending up checking a different EVM compilation that is ultimately deployed on the blockchain.

Code Snippet

Tool used

Manual Review

Recommendation

Choose a specific pragma solidity version. Example

pragma solidity ^0.8.0;   /* => */   pragma solidity 0.8.0;