# CVE-2021-45701: Memory Safety Issue when using `patch` or `merge` on `state` and assign the result back to `state`

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 1.23%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-09-16T12:00:00.000Z
- Modified: 2026-06-17T04:13:58.577Z
- Also known as: GHSA-3pp4-64mp-9cg9, GHSA-9qvw-46gf-4fv8, GHSA-q2x5-6q7q-r872, RUSTSEC-2021-0111
- Related: CVE-2021-45702
- Weaknesses: CWE-416
- Assigned by: mitre

## Description

An issue was discovered in the tremor-script crate before 0.11.6 for Rust. A patch operation may result in a use-after-free.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- tremor-script (crates.io): from 0.7.2 before 0.11.6; from 0.7.3-0 before 0.11.6
- linuxfoundation tremor-script: from 0.7.2 before 0.11.6

## Every score

- GitHub: rating High
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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-0111.html> (advisory, patch, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tremor-script/RUSTSEC-2021-0111.md> (mitigation, third-party-advisory, web)
- <https://github.com/tremor-rs/tremor-runtime/pull/1217> (web)
- <https://github.com/tremor-rs/tremor-runtime> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45702> (advisory)
- <https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45701> (advisory)
- <https://crates.io/crates/tremor-script> (package)

## Sources

- CVE List: [CVE-2021-45701](https://www.cve.org/CVERecord?id=CVE-2021-45701), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3pp4-64mp-9cg9](https://github.com/advisories/GHSA-3pp4-64mp-9cg9), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-9qvw-46gf-4fv8](https://github.com/advisories/GHSA-9qvw-46gf-4fv8), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-q2x5-6q7q-r872](https://github.com/advisories/GHSA-q2x5-6q7q-r872), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0111](https://rustsec.org/advisories/RUSTSEC-2021-0111.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-45701](https://nvd.nist.gov/vuln/detail/CVE-2021-45701), Public domain, modified 2026-06-17

---

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