{"id":"CVE-2021-24044","aliases":["CVE-2021-24044","GHSA-7mhc-prgv-r3q4"],"related":[],"kind":"vulnerability","state":"published","title":"Access of Resource Using Incompatible Type in Hermes","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Al pasar código javascript no válido en el que era llamado a await y yield sobre funciones getter/setter no asíncronas y no generadoras, Hermes invocaba funciones generadoras y daba error en posiciones await/yield no válidas. Esto podría resultar en un fallo de segmentación como consecuencia de un error de confusión de tipos, con una baja probabilidad de RCE. Este problema afecta a Hermes versiones anteriores a v0.10.0","source":"nvd"}],"published":"2022-01-15T00:35:08.000Z","modified":"2026-06-17T03:39:12.790Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-843"],"affected":[{"ranges":[{"type":"custom","introduced":"0.10.0","fixed":"unspecified","status":"unaffected"},{"type":"custom","introduced":"unspecified","fixed":"0.10.0","status":"affected"}],"vendor":"Facebook","product":"Hermes","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.10.0"}],"ecosystem":"npm","package":"hermes-engine","purl":"pkg:npm/hermes-engine","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.10.0"}],"vendor":"facebook","product":"hermes","cpe":"cpe:2.3:a:facebook:hermes:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.facebook.com/security/advisories/cve-2021-24044","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24044","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/facebook/hermes","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"facebook","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24044","url":"https://www.cve.org/CVERecord?id=CVE-2021-24044","licence":"CVE Terms of Use","modified":"2024-08-03T19:21:17.267Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7mhc-prgv-r3q4","url":"https://github.com/advisories/GHSA-7mhc-prgv-r3q4","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:14.417Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-24044","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24044","licence":"Public domain","modified":"2026-06-17T03:39:12.790Z"}],"updatedAt":"2026-11-25T22:58:06.558Z","epss":{"score":0.01266,"percentile":0.70576,"date":"2026-12-01T12:00:22.000Z"}}