CVE details
CVE-2022-40138
An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used to perform Out-Of-Bounds operations and subsequently execute arbitrary code. Note that this is only exploitable in cases where Hermes is used to execute untrusted JavaScript. Hence, most React Native applications are not affected.
Affected ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| lang/hermes | hermes-javascript-engine | 0.13.0_1 | unaddressed | yuri@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>hermes-javascript-engine</name>
<range><lt>2022-09-27</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>An integer conversion error in Hermes bytecode generation, prior to
commit 6aa825e480d48127b480b08d13adf70033237097, could have been used
to perform Out-Of-Bounds operations and subsequently execute arbitrary
code. Note that this is only exploitable in cases where Hermes is used
to execute untrusted JavaScript. Hence, most React Native applications
are not affected.</p>
</body>
</description>
<references>
<cvename>CVE-2022-40138</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2022-40138</url>
</references>
<dates>
<discovery>2022-10-11</discovery>
<entry>2026-10-25</entry>
</dates>
</vuln>