{"id":"GHSA-cx4j-fxr7-jxg8","summary":"Double free in glsl-layout","details":"Affected versions of this crate did not guard against panic within the user-provided function f (2nd parameter of fn map_array), and thus panic within f causes double drop of a single object.\n\nThe flaw was corrected in the 0.4.0 release by wrapping the object vulnerable to a double drop within ManuallyDrop\u003cT\u003e.","aliases":["CVE-2021-25902","RUSTSEC-2021-0005"],"modified":"2023-11-08T04:05:16.613204Z","published":"2021-08-25T20:53:01Z","database_specific":{"nvd_published_at":"2021-01-26T18:16:22Z","cwe_ids":["CWE-415"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-19T18:43:30Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25902"},{"type":"WEB","url":"https://github.com/rustgd/glsl-layout/pull/10"},{"type":"PACKAGE","url":"https://github.com/rustgd/glsl-layout"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0005.html"}],"affected":[{"package":{"name":"glsl-layout","ecosystem":"crates.io","purl":"pkg:cargo/glsl-layout"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-cx4j-fxr7-jxg8/GHSA-cx4j-fxr7-jxg8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}