GHSA-qgwf-r2jj-2ccv

Suggest an improvement
Source
https://github.com/advisories/GHSA-qgwf-r2jj-2ccv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-qgwf-r2jj-2ccv/GHSA-qgwf-r2jj-2ccv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qgwf-r2jj-2ccv
Aliases
Published
2021-08-25T20:56:09Z
Modified
2023-11-08T04:03:46.441950Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Use after free in heapless
Details

An issue was discovered in the heapless crate before 0.6.1 for Rust. The IntoIter Clone implementation clones an entire underlying Vec without considering whether it has already been partially consumed.

Database specific
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "github_reviewed_at": "2021-08-18T21:16:38Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-416"
    ]
}
References

Affected packages

crates.io / heapless

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.6.1

Ecosystem specific

{
    "affected_functions": [
        "heapless::vec::IntoIter::clone"
    ]
}