Last updated: March 11, 2025
SCWE-039: Insecure Use of Inline Assembly
Stable Version v0.0.1
This content is in the version-(v0.0.1) and still under active development, so it is subject to change any time (e.g. structure, IDs, content, URLs, etc.).
Send Feedback
Relationships
Description
Insecure use of inline assembly refers to vulnerabilities that arise when low-level assembly code is used improperly. This can lead to:
- Incorrect type conversions or casts.
- Exploitation of vulnerabilities in low-level operations.
- Loss of funds or data.
- Avoid inline assembly: Use high-level Solidity code whenever possible.
- Validate inputs: Ensure all inputs to assembly code are properly validated.
- Test thoroughly: Conduct extensive testing to ensure assembly code is secure.
Examples