CVE-2021-24044 Access of Resource Using Incompatible Type in Hermes
CriticalCVSS 9.8
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
Description
By passing invalid javascript code where await and yield were called upon non-async and non-generator getter/setter functions, Hermes would invoke generator functions and error out on invalid await/yield positions. This could result in segmentation fault as a consequence of type confusion error, with a low chance of RCE. This issue affects Hermes versions prior to v0.10.0.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| facebook Hermes | < 0.10.0 | 0.10.0 | Fixed |
| npm hermes-engine(npm) | < 0.10.0; <= 0.9.0 | 0.10.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hermes-engine(npm) | <= 0.9.0 | No fix listed |
| facebook Hermes | < 0.10.0 | 0.10.0 |
| npm hermes-engine(npm) | < 0.10.0 | 0.10.0 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- www.facebook.com vendor-advisory
- github.com
- github.com product