CVE-2021-25902 json
Double free in glsl-layout
published 2021-01-10 5 y ago modified 2026-06-17 4 mo ago also GHSA-cx4j-fxr7-jxg8 , RUSTSEC-2021-0005 , EUVD-2021-1687
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
An issue was discovered in the glsl-layout crate before 0.4.0 for Rust. When a panic occurs, map_array can perform a double drop.
Patch / fix
- crates.io glsl-layout 0.4.0
- glsl-layout_project glsl-layout 0.4.0
- github.com/rustgd/glsl-layout#10 pull request
Exploit prediction
1.41% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0005.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | glsl-layout | <0.4.0 >=0.0.0-0, <0.4.0 |
0.4.0 |
Classification
- Weakness
-
- CWE-415 Double Free
References
-
github.com
/rustgd/glsl-layout/pull/10
web
-
rustsec.org
/advisories/RUSTSEC-2021-0005.html
web, exploit, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-25902
advisory
-
github.com
/rustgd/glsl-layout
package
-
crates.io
/crates/glsl-layout
package
Sources
- CVE List CVE-2021-25902
- GitHub Advisory GHSA-cx4j-fxr7-jxg8
- NVD CVE-2021-25902
- OSV RUSTSEC-2021-0005
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.