{"id":"CVE-2022-35289","details":"A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 allows attackers to potentially execute arbitrary code via crafted JavaScript. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.","modified":"2026-11-03T07:05:02.843759590Z","published":"2022-10-11T00:00:00Z","database_specific":{"cwe_ids":["CWE-680"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35289.json","unresolved_ranges":[{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"SplitRange","range":[{"fixed":"prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374"}]}]}],"cna_assigner":"facebook"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35289.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35289"},{"type":"ADVISORY","url":"https://www.facebook.com/security/advisories/CVE-2022-35289"},{"type":"FIX","url":"https://github.com/facebook/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/facebook/hermes","events":[{"introduced":"0"},{"fixed":"5b6255ae049fa4641791e47fad994e8e8c4da374"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"5b6255ae049fa4641791e47fad994e8e8c4da374"}],"source":"DESCRIPTION"}]}},{"type":"GIT","repo":"https://github.com/meta/hermes","events":[{"introduced":"0"},{"fixed":"7d3e091b59ff5e5a9e722718c01d81dab52d4300"},{"fixed":"5b6255ae049fa4641791e47fad994e8e8c4da374"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"0.12.0"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:facebook:hermes:*:*:*:*:*:*:*:*"},{"range":[{"fixed":"5b6255ae049fa4641791e47fad994e8e8c4da374"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["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":[{"source":"https://github.com/meta/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374","target":{"file":"lib/VM/detail/IdentifierHashTable.cpp","function":"IdentifierHashTable::growAndRehash"},"deprecated":false,"digest":{"function_hash":"113563420105558438255208539710502431360","length":814},"id":"CVE-2022-35289-0096b7d4","signature_type":"Function","signature_version":"v1"},{"source":"https://github.com/facebook/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374","target":{"function":"IdentifierHashTable::growAndRehash","file":"lib/VM/detail/IdentifierHashTable.cpp"},"deprecated":false,"digest":{"function_hash":"113563420105558438255208539710502431360","length":814},"id":"CVE-2022-35289-1ea1e8ad","signature_type":"Function","signature_version":"v1"},{"digest":{"threshold":0.9,"line_hashes":["297684674819284278261428381612151804328","71445591827207166159161955628703394444","316209092122402531090624708258696644152","321100865621431089097583315123415060977"]},"id":"CVE-2022-35289-a1aba7df","signature_type":"Line","signature_version":"v1","source":"https://github.com/meta/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374","target":{"file":"lib/VM/detail/IdentifierHashTable.cpp"},"deprecated":false},{"id":"CVE-2022-35289-d1744c31","signature_type":"Line","signature_version":"v1","source":"https://github.com/facebook/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374","target":{"file":"lib/VM/detail/IdentifierHashTable.cpp"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["297684674819284278261428381612151804328","71445591827207166159161955628703394444","316209092122402531090624708258696644152","321100865621431089097583315123415060977"]}}],"vanir_signatures_modified":"2026-11-03T07:05:02Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35289.json"}}],"schema_version":"1.9.2"}