PT-2025-21347

CVE-2025-47285

·

Published

2025-05-15

·

Updated

2026-07-07

Description by

CVSS 4.0
6.3
Medium
MetricsAV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions: Vyper versions up to and including 0.4.2rc1
Description: The issue arises from the concat() function potentially skipping the evaluation of side effects when the length of an argument is zero. This is due to a fastpath in the implementation that skips the evaluation of argument expressions when their length is zero. Typically, zero-length bytestrings are constructed with the empty literal b"", and it would be unusual for user code to construct zero-length bytestrings using expressions with side effects. However, such side effects could be introduced using the ternary operator, for example, b"" if self.do some side effect() else b"".
Recommendations: For versions up to and including 0.4.2rc1, as a temporary workaround, avoid having side effects in expressions that construct zero-length bytestrings. Update to version 0.4.2 or later, which is expected to include the fix available in pull request 4644.
Exploitability
Exploit
Fix
Researchers
Vendors
Affected products
Related identifiers
GHSA-QHR6-MGQR-MCHM
PYSEC-2026-2029
Found an issue in the description? Have something to add? Feel free to write us 👾