CVE-2021-29941
HIGH 7.3CVSS 3.1Out of bounds write in reorder
An issue was discovered in the reorder crate through 2021-02-24 for Rust. swap_index has an out-of-bounds write if an iterator returns a len() that is too small.
- Published
- 1 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-787
- Also known as
- CVE-2021-29942GHSA-3h87-v52r-p9rgGHSA-jpwg-6gf5-5vh9RUSTSEC-2021-0050
- Sources
- NVDJSONOSV GHSA-3h87-v52r-p9rgJSONOSV GHSA-jpwg-6gf5-5vh9JSONOSV RUSTSEC-2021-0050JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | RustSec | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | reorder_project | reordercpe:2.3:a:reorder_project:reorder:*:*:*:*:*:rust:*:* |
<= 2021-02-24 | |
| OSV | crates.io | reorder | < 1.1.0 | 1.1.0 |
| OSV | crates.io | reorder | >= 0.0.0-0, < 1.1.0 | 1.1.0 |
References
- https://rustsec.org/advisories/RUSTSEC-2021-0050.html · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-29941 · ADVISORY
- https://github.com/tiby312/reorder/issues/1 · WEB, REPORT
- https://github.com/tiby312/reorder · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-29942 · ADVISORY
- https://crates.io/crates/reorder · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Feb 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)