mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-11-30 10:44:32 -06:00
77 lines
2.2 KiB
JSON
77 lines
2.2 KiB
JSON
[
|
|
{
|
|
"id": "RUSTSEC-2021-0018",
|
|
"modified": "2023-06-13T13:10:24Z",
|
|
"published": "2021-02-03T12:00:00Z",
|
|
"aliases": [
|
|
"CVE-2021-26954",
|
|
"GHSA-68p4-pjpf-xwcq"
|
|
],
|
|
"related": [],
|
|
"summary": "insert_slice_clone can double drop if Clone panics.",
|
|
"details": "Affected versions of this crate used `ptr::copy` when inserting into the middle\nof a `Vec`. When ownership was temporarily duplicated during this copy, it calls\nthe clone method of a user provided element.\n\nThis issue can result in an element being double-freed if the clone call panics.\n\nCommit `20cb73d` fixed this issue by adding a `set_len(0)` call before\noperating on the vector to avoid dropping the elements during a panic.",
|
|
"severity": [
|
|
{
|
|
"type": "CVSS_V3",
|
|
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"package": {
|
|
"ecosystem": "crates.io",
|
|
"name": "qwutils",
|
|
"purl": "pkg:cargo/qwutils"
|
|
},
|
|
"ecosystem_specific": {
|
|
"affects": {
|
|
"arch": [],
|
|
"os": [],
|
|
"functions": [
|
|
"qwutils::imp::vec::VecExt::insert_slice_clone"
|
|
]
|
|
},
|
|
"affected_functions": null
|
|
},
|
|
"database_specific": {
|
|
"categories": [
|
|
"memory-corruption"
|
|
],
|
|
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
|
|
"informational": null
|
|
},
|
|
"ranges": [
|
|
{
|
|
"type": "SEMVER",
|
|
"events": [
|
|
{
|
|
"introduced": "0.0.0-0"
|
|
},
|
|
{
|
|
"fixed": "0.3.1"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"versions": []
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"type": "PACKAGE",
|
|
"url": "https://crates.io/crates/qwutils"
|
|
},
|
|
{
|
|
"type": "ADVISORY",
|
|
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0018.html"
|
|
},
|
|
{
|
|
"type": "REPORT",
|
|
"url": "https://github.com/qwertz19281/rust_utils/issues/3"
|
|
}
|
|
],
|
|
"database_specific": {
|
|
"license": "CC0-1.0"
|
|
}
|
|
}
|
|
] |