Vulnerability · Published Jan 15, 2022 · Assigned by facebook
CVE-2021-24044
Critical 9.8
In plain English
A critical-severity type confusion in Hermes from Facebook. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | hermes-engine | 0.10.0 | GHSA-7mhc-prgv-r3q4 |
Affected products (as reported)
Weakness: CWE-843
References
- https://www.facebook.com/security/advisories/cve-2021-24044 x_refsource_CONFIRM