CVE-2021-39228
published medium CVSS 3.1 · 6.5Memory Safety Issue when using patch or merge on state and assign the result back to state
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tremor-rs | — | tremor-runtime> 0.7.2, < 0.11.6 | Affected | Not stated | GitHub_M |
Description
Tremor is an event processing system for unstructured data. A vulnerability exists between versions 0.7.2 and 0.11.6. This vulnerability is a memory safety Issue when using `patch` or `merge` on `state` and assign the result back to `state`. In this case, affected versions of Tremor and the tremor-script crate maintains references to memory that might have been freed already. And these memory regions can be accessed by retrieving the `state`, e.g. send it over TCP or HTTP. This requires the Tremor server (or any other program using tremor-script) to execute a tremor-script script that uses the mentioned language construct. The issue has been patched in version 0.11.6 by removing the optimization and always cloning the target expression of a Merge or Patch. If an upgrade is not possible, a possible workaround is to avoid the optimization by introducing a temporary variable and not immediately reassigning to `state`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tremor-rs | tremor-runtime | > 0.7.2, < 0.11.6 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-416 CWE-416: Use After Free
- CWE-825 CWE-825: Expired Pointer Dereference
References
4Provider assertions
2GitHub_M · cna
Memory Safety Issue when using patch or merge on state and assign the result back to state
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 19296ec596761534d91b345bbf0ab9dff3b940fab762ac493b19fc95aa69783e
- Ingested
- 23 Sep 2026, 07:55:36 UTC
- Source record
- Official CVE record