CVE-2021-24037

Source
https://cve.org/CVERecord?id=CVE-2021-24037
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-24037.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-24037
Aliases
Published
2021-06-15T22:15:08.680Z
Modified
2026-04-11T13:53:55.118208Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e854455c694e3a36e 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.

References

Affected packages

Git / github.com/facebook/hermes

Affected ranges

Type
GIT
Repo
https://github.com/facebook/hermes
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.8.0"
        }
    ]
}

Affected versions

v0.*
v0.1.0
v0.1.1
v0.2.1
v0.3.0
v0.4.0
v0.5.0
v0.6.0
v0.7.0

Database specific

vanir_signatures_modified
"2026-04-11T13:53:55Z"
vanir_signatures
[
    {
        "id": "CVE-2021-24037-1658ade7",
        "target": {
            "file": "lib/VM/Interpreter.cpp"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "261997187380113828268962718426523201502",
                "166126136737044638507575986712882686650",
                "212993013731197841004392273567476677087",
                "225914661532874084442685691545617951074",
                "19334002811454475809527777284244165601",
                "145619618643891310107663096710344413958",
                "92870182065424963766395237027002235182",
                "24481966722840071395934090918195579161"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/facebook/hermes/commit/d86e185e485b6330216dee8e854455c694e3a36e",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2021-24037-c31febeb",
        "target": {
            "file": "include/hermes/VM/StringView.h"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "238293650970757154310436853053316162297",
                "107521579256131346257746764055200601950",
                "187475193658667598486636313606939038099",
                "237713356416333345868579853636783685574"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/facebook/hermes/commit/d86e185e485b6330216dee8e854455c694e3a36e",
        "signature_version": "v1"
    },
    {
        "id": "CVE-2021-24037-f00617f1",
        "target": {
            "file": "lib/VM/Interpreter.cpp",
            "function": "transientObjectPutErrorMessage"
        },
        "deprecated": false,
        "digest": {
            "function_hash": "132622170139002765102520719910042473870",
            "length": 1165.0
        },
        "signature_type": "Function",
        "source": "https://github.com/facebook/hermes/commit/d86e185e485b6330216dee8e854455c694e3a36e",
        "signature_version": "v1"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-24037.json"