Arbitrary memory access via unchecked TypedArray copy
Published May 12, 2022 · Updated Aug 4, 2024
Buffer overflow in JerryScript fe3a5c0 allows attackers to read or write arbitrary memory through a crafted TypedArray filter call. The ecma_builtin_typedarray_prototype_filter() path copies source-width elements into an output TypedArray that can have a smaller element width, overrunning its destination buffer. Execution requires attacker-controlled JavaScript to replace a TypedArray instance's constructor before filter() runs; the published test aborts the engine, while the reported primitive provides arbitrary memory access.
Summary
What happened
Buffer overflow in JerryScript fe3a5c0 allows attackers to read or write arbitrary memory through a crafted TypedArray filter call. The ecma_builtin_typedarray_prototype_filter() path copies source-width elements into an output TypedArray that can have a smaller element width, overrunning its destination buffer. Execution requires attacker-controlled JavaScript to replace a TypedArray instance's constructor before filter() runs; the published test aborts the engine, while the reported primitive provides arbitrary memory access.
The record
- CVE
- CVE-2021-42863
- Published
- May 12, 2022
- Updated
- Aug 4, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-120
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 12, 2022CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- TypedArray filter crash test caseproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo