Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/vyper@0.4.0
purl pkg:pypi/vyper@0.4.0
Next non-vulnerable version 0.4.1
Latest non-vulnerable version 0.4.1
Risk
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-1r9c-w5zc-6ker
Aliases:
CVE-2025-27105
GHSA-4w26-8p97-f4jp
PYSEC-2025-31
vyper is a Pythonic Smart Contract Language for the EVM. Vyper handles AugAssign statements by first caching the target location to avoid double evaluation. However, in the case when target is an access to a DynArray and the rhs modifies the array, the cached target will evaluate first, and the bounds check will not be re-evaluated during the write portion of the statement. This issue has been addressed in version 0.4.1 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
0.4.1
Affected by 0 other vulnerabilities.
VCID-djvb-mdjy-b7g5
Aliases:
CVE-2025-27104
GHSA-h33q-mhmp-8p67
PYSEC-2025-30
vyper is a Pythonic Smart Contract Language for the EVM. Multiple evaluation of a single expression is possible in the iterator target of a for loop. While the iterator expression cannot produce multiple writes, it can consume side effects produced in the loop body (e.g. read a storage variable updated in the loop body) and thus lead to unexpected program behavior. Specifically, reads in iterators which contain an ifexp (e.g. `for s: uint256 in ([read(), read()] if True else [])`) may interleave reads with writes in the loop body. Vyper for loops allow two kinds of iterator targets, namely the `range()` builtin and an iterable type, like SArray and DArray. During codegen, iterable lists are required to not produce any side-effects (in the following code, `range_scope` forces `iter_list` to be parsed in a constant context, which is checked against `is_constant`). However, this does not prevent the iterator from consuming side effects provided by the body of the loop. For SArrays on the other hand, `iter_list` is instantiated in the body of a `repeat` ir, so it can be evaluated several times. This issue is being addressed and is expected to be available in version 0.4.1. Users are advised to upgrade as soon as the patched release is available. There are no known workarounds for this vulnerability.
0.4.1
Affected by 0 other vulnerabilities.
VCID-m355-31jd-1kfq
Aliases:
CVE-2025-21607
PYSEC-2025-33
Vyper is a Pythonic Smart Contract Language for the EVM. When the Vyper Compiler uses the precompiles EcRecover (0x1) and Identity (0x4), the success flag of the call is not checked. As a consequence an attacker can provide a specific amount of gas to make these calls fail but let the overall execution continue. Then the execution result can be incorrect. Based on EVM's rules, after the failed precompile the remaining code has only 1/64 of the pre-call-gas left (as 63/64 were forwarded and spent). Hence, only fairly simple executions can follow the failed precompile calls. Therefore, we found no significantly impacted real-world contracts. None the less an advisory has been made out of an abundance of caution. There are no actions for users to take.
0.4.1
Affected by 0 other vulnerabilities.
VCID-wc7x-rsqa-bkcm
Aliases:
CVE-2025-26622
GHSA-2p94-8669-xg86
PYSEC-2025-29
vyper is a Pythonic Smart Contract Language for the EVM. Vyper `sqrt()` builtin uses the babylonian method to calculate square roots of decimals. Unfortunately, improper handling of the oscillating final states may lead to sqrt incorrectly returning rounded up results. This issue is being addressed and a fix is expected in version 0.4.1. Users are advised to upgrade as soon as the patched release is available. There are no known workarounds for this vulnerability.
0.4.1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (13)
Vulnerability Summary Aliases
VCID-br4v-y1ka-wbh2 Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. Arrays can be keyed by a signed integer, while they are defined for unsigned integers only. The typechecker doesn't throw when spotting the usage of an `int` as an index for an array. The typechecker allows the usage of signed integers to be used as indexes to arrays. The vulnerability is present in different forms in all versions, including `0.3.10`. For ints, the 2's complement representation is used. Because the array was declared very large, the bounds checking will pass Negative values will simply be represented as very large numbers. As of time of publication, a fixed version does not exist. There are three potential vulnerability classes: unpredictable behavior, accessing inaccessible elements and denial of service. Class 1: If it is possible to index an array with a negative integer without reverting, this is most likely not anticipated by the developer and such accesses can cause unpredictable behavior for the contract. Class 2: If a contract has an invariant in the form `assert index < x`, the developer will suppose that no elements on indexes `y | y >= x` are accessible. However, by using negative indexes, this can be bypassed. Class 3: If the index is dependent on the state of the contract, this poses a risk of denial of service. If the state of the contract can be manipulated in such way that the index will be forced to be negative, the array access can always revert (because most likely the array won't be declared extremely large). However, all these the scenarios are highly unlikely. Most likely behavior is a revert on the bounds check. CVE-2024-24563
GHSA-52xq-j7v9-v4v2
PYSEC-2024-150
VCID-c8rf-ec8a-gybs Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.10 and earlier, the bounds check for slices does not account for the ability for start + length to overflow when the values aren't literals. If a slice() function uses a non-literal argument for the start or length variable, this creates the ability for an attacker to overflow the bounds check. This issue can be used to do OOB access to storage, memory or calldata addresses. It can also be used to corrupt the length slot of the respective array. CVE-2024-24561
GHSA-9x7f-gwxq-6f2c
PYSEC-2024-149
VCID-cp7n-z6w9-k3bn Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. The `concat` built-in can write over the bounds of the memory buffer that was allocated for it and thus overwrite existing valid data. The root cause is that the `build_IR` for `concat` doesn't properly adhere to the API of copy functions (for `>=0.3.2` the `copy_bytes` function). A contract search was performed and no vulnerable contracts were found in production. The buffer overflow can result in the change of semantics of the contract. The overflow is length-dependent and thus it might go unnoticed during contract testing. However, certainly not all usages of concat will result in overwritten valid data as we require it to be in an internal function and close to the return statement where other memory allocations don't occur. This issue has been addressed in 0.4.0. CVE-2024-22419
GHSA-2q8v-3gqq-4f8p
PYSEC-2024-103
VCID-pcsz-xwb8-7yh4 Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. Starting in version 0.3.8 and prior to version 0.4.0b1, when looping over a `range` of the form `range(start, start + N)`, if `start` is negative, the execution will always revert. This issue is caused by an incorrect assertion inserted by the code generation of the range `stmt.parse_For_range()`. The issue arises when `start` is signed, instead of using `sle`, `le` is used and `start` is interpreted as an unsigned integer for the comparison. If it is a negative number, its 255th bit is set to `1` and is hence interpreted as a very large unsigned integer making the assertion always fail. Any contract having a `range(start, start + N)` where `start` is a signed integer with the possibility for `start` to be negative is affected. If a call goes through the loop while supplying a negative `start` the execution will revert. Version 0.4.0b1 fixes the issue. CVE-2024-32481
GHSA-ppx5-q359-pvwj
PYSEC-2024-246
VCID-qfyr-upmm-duea Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, incorrect values can be logged when `raw_log` builtin is called with memory or storage arguments to be used as topics. A contract search was performed and no vulnerable contracts were found in production. The `build_IR` function of the `RawLog` class fails to properly unwrap the variables provided as topics. Consequently, incorrect values are logged as topics. As of time of publication, no fixed version is available. CVE-2024-32645
GHSA-xchq-w5r3-4wg3
PYSEC-2024-206
VCID-shx9-8v43-9qem Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. If an excessively large value is specified as the starting index for an array in `_abi_decode`, it can cause the read position to overflow. This results in the decoding of values outside the intended array bounds, potentially leading to exploitations in contracts that use arrays within `_abi_decode`. This vulnerability affects 0.3.10 and earlier versions. CVE-2024-26149
GHSA-9p8r-4xp4-gw5w
PYSEC-2024-164
VCID-vchm-6wyg-83hk Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. Vyper compiler allows passing a value in builtin raw_call even if the call is a delegatecall or a staticcall. But in the context of delegatecall and staticcall the handling of value is not possible due to the semantics of the respective opcodes, and vyper will silently ignore the value= argument. If the semantics of the EVM are unknown to the developer, he could suspect that by specifying the `value` kwarg, exactly the given amount will be sent along to the target. This vulnerability affects 0.3.10 and earlier versions. CVE-2024-24567
GHSA-x2c2-q32w-4w6m
PYSEC-2024-151
VCID-vz6u-kbjy-hkfc Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, using the `create_from_blueprint` builtin can result in a double eval vulnerability when `raw_args=True` and the `args` argument has side-effects. It can be seen that the `_build_create_IR` function of the `create_from_blueprint` builtin doesn't cache the mentioned `args` argument to the stack. As such, it can be evaluated multiple times (instead of retrieving the value from the stack). No vulnerable production contracts were found. Additionally, double evaluation of side-effects should be easily discoverable in client tests. As such, the impact is low. As of time of publication, no fixed versions exist. CVE-2024-32647
GHSA-3whq-64q2-qfj6
PYSEC-2024-208
VCID-wmen-dnf4-2kef Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. When using the built-in `extract32(b, start)`, if the `start` index provided has for side effect to update `b`, the byte array to extract `32` bytes from, it could be that some dirty memory is read and returned by `extract32`. This vulnerability is fixed in 0.4.0. CVE-2024-24564
GHSA-4hwq-4cpm-8vmx
PYSEC-2024-205
VCID-x4dz-scmh-b7dj Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, using the `sqrt` builtin can result in double eval vulnerability when the argument has side-effects. It can be seen that the `build_IR` function of the `sqrt` builtin doesn't cache the argument to the stack. As such, it can be evaluated multiple times (instead of retrieving the value from the stack). No vulnerable production contracts were found. Additionally, double evaluation of side-effects should be easily discoverable in client tests. As such, the impact is low. As of time of publication, no fixed versions are available. CVE-2024-32649
PYSEC-2024-209
VCID-x6fh-e77r-pycx Vyper is a Pythonic Smart Contract Language for the EVM. There is an error in the stack management when compiling the `IR` for `sha3_64`. Concretely, the `height` variable is miscalculated. The vulnerability can't be triggered without writing the `IR` by hand (that is, it cannot be triggered from regular vyper code). `sha3_64` is used for retrieval in mappings. No flow that would cache the `key` was found so the issue shouldn't be possible to trigger when compiling the compiler-generated `IR`. This issue isn't triggered during normal compilation of vyper code so the impact is low. At the time of publication there is no patch available. CVE-2024-24559
GHSA-6845-xw22-ffxv
PYSEC-2024-147
VCID-zkhz-ckgg-hkat Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, using the `slice` builtin can result in a double eval vulnerability when the buffer argument is either `msg.data`, `self.code` or `<address>.code` and either the `start` or `length` arguments have side-effects. It can be easily triggered only with the versions `<0.3.4` as `0.3.4` introduced the unique symbol fence. No vulnerable production contracts were found. Additionally, double evaluation of side-effects should be easily discoverable in client tests. As such, the impact is low. As of time of publication, no fixed versions are available. CVE-2024-32646
PYSEC-2024-207
VCID-zsnu-88np-fyet Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. When calls to external contracts are made, we write the input buffer starting at byte 28, and allocate the return buffer to start at byte 0 (overlapping with the input buffer). When checking RETURNDATASIZE for dynamic types, the size is compared only to the minimum allowed size for that type, and not to the returned value's length. As a result, malformed return data can cause the contract to mistake data from the input buffer for returndata. When the called contract returns invalid ABIv2 encoded data, the calling contract can read different invalid data (from the dirty buffer) than the called contract returned. CVE-2024-24560
GHSA-gp3w-2v2m-p686
PYSEC-2024-148

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-02T04:47:40.888043+00:00 GitLab Importer Fixing VCID-pcsz-xwb8-7yh4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-32481.yml 38.6.0
2026-06-02T04:47:40.847533+00:00 GitLab Importer Fixing VCID-vz6u-kbjy-hkfc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-32647.yml 38.6.0
2026-06-02T04:47:40.630974+00:00 GitLab Importer Fixing VCID-qfyr-upmm-duea https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-32645.yml 38.6.0
2026-06-02T04:47:13.601672+00:00 GitLab Importer Fixing VCID-wmen-dnf4-2kef https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-24564.yml 38.6.0
2026-06-02T04:47:13.559620+00:00 GitLab Importer Fixing VCID-shx9-8v43-9qem https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-26149.yml 38.6.0
2026-06-02T04:47:00.704447+00:00 GitLab Importer Fixing VCID-br4v-y1ka-wbh2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-24563.yml 38.6.0
2026-06-02T04:46:59.702808+00:00 GitLab Importer Fixing VCID-x6fh-e77r-pycx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-24559.yml 38.6.0
2026-06-02T04:46:57.747603+00:00 GitLab Importer Fixing VCID-zsnu-88np-fyet https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-24560.yml 38.6.0
2026-06-02T04:46:57.633636+00:00 GitLab Importer Fixing VCID-c8rf-ec8a-gybs https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-24561.yml 38.6.0
2026-06-02T04:46:56.580345+00:00 GitLab Importer Fixing VCID-vchm-6wyg-83hk https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-24567.yml 38.6.0
2026-06-02T04:46:52.994341+00:00 GitLab Importer Fixing VCID-cp7n-z6w9-k3bn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/vyper/CVE-2024-22419.yml 38.6.0
2026-06-02T04:22:48.127528+00:00 Pypa Importer Affected by VCID-wc7x-rsqa-bkcm https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2025-29.yaml 38.6.0
2026-06-02T04:22:47.821267+00:00 Pypa Importer Affected by VCID-djvb-mdjy-b7g5 https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2025-30.yaml 38.6.0
2026-06-02T04:22:47.516295+00:00 Pypa Importer Affected by VCID-1r9c-w5zc-6ker https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2025-31.yaml 38.6.0
2026-06-02T04:22:42.906988+00:00 Pypa Importer Affected by VCID-m355-31jd-1kfq https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2025-33.yaml 38.6.0
2026-06-02T04:21:12.883823+00:00 Pypa Importer Fixing VCID-x4dz-scmh-b7dj https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2024-209.yaml 38.6.0
2026-06-02T04:21:12.454263+00:00 Pypa Importer Fixing VCID-zkhz-ckgg-hkat https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2024-207.yaml 38.6.0
2026-06-02T04:21:12.186752+00:00 Pypa Importer Fixing VCID-qfyr-upmm-duea https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2024-206.yaml 38.6.0
2026-06-02T04:21:11.926663+00:00 Pypa Importer Fixing VCID-vz6u-kbjy-hkfc https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2024-208.yaml 38.6.0
2026-06-02T04:21:01.266404+00:00 Pypa Importer Fixing VCID-wmen-dnf4-2kef https://github.com/pypa/advisory-database/blob/main/vulns/vyper/PYSEC-2024-205.yaml 38.6.0