Files
2026-09-07 12:49:06 +00:00

388 lines
11 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[
{
"id": "RUSTSEC-2021-0003",
"modified": "2026-07-17T15:52:38Z",
"published": "2021-01-08T12:00:00Z",
"aliases": [
"CVE-2021-25900",
"GHSA-43w2-9j62-hq99"
],
"related": [],
"summary": "Buffer overflow in SmallVec::insert_many",
"details": "A bug in the `SmallVec::insert_many` method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap.\n\nThis bug was only triggered if the iterator passed to `insert_many` yielded more items than the lower bound returned from its `size_hint` method.\n \nThe flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of `insert_many` to use less unsafe code, so it is easier to verify its correctness.\n\nThank you to Yechan Bae ([@Qwaz](https://github.com/Qwaz)) and the Rust group at Georgia Tech’s SSLab for finding and reporting this bug.",
"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": "smallvec",
"purl": "pkg:cargo/smallvec"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"smallvec::SmallVec::insert_many"
]
},
"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.6.3"
},
{
"fixed": "0.6.14"
},
{
"introduced": "1.0.0"
},
{
"fixed": "1.6.1"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/smallvec"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2021-0003.html"
},
{
"type": "REPORT",
"url": "https://github.com/servo/rust-smallvec/issues/252"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2019-0009",
"modified": "2026-07-17T15:52:38Z",
"published": "2019-06-06T12:00:00Z",
"aliases": [
"CVE-2019-15551",
"GHSA-mm7v-vpv8-xfc3"
],
"related": [],
"summary": "Double-free and use-after-free in SmallVec::grow()",
"details": "Attempting to call `grow` on a spilled SmallVec with a value equal to the current capacity causes it to free the existing data. This performs a double free immediately and may lead to use-after-free on subsequent accesses to the SmallVec contents.\n\nAn attacker that controls the value passed to `grow` may exploit this flaw to obtain memory contents or gain remote code execution.\n\nCredits to [@ehuss](https://github.com/ehuss) for discovering, reporting and fixing the bug.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "smallvec",
"purl": "pkg:cargo/smallvec"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"smallvec::SmallVec::grow"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.6.5"
},
{
"fixed": "0.6.10"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/smallvec"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2019-0009.html"
},
{
"type": "REPORT",
"url": "https://github.com/servo/rust-smallvec/issues/148"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2019-0012",
"modified": "2026-07-17T15:52:38Z",
"published": "2019-07-19T12:00:00Z",
"aliases": [
"CVE-2019-15554",
"GHSA-69gw-hgj3-45m7"
],
"related": [],
"summary": "Memory corruption in SmallVec::grow()",
"details": "Attempting to call `grow` on a spilled SmallVec with a value less than the current capacity causes corruption of memory allocator data structures.\n\nAn attacker that controls the value passed to `grow` may exploit this flaw to obtain memory contents or gain remote code execution.\n\nCredits to [@ehuss](https://github.com/ehuss) for discovering, reporting and fixing the bug.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "smallvec",
"purl": "pkg:cargo/smallvec"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": [
"smallvec::SmallVec::grow"
]
},
"affected_functions": null
},
"database_specific": {
"categories": [
"code-execution",
"memory-corruption"
],
"cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.6.3"
},
{
"fixed": "0.6.10"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/smallvec"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2019-0012.html"
},
{
"type": "REPORT",
"url": "https://github.com/servo/rust-smallvec/issues/149"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2018-0003",
"modified": "2026-07-17T15:52:38Z",
"published": "2018-07-19T12:00:00Z",
"aliases": [
"CVE-2018-20991",
"GHSA-rxr4-x558-x7hw"
],
"related": [],
"summary": "Possible double free during unwinding in SmallVec::insert_many",
"details": "If an iterator passed to `SmallVec::insert_many` panicked in `Iterator::next`,\ndestructors were run during unwinding while the vector was in an inconsistent\nstate, possibly causing a double free (a destructor running on two copies of\nthe same value).\n\nThis is fixed in smallvec 0.6.3 by ensuring that the vector's length is not\nupdated to include moved items until they have been removed from their\noriginal positions. Items may now be leaked if `Iterator::next` panics, but\nthey will not be dropped more than once.\n\nThank you to [@Vurich](https://github.com/Vurich) for reporting this bug.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "smallvec",
"purl": "pkg:cargo/smallvec"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"informational": null
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.3.2"
},
{
"fixed": "0.3.4"
},
{
"introduced": "0.4.0-0"
},
{
"fixed": "0.4.5"
},
{
"introduced": "0.5.0-0"
},
{
"fixed": "0.5.1"
},
{
"introduced": "0.6.0-0"
},
{
"fixed": "0.6.3"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/smallvec"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2018-0003.html"
},
{
"type": "REPORT",
"url": "https://github.com/servo/rust-smallvec/issues/96"
}
],
"database_specific": {
"license": "CC0-1.0"
}
},
{
"id": "RUSTSEC-2018-0018",
"modified": "2023-06-13T13:10:24Z",
"published": "2018-09-25T12:00:00Z",
"aliases": [
"CVE-2018-25023",
"GHSA-55m5-whcv-c49c",
"GHSA-66p5-j55p-32r9"
],
"related": [],
"summary": "smallvec creates uninitialized value of any type",
"details": "Affected versions of this crate called `mem::uninitialized()` to create values of a user-supplied type `T`.\nThis is unsound e.g. if `T` is a reference type (which must be non-null and thus may not remain uninitialized).\n \nThe flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.",
"severity": [],
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "smallvec",
"purl": "pkg:cargo/smallvec"
},
"ecosystem_specific": {
"affects": {
"arch": [],
"os": [],
"functions": []
},
"affected_functions": null
},
"database_specific": {
"categories": [],
"cvss": null,
"informational": "unsound"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.6.13"
}
]
}
],
"versions": []
}
],
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/smallvec"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2018-0018.html"
},
{
"type": "REPORT",
"url": "https://github.com/servo/rust-smallvec/issues/126"
}
],
"database_specific": {
"license": "CC0-1.0"
}
}
]