Lucene search
K

Vyper's `extract32` can ready dirty memory

🗓️ 26 Feb 2024 20:11:35Reported by GitHub Advisory DatabaseType 
github
 github
🔗 github.com👁 19 Views

Vyper's `extract32` can ready dirty memory. When using the built-in `extract32(b, start)`, if the `start` index provided has for side effect to update `b`, dirty memory may be read and returned by `extract32`. Before evaluating `start`, the function `Extract32.build_IR` caches only the pointer in memory/storage and the length of `b`, but not the actual content of `b`, leading to outdated length being used with new content when extracting 32 bytes from `b`. A PoC in a contract shows that `extract32` accessed dirty memory, impacting affected contracts by returning unexpected output.

Related
Detection
Refs

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

24 Mar 2026 05:08Current
3.9Low risk
Vulners AI Score3.9
CVSS 3.13.7 - 5.3
EPSS0.00364
SSVC
19