Read the docs
TI-2025-43783 Aliases GHSA-2pgj-5cv2-6xxw

FuelVM is vulnerable to heap memory allocation re-use bug

Priority LOW 38CWE-416Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact A memory safety vulnerability was present in the Fuel Virtual Machine (FuelVM), where memory reads could bypass expected access controls. Specifically, when a smart contract performed a `mload` (or other opcodes which access memory) on memory that had been deallocated using `ret`, it was still able to access the old memory contents. This occurred because the memory region was not zeroed out or otherwise marked as invalid. As a result, smart contracts could potentially read sensitive data left over from other contracts if the same memory was reallocated, violating isolation guarantees between contracts and enabling unintended data leakage. All users running affected versions of FuelVM that relied on strict memory isolation between smart contracts were impacted. ### Patches The vulnerability was patched by modifying the FuelVM to ensure that memory deallocated with `ret` was zeroed out or made inaccessible. The fix was included in FuelVM version `v0.60.1` and back-ported to `v0.59.3`. This patch was released to the Fuel network on Friday, April 18th, 2025. ### Workarounds There were no reliable workarounds that fully mitigated the vulnerability. While developers could manually zero out sensitive memory regions before returning from a function, this approach was error-prone and could not be enforced at the VM level. Upgrading to a patched version remained the recommended course of action. ### References - Fix implemented in the FuelVM GitHub repository (https://github.com/FuelLabs/fuel-vm/pull/941)

Why it matters now

Fix Fixed fuel-vm (crates.io): 0.59.3, 0.60.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—fuel-vm (crates.io)before 0.59.30.59.3Patch availableGHSA-2pgj-5cv2-6xxw
—fuel-vm (crates.io)0.60.0 to before 0.60.10.60.1Patch availableGHSA-2pgj-5cv2-6xxw
  • fuel-vm (crates.io) Vendor— Affected before 0.59.3 Fixed in 0.59.3 Patch available GHSA-2pgj-5cv2-6xxw
  • fuel-vm (crates.io) Vendor— Affected 0.60.0 to before 0.60.1 Fixed in 0.60.1 Patch available GHSA-2pgj-5cv2-6xxw

Remediation

  • Fix · GHSA-2pgj-5cv2-6xxw fuel-vm (crates.io) Fixed in 0.59.3 Advisory →
  • Fix · GHSA-2pgj-5cv2-6xxw fuel-vm (crates.io) Fixed in 0.60.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-2pgj-5cv2-6xxw

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences