{"id":"CVE-2023-30470","details":"A use-after-free related to unsound inference in the bytecode generation when optimizations are enabled for Hermes prior to commit da8990f737ebb9d9810633502f65ed462b819c09 could have been used by an attacker to achieve remote code execution. Note that this is only exploitable in cases where Hermes is used to execute untrusted JavaScript. Hence, most React Native applications are not affected.","modified":"2026-11-01T19:29:52.912654383Z","published":"2023-05-18T21:27:57.350Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30470.json","cna_assigner":"facebook"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30470.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30470"},{"type":"ADVISORY","url":"https://www.facebook.com/security/advisories/cve-2023-30470"},{"type":"FIX","url":"https://github.com/facebook/hermes/commit/da8990f737ebb9d9810633502f65ed462b819c09"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/facebook/hermes","events":[{"introduced":"0"},{"fixed":"da8990f737ebb9d9810633502f65ed462b819c09"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"da8990f737ebb9d9810633502f65ed462b819c09"}],"source":"AFFECTED_FIELD"},{"source":"DESCRIPTION","range":[{"introduced":"0"},{"fixed":"da8990f737ebb9d9810633502f65ed462b819c09"}]}]}},{"type":"GIT","repo":"https://github.com/meta/hermes","events":[{"introduced":"0"},{"fixed":"da8990f737ebb9d9810633502f65ed462b819c09"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"da8990f737ebb9d9810633502f65ed462b819c09"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["hermes-2023-03-20-RNv0.72.0-49794cfc7c81fb8f69fd60c3bbf85a7480cc5a77","hermes-2022-11-03-RNv0.71.0-85613e1f9d1216f2cce7e54604be46057092939d","v0.12.0","hermes-2022-07-15-RNv0.70.0-88dd5731a19ab6b38b0a0a2d4386ba959f2a2c98","hermes-2022-04-28-RNv0.69.0-15d07c2edd29a4ea0b8f15ab0588a0c1adb1200f","v0.11.0","v0.10.0","v0.9.0","v0.8.0","v0.7.0","v0.6.0","v0.5.0","v0.4.0","v0.3.0","v0.2.1","v0.1.1","v0.1.0"],"database_specific":{"vanir_signatures_modified":"2026-11-01T19:29:52Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30470.json","vanir_signatures":[{"digest":{"line_hashes":["203176909997097263901871922927750748673","100058039777269157892465408992714750004","321956038138121144478942622085642234851","65214715864073474023840349335783664003"],"threshold":0.9},"id":"CVE-2023-30470-2aff8147","signature_type":"Line","signature_version":"v1","source":"https://github.com/meta/hermes/commit/da8990f737ebb9d9810633502f65ed462b819c09","target":{"file":"lib/Optimizer/Scalar/SimpleCallGraphProvider.cpp"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/facebook/hermes/commit/da8990f737ebb9d9810633502f65ed462b819c09","target":{"file":"lib/Optimizer/Scalar/SimpleCallGraphProvider.cpp"},"deprecated":false,"digest":{"line_hashes":["203176909997097263901871922927750748673","100058039777269157892465408992714750004","321956038138121144478942622085642234851","65214715864073474023840349335783664003"],"threshold":0.9},"id":"CVE-2023-30470-4483a6cb","signature_type":"Line"},{"deprecated":false,"digest":{"length":555,"function_hash":"186961203542518004325415249558059953391"},"id":"CVE-2023-30470-5de76191","signature_type":"Function","signature_version":"v1","source":"https://github.com/meta/hermes/commit/da8990f737ebb9d9810633502f65ed462b819c09","target":{"file":"lib/Optimizer/Scalar/SimpleCallGraphProvider.cpp","function":"identifyCallsites"}},{"target":{"function":"identifyCallsites","file":"lib/Optimizer/Scalar/SimpleCallGraphProvider.cpp"},"deprecated":false,"digest":{"function_hash":"186961203542518004325415249558059953391","length":555},"id":"CVE-2023-30470-add0479c","signature_type":"Function","signature_version":"v1","source":"https://github.com/facebook/hermes/commit/da8990f737ebb9d9810633502f65ed462b819c09"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}