SecurityContext

CVE-2023-30470: Hermes - Remote Code Execution

  • Cve: CVE-2023-30470
  • Name: Hermes - Remote Code Execution
  • Description: 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.
  • Impact: Attackers can execute arbitrary code remotely when untrusted JavaScript is processed, potentially leading to full system compromise.
  • Remediation: Update to the commit da8990f737ebb9d9810633502f65ed462b819c09 or later versions.
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to provide untrusted JavaScript to Hermes
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01249
  • Epss percentile: 0.70123
  • Assignee: [email protected]
  • Published at: 2023-05-18T22:15:09Z
  • Age in days: 1286
  • Modified at: 2026-06-17T05:54:47Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-30470
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-416Use After Free

References

UrlSourceTags
https://github.com/facebook/hermes/commit/da8990f737ebb9d9810633502f65ed462b819c09nvdPatch
https://www.facebook.com/security/advisories/cve-2023-30470nvdPatch, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
facebook:hermesall versionsnonvd/v1/products/facebook/hermes

Projects

RepositoryLink kindsIndexedUrl
facebook/hermescna_commit, commit, fixyes/v1/repositories/facebook/hermes

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts