SCA: security update for vyper (GHSA-ppx5-q359-pvwj)

medium Tenable Self-Hosted Container Security Plugin ID 417646

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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)

See Also

https://github.com/advisories/GHSA-ppx5-q359-pvwj

Plugin Details

Severity: Medium

ID: 417646

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.2

Percentile: 51.08

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2024-32481

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/25/2024

Vulnerability Publication Date: 4/25/2024

Reference Information

CVE: CVE-2024-32481

cwe: CWE-681