{"id":"CVE-2021-24044","aliases":["EUVD-2022-0501","GHSA-7mhc-prgv-r3q4"],"status":"published","title":"Access of Resource Using Incompatible Type in Hermes","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01302,"percentile":0.70711,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-843"],"published":"2022-01-15T00:35:08Z","modified":"2026-11-01T07:28:43Z","fixes":[{"ecosystem":"npm","package":"hermes-engine","fixed_in":["0.10.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"hermes-engine","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.9.0"},{"fixed":"0.10.0"}]}]},{"source":"osv","ecosystem":"npm","package":"hermes-engine","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.10.0"}]}]}],"products":[{"vendor":"facebook","product":"hermes"},{"vendor":"softwarepub","product":"hermes"}],"references":[{"url":"https://www.facebook.com/security/advisories/cve-2021-24044","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24044","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-7mhc-prgv-r3q4"},{"url":"https://github.com/facebook/hermes","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-24044","description":"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.","status":"published","published":"2022-01-15T00:35:08Z","modified":"2024-08-03T19:21:17.267Z","cwes":["CWE-843"],"updated_at":"2026-11-02T14:33:05.331617Z"}],"euvd":[{"id":"EUVD-2022-0501","description":"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.","status":"published","published":"2022-01-15T00:35:08Z","modified":"2024-08-03T19:21:17Z","updated_at":"2026-11-03T03:24:59.661237Z"}],"ghsa":[{"id":"GHSA-7mhc-prgv-r3q4","title":"Access of Resource Using Incompatible Type in Hermes","description":"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.","status":"published","published":"2022-01-16T00:00:45Z","modified":"2023-01-27T05:00:35Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-843"],"updated_at":"2026-11-02T14:36:14.825433Z"}],"nvd":[{"id":"CVE-2021-24044","description":"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.","status":"published","published":"2022-01-15T01:15:07.943Z","modified":"2026-06-17T03:39:12.79Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-843"],"updated_at":"2026-11-02T14:07:03.821385Z"}],"osv":[{"id":"CVE-2021-24044","description":"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.","status":"published","published":"2022-01-15T01:15:07.943Z","modified":"2026-11-01T07:28:43.901406452Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"GHSA-7mhc-prgv-r3q4","title":"Access of Resource Using Incompatible Type in Hermes","description":"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.","status":"published","published":"2022-01-16T00:00:45Z","modified":"2023-11-08T04:05:14.417618Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-843"],"updated_at":"2026-11-02T15:46:41.349637Z"}]}}
