CVE-2022-40138

Name
CVE-2022-40138
Description
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.
NVD Severity
high
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
CONFIRM https://www.facebook.com/security/advisories/CVE-2022-40138
CONFIRM https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:facebook:hermes:*:*:*:*:*:*:*:* hermes >= None < 2022-09-27

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
hermes edge-community 1.9-r9 ScrumpyJack <scrumpyjack@st.ilet.to> possibly vulnerable
hermes 3.16-community 1.9-r8 ScrumpyJack <scrumpyjack@st.ilet.to> possibly vulnerable
hermes 3.17-community 1.9-r9 ScrumpyJack <scrumpyjack@st.ilet.to> possibly vulnerable
hermes 3.18-community 1.9-r9 ScrumpyJack <scrumpyjack@st.ilet.to> possibly vulnerable
hermes 3.19-community 1.9-r9 ScrumpyJack <scrumpyjack@st.ilet.to> possibly vulnerable
hermes 3.20-community 1.9-r9 ScrumpyJack <scrumpyjack@st.ilet.to> possibly vulnerable