GHSA-2pgj-5cv2-6xxw

Suggest an improvement
Source
https://github.com/advisories/GHSA-2pgj-5cv2-6xxw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-2pgj-5cv2-6xxw/GHSA-2pgj-5cv2-6xxw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2pgj-5cv2-6xxw
Published
2025-10-08T12:43:30Z
Modified
2025-10-08T12:43:30Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
FuelVM is vulnerable to heap memory allocation re-use bug
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-416"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-10-08T12:43:30Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

crates.io / fuel-vm

Package

Name
fuel-vm
View open source insights on deps.dev
Purl
pkg:cargo/fuel-vm

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.59.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-2pgj-5cv2-6xxw/GHSA-2pgj-5cv2-6xxw.json"

crates.io / fuel-vm

Package

Name
fuel-vm
View open source insights on deps.dev
Purl
pkg:cargo/fuel-vm

Affected ranges

Type
SEMVER
Events
Introduced
0.60.0
Fixed
0.60.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-2pgj-5cv2-6xxw/GHSA-2pgj-5cv2-6xxw.json"