Files
advisory-db/packages/heapless.json
T
2025-10-27 16:49:06 +00:00

78 lines
2.0 KiB
JSON

[
{
"id": "RUSTSEC-2020-0145",
"modified": "2023-06-13T13:10:24Z",
"published": "2020-11-02T12:00:00Z",
"aliases": [
"CVE-2020-36464",
"GHSA-qgwf-r2jj-2ccv"
],
"related": [],
"summary": "Use-after-free when cloning a partially consumed `Vec` iterator",
"details": "The `IntoIter` `Clone` implementation clones the whole underlying `Vec`.\nIf the iterator is partially consumed the consumed items will be copied, thus creating a use-after-free access.\n\nA proof of concept is available in the original bug report.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "heapless",
"purl": "pkg:cargo/heapless"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"heapless::vec::IntoIter::clone"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [
"memory-corruption",
"memory-exposure"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"informational": "unsound"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.6.1"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/heapless"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0145.html"
},
{
"type": "REPORT",
"url": "https://github.com/japaric/heapless/issues/181"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]