CVE-2022-40138: Critical severity Facebook Hermes vulnerability

Published Oct 11, 2022
·
Updated

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 Software

1 affected component
Facebook Hermes<2022-09-27

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 6aa825e480d48127b480b08d13adf70033237097

Event History

Oct 11, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-40138?

The severity of CVE-2022-40138 is critical.

2

How does CVE-2022-40138 affect the affected software?

CVE-2022-40138 affects the Facebook Hermes software prior to version 2022-09-27.

3

Is CVE-2022-40138 exploitable?

Yes, CVE-2022-40138 is exploitable and can be used to perform Out-Of-Bounds operations and execute arbitrary code.

4

How can I fix CVE-2022-40138?

To fix CVE-2022-40138, update the affected software to version 2022-09-27 or later.

5

Where can I find more information about CVE-2022-40138?

More information about CVE-2022-40138 can be found in the references: [GitHub commit](https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097) and [Facebook Security Advisories](https://www.facebook.com/security/advisories/CVE-2022-40138).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203