{"answers":{"affected":"4 open source packages ship an affected version, including fuel-vm.","exploited":"There is no known exploitation of GHSA-2pgj-5cv2-6xxw in the wild and no public exploit code.","fix":"Upgrade fuel-vm to a fixed version for your release line: 0.59.3 or 0.60.1.","what":"GHSA-2pgj-5cv2-6xxw is a vulnerability in fuel-vm, published on 8 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-2pgj-5cv2-6xxw and fix it if it is affected.\n\nWhat it is: GHSA-2pgj-5cv2-6xxw is a vulnerability in fuel-vm, published on 8 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-2pgj-5cv2-6xxw in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fuel-vm (crates.io): affected all versions; fixed in 0.59.3\n- fuel-vm (crates.io): affected all versions; fixed in 0.59.3\n- fuel-vm (crates.io): affected from 0.60.0; fixed in 0.60.1\n- fuel-vm (crates.io): affected from 0.60.0; fixed in 0.60.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-2pgj-5cv2-6xxw/ (Markdown: https://insights.sbomify.com/GHSA-2pgj-5cv2-6xxw/index.md)","id":"GHSA-2pgj-5cv2-6xxw","markdown":"https://insights.sbomify.com/GHSA-2pgj-5cv2-6xxw/index.md","name":"GHSA-2pgj-5cv2-6xxw","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"FuelVM virtual machine","requires_auth":"none","summary":"Attackers can read sensitive data from other smart contracts due to improper memory deallocation in FuelVM, violating isolation guarantees.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nA 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.\n\nAll users running affected versions of FuelVM that relied on strict memory isolation between smart contracts were impacted.\n\n### Patches\n\nThe 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.\n\n### Workarounds\n\nThere 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.\n\n### References\n\n- Fix implemented in the FuelVM GitHub repository (https://github.com/FuelLabs/fuel-vm/pull/941)","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"FuelVM is vulnerable to heap memory allocation re-use bug","id":"GHSA-2pgj-5cv2-6xxw","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.59.3"],"introduced":["0"],"last_affected":[],"package":"fuel-vm","purl":null,"source":"GHSA-2pgj-5cv2-6xxw"},{"ecosystem":"crates.io","fixed":["0.59.3"],"introduced":["0"],"last_affected":[],"package":"fuel-vm","purl":"pkg:cargo/fuel-vm","source":"GHSA-2pgj-5cv2-6xxw"},{"ecosystem":"crates.io","fixed":["0.60.1"],"introduced":["0.60.0"],"last_affected":[],"package":"fuel-vm","purl":null,"source":"GHSA-2pgj-5cv2-6xxw"},{"ecosystem":"crates.io","fixed":["0.60.1"],"introduced":["0.60.0"],"last_affected":[],"package":"fuel-vm","purl":"pkg:cargo/fuel-vm","source":"GHSA-2pgj-5cv2-6xxw"}],"products":null,"published":"2025-10-08","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can read sensitive data from other smart contracts due to improper memory deallocation in FuelVM, violating isolation guarantees.","url":"https://insights.sbomify.com/GHSA-2pgj-5cv2-6xxw/"}