GHSA-gg76-hg3v-5q6c: Macroquad Macroquad Vulnerable To Multiple Soundness Vulnerability

HIGH
CWE-416
Published
Advisory Summary

GHSA-gg76-hg3v-5q6c is a HIGH macroquad vulnerable to multiple soundness vulnerability (CWE-416: Use After Free) affecting Macroquad libraries in the crates.io ecosystem. The issue involves macroquad vulnerable to multiple soundness issues. Remediation is available in the latest vendor maintenance releases.

GHSA-gg76-hg3v-5q6c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gg76-hg3v-5q6c
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-416: Use After Free
Affected Product Macroquad
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-gg76-hg3v-5q6c

To remediate this vulnerability, upgrade all affected Macroquad dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

macroquad fixed: Latest secure release
Upgrade macroquad to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for macroquad

How to Check if You Are Affected

To determine whether your application is affected by GHSA-gg76-hg3v-5q6c, inspect your project dependencies for Macroquad:

inspect dependencies for macroquad

Analyze the terminal output to locate any version of Macroquad in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. In Macroquad, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Several soundness issues have been reported. Resolving them doesn't seem to be considered a priority. In particular, unprincipled use of mutable statics is pervasive throughout the library, making it possible to cause use-after-free in safe code. Currently, no fixed version is available.

GHSA-gg76-hg3v-5q6c Affected Macroquad Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
macroquad
crates.io
≤ 0.4.14

References

Frequently Asked Questions

What is GHSA-gg76-hg3v-5q6c?
GHSA-gg76-hg3v-5q6c is a security vulnerability in Macroquad involving macroquad vulnerable to multiple soundness issues under CWE-416: Use After Free.
Which Macroquad versions are affected?
Affected versions include releases prior to current release patches across affected packages: macroquad.
What version fixes GHSA-gg76-hg3v-5q6c?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is macroquad affected?
Yes, macroquad is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-gg76-hg3v-5q6c?
GHSA-gg76-hg3v-5q6c is classified under CWE-416: Use After Free (The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.).
How can I check crates.io dependencies for GHSA-gg76-hg3v-5q6c?
Run the dependency tree command: 'inspect dependencies for macroquad'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gg76-hg3v-5q6c",
  "modified" : "2025-05-15T16:22:33Z",
  "published" : "2025-05-15T16:22:33Z",
  "aliases" : [ ],
  "summary" : "macroquad vulnerable to multiple soundness issues",
  "details" : "Several soundness issues have been reported. Resolving them doesn't seem to be considered a priority. In particular, unprincipled use of mutable statics is pervasive throughout the library, making it possible to cause use-after-free in safe code.\n\nCurrently, no fixed version is available.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "macroquad"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.4.14"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/not-fl3/macroquad/issues/333"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/not-fl3/macroquad/issues/634"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/not-fl3/macroquad/issues/723"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/not-fl3/macroquad/issues/746"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/not-fl3/macroquad"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0035.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-416" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-15T16:22:33Z",
    "nvd_published_at" : null
  }
}