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

72 lines
2.0 KiB
JSON

[
{
"id": "RUSTSEC-2021-0049",
"modified": "2023-06-13T13:10:24Z",
"published": "2021-02-18T12:00:00Z",
"aliases": [
"CVE-2021-29940",
"GHSA-5hpj-m323-cphm"
],
"related": [],
"summary": "`through` and `through_and` causes a double free if the map function panics",
"details": "`through` and `through_and` take a mutable reference as well as a mapping\nfunction to change the provided reference. They do this by calling `ptr::read`\non the reference which duplicates ownership and then calling the mapping\nfunction.\n\nIf the mapping function panics, both the original object and the one\nduplicated by `ptr::read` get dropped, causing a double free.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "through",
"purl": "pkg:cargo/through"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [
"memory-corruption"
],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/through"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0049.html"
},
{
"type": "REPORT",
"url": "https://github.com/gretchenfrage/through/issues/1"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]