CVE-2021-24044

Source
https://cve.org/CVERecord?id=CVE-2021-24044
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-24044.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-24044
Aliases
Published
2022-01-15T01:15:07Z
Modified
2026-07-09T05:13:43Z
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

By passing invalid javascript code where await and yield were called upon non-async and non-generator getter/setter functions, Hermes would invoke generator functions and error out on invalid await/yield positions. This could result in segmentation fault as a consequence of type confusion error, with a low chance of RCE. This issue affects Hermes versions prior to v0.10.0.

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
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:facebook:hermes:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "0.10.0"
        }
    ],
    "source":  "CPE_RANGE"
}

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
v0.8.0
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-24044.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "28119057494351730174264949473428385543",
            "length":  4517
        },
        "id":  "CVE-2021-24044-2abf4027",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/facebook/hermes/commit/98f5028619294b6b14cddf5903a0f831d0edef9c",
        "target":  {
            "file":  "lib/VM/JSLib/Object.cpp",
            "function":  "createObjectConstructor"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "156164893267926276119498081931587824656",
                "130702755843183064893722258247476490947",
                "187778433998099261786328089378702710635",
                "325593157944680459102889579367643710387"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-24044-3fe77b4f",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/facebook/hermes/commit/98f5028619294b6b14cddf5903a0f831d0edef9c",
        "target":  {
            "file":  "lib/VM/JSLib/Object.cpp"
        }
    }
]
vanir_signatures_modified
"2026-07-09T05:13:43Z"