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.
[
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "createObjectConstructor",
"file": "lib/VM/JSLib/Object.cpp"
},
"digest": {
"function_hash": "28119057494351730174264949473428385543",
"length": 4517.0
},
"signature_type": "Function",
"source": "https://github.com/facebook/hermes/commit/98f5028619294b6b14cddf5903a0f831d0edef9c",
"id": "CVE-2021-24044-2abf4027"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "lib/VM/JSLib/Object.cpp"
},
"digest": {
"line_hashes": [
"156164893267926276119498081931587824656",
"130702755843183064893722258247476490947",
"187778433998099261786328089378702710635",
"325593157944680459102889579367643710387"
],
"threshold": 0.9
},
"signature_type": "Line",
"source": "https://github.com/facebook/hermes/commit/98f5028619294b6b14cddf5903a0f831d0edef9c",
"id": "CVE-2021-24044-3fe77b4f"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-24044.json"