{"schemaVersion":3,"id":"CVE-2021-45701","aliases":["GHSA-3pp4-64mp-9cg9","CVE-2021-45702","GHSA-9qvw-46gf-4fv8","GHSA-q2x5-6q7q-r872","RUSTSEC-2021-0111"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-12-26T21:49:03.000Z","modified":"2024-08-04T04:47:02.468Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0123,"percentile":0.68505,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.03899999999999997,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01191},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0123,"percentile":0.68505}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01191,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0123,"percentile":0.68505}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"Crates.Io","product":"tremor-script","name":"tremor-script","label":"tremor-script","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/tremor-script","purlType":"cargo","versions":[{"text":"≥ 0.7.2, < 0.11.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.7.3-0, < 0.11.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.7.2, < 0.11.6 | ≥ 0.7.3-0, < 0.11.6","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"tremor-script","name":"tremor-script","label":"tremor-script","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.7.2, < 0.11.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.7.2, < 0.11.6","eol":null,"hubHref":"/vendor/linuxfoundation/tremor-script"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0111.html","label":"rustsec.org/advisories/RUSTSEC-2021-0111.html","hostname":"rustsec.org","tags":["X Refsource MISC","WEB","Advisory","Third Party Advisory","Patch"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tremor-script/RUSTSEC-2021-0111.md","label":"raw.githubusercontent.com/rustsec/advisory-db/main/crates/tremor-script/RUSTSEC-2021-0111.md","hostname":"raw.githubusercontent.com","tags":["X Refsource MISC","WEB","Third Party Advisory","Mitigation"]},{"url":"https://github.com/tremor-rs/tremor-runtime/pull/1217","label":"github.com/tremor-rs/tremor-runtime/pull/1217","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/tremor-rs/tremor-runtime","label":"github.com/tremor-rs/tremor-runtime","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45702","label":"nvd.nist.gov/vuln/detail/CVE-2021-45702","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e","label":"github.com/tremor-rs/tremor-runtime/commit/1a2efcdbe68e5e7fd0a05836ac32d2cde78a0b2e","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45701","label":"nvd.nist.gov/vuln/detail/CVE-2021-45701","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://crates.io/crates/tremor-script","label":"crates.io/crates/tremor-script","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-12-26T21:49:03.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T04:47:02.468Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:54:07.306Z","stale":false,"partial":false}}