CVE-2021-39228
Summary
| CVE | CVE-2021-39228 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-09-17 14:15:00 UTC |
| Updated | 2021-09-30 19:02:00 UTC |
| 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`. |
Risk And Classification
Problem Types: CWE-416
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Linuxfoundation | Tremor | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Remove patch and merge in_place optimizations. · tremor-rs/tremor-runtime@1a2efcd · GitHub | MISC | github.com | |
| Release v0.11.6 - Fix Memory safety issue · tremor-rs/tremor-runtime · GitHub | MISC | github.com | |
| Remove in-place optimizations of patch and merge by mfelsche · Pull Request #1217 · tremor-rs/tremor-runtime · GitHub | MISC | github.com | |
| Memory Safety Issue when using patch or merge on state and assign the result back to state · Advisory · tremor-rs/tremor-runtime · GitHub | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.