Bug Name Description Severity
ZeroFunctionSelector
It is possible to craft the name of a function such that it is executed instead of the fallback function in very specific circumstances.
If a function has a selector consisting only of zeros, is payable and part of a contract that does not have a fallback function and at most five external functions in total, this function is called instead of the fallback function if Ether is sent to the contract without data.

- First Introduced:
- Fixed in version: 0.4.18
- Published:
- Severity: very low

very low
DelegateCallReturnValue
The low-level .delegatecall() does not return the execution outcome, but converts the value returned by the functioned called to a boolean instead.
The return value of the low-level .delegatecall() function is taken from a position in memory, where the call data or the return data resides. This value is interpreted as a boolean and put onto the stack. This means if the called function returns at least 32 zero bytes, .delegatecall() returns false even if the call was successuful.

- First Introduced: 0.3.0
- Fixed in version: 0.4.15
- Published:
- Severity: low

low
ECRecoverMalformedInput
The ecrecover() builtin can return garbage for malformed input.
The ecrecover precompile does not properly signal failure for malformed input (especially in the 'v' argument) and thus the Solidity function can return data that was previously present in the return area in memory.

- First Introduced:
- Fixed in version: 0.4.14
- Published:
- Severity: medium

medium
SkipEmptyStringLiteral
If "" is used in a function call, the following function arguments will not be correctly passed to the function.
If the empty string literal "" is used as an argument in a function call, it is skipped by the encoder. This has the effect that the encoding of all arguments following this is shifted left by 32 bytes and thus the function call data is corrupted.

- First Introduced:
- Fixed in version: 0.4.12
- Published:
- Severity: low

low
ConstantOptimizerSubtraction
In some situations, the optimizer replaces certain numbers in the code with routines that compute different numbers.
The optimizer tries to represent any number in the bytecode by routines that compute them with less gas. For some special numbers, an incorrect routine is generated. This could allow an attacker to e.g. trick victims about a specific amount of ether, or function calls to call different functions (or none at all).

- Link: https://blog.ethereum.org/2017/05/03/solidity-optimizer-bug/
- First Introduced:
- Fixed in version: 0.4.11
- Published:
- Severity: low
- Optimizer Used: true

low
IdentityPrecompileReturnIgnored
Failure of the identity precompile was ignored.
Calls to the identity contract, which is used for copying memory, ignored its return value. On the public chain, calls to the identity precompile can be made in a way that they never fail, but this might be different on private chains.

- First Introduced:
- Fixed in version: 0.4.7
- Published:
- Severity: low

low
OptimizerStateKnowledgeNotResetForJumpdest
The optimizer did not properly reset its internal state at jump destinations, which could lead to data corruption.
The optimizer performs symbolic execution at certain stages. At jump destinations, multiple code paths join and thus it has to compute a common state from the incoming edges. Computing this common state was simplified to just use the empty state, but this implementation was not done properly. This bug can cause data corruption.

- First Introduced: 0.4.5
- Fixed in version: 0.4.6
- Published:
- Severity: medium
- Optimizer Used: true

medium
HighOrderByteCleanStorage
For short types, the high order bytes were not cleaned properly and could overwrite existing data.
Types shorter than 32 bytes are packed together into the same 32 byte storage slot, but storage writes always write 32 bytes. For some types, the higher order bytes were not cleaned properly, which made it sometimes possible to overwrite a variable in storage when writing to another one.

- Link: https://blog.ethereum.org/2016/11/01/security-alert-solidity-variables-can-overwritten-storage/
- First Introduced: 0.1.6
- Fixed in version: 0.4.4
- Published:
- Severity: high

high
OptimizerStaleKnowledgeAboutSHA3
The optimizer did not properly reset its knowledge about SHA3 operations resulting in some hashes (also used for storage variable positions) not being calculated correctly.
The optimizer performs symbolic execution in order to save re-evaluating expressions whose value is already known. This knowledge was not properly reset across control flow paths and thus the optimizer sometimes thought that the result of a SHA3 operation is already present on the stack. This could result in data corruption by accessing the wrong storage slot.

- First Introduced:
- Fixed in version: 0.4.3
- Published:
- Severity: medium
- Optimizer Used: true

medium
LibrariesNotCallableFromPayableFunctions
Library functions threw an exception when called from a call that received Ether.
Library functions are protected against sending them Ether through a call. Since the DELEGATECALL opcode forwards the information about how much Ether was sent with a call, the library function incorrectly assumed that Ether was sent to the library and threw an exception.

- First Introduced: 0.4.0
- Fixed in version: 0.4.2
- Published:
- Severity: low

low
SendFailsForZeroEther
The send function did not provide enough gas to the recipient if no Ether was sent with it.
The recipient of an Ether transfer automatically receives a certain amount of gas from the EVM to handle the transfer. In the case of a zero-transfer, this gas is not provided which causes the recipient to throw an exception.

- First Introduced:
- Fixed in version: 0.4.0
- Published:
- Severity: low

low
DynamicAllocationInfiniteLoop
Dynamic allocation of an empty memory array caused an infinite loop and thus an exception.
Memory arrays can be created provided a length. If this length is zero, code was generated that did not terminate and thus consumed all gas.

- First Introduced:
- Fixed in version: 0.3.6
- Published:
- Severity: low

low
OptimizerClearStateOnCodePathJoin
The optimizer did not properly reset its internal state at jump destinations, which could lead to data corruption.
The optimizer performs symbolic execution at certain stages. At jump destinations, multiple code paths join and thus it has to compute a common state from the incoming edges. Computing this common state was not done correctly. This bug can cause data corruption, but it is probably quite hard to use for targeted attacks.

- First Introduced:
- Fixed in version: 0.3.6
- Published:
- Severity: low
- Optimizer Used: true

low
CleanBytesHigherOrderBits
The higher order bits of short bytesNN types were not cleaned before comparison.
Two variables of type bytesNN were considered different if their higher order bits, which are not part of the actual value, were different. An attacker might use this to reach seemingly unreachable code paths by providing incorrectly formatted input data.

- First Introduced:
- Fixed in version: 0.3.3
- Published:
- Severity: medium/high

medium/high
ArrayAccessCleanHigherOrderBits
Access to array elements for arrays of types with less than 32 bytes did not correctly clean the higher order bits, causing corruption in other array elements.
Multiple elements of an array of values that are shorter than 17 bytes are packed into the same storage slot. Writing to a single element of such an array did not properly clean the higher order bytes and thus could lead to data corruption.

- First Introduced:
- Fixed in version: 0.3.1
- Published:
- Severity: medium/high

medium/high
AncientCompiler
This compiler version is ancient and might contain several undocumented or undiscovered bugs.
The list of bugs is only kept for compiler versions starting from 0.3.0, so older versions might contain undocumented bugs.

- First Introduced:
- Fixed in version: 0.3.0
- Published:
- Severity: high

high