# CVE-2021-29941: Out of bounds write in reorder

- Severity: High 7.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-24T12:00:00.000Z
- Modified: 2026-06-17T03:48:28.890Z
- Also known as: GHSA-3h87-v52r-p9rg, GHSA-jpwg-6gf5-5vh9, RUSTSEC-2021-0050
- Related: CVE-2021-29942
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- reorder (crates.io): before 1.1.0; from 0.0.0-0 before 1.1.0
- reorder_project reorder: up to 2021-02-24

## Every score

- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- RustSec Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0050.html> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29941> (advisory)
- <https://github.com/tiby312/reorder/issues/1> (report, web)
- <https://github.com/tiby312/reorder> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29942> (advisory)
- <https://crates.io/crates/reorder> (package)

## Sources

- CVE List: [CVE-2021-29941](https://www.cve.org/CVERecord?id=CVE-2021-29941), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-3h87-v52r-p9rg](https://github.com/advisories/GHSA-3h87-v52r-p9rg), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-jpwg-6gf5-5vh9](https://github.com/advisories/GHSA-jpwg-6gf5-5vh9), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0050](https://rustsec.org/advisories/RUSTSEC-2021-0050.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-29941](https://nvd.nist.gov/vuln/detail/CVE-2021-29941), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29941 · Whole record: https://cve.day/CVE-2021-29941.json · Rebuilt by cve.day 2026-11-25T22:58:00.541Z
