CVE-2021-26954 – qwutils
Package
Manager: cargo
Name: qwutils
Vulnerable Version: >=0 <0.3.1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00377 pctl0.58502
Details
insert_slice_clone can double drop if Clone panics. Affected versions of this crate used ptr::copy when inserting into the middle of a Vec. When ownership was temporarily duplicated during this copy, it calls the clone method of a user provided element. This issue can result in an element being double-freed if the clone call panics. Commit `20cb73d` fixed this issue by adding a set_len(0) call before operating on the vector to avoid dropping the elements during a panic.
Metadata
Created: 2022-05-24T17:41:47Z
Modified: 2023-06-13T20:09:07Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-68p4-pjpf-xwcq/GHSA-68p4-pjpf-xwcq.json
CWE IDs: ["CWE-415"]
Alternative ID: GHSA-68p4-pjpf-xwcq
Finding: F138
Auto approve: 1