Hermes JS Engine Write-What-Where via Integer Overflow (CVE-2022-35289)
CVE-2022-35289 Published on October 11, 2022
A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 allows attackers to potentially execute arbitrary code via crafted JavaScript. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.
Weakness Type
Integer Overflow to Buffer Overflow
The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.
Products Associated with CVE-2022-35289
Want to know whenever a new CVE is published for Facebook Hermes? stack.watch will email you.
Affected Versions
Facebook Hermes:- Version unspecified and below prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.