SecurityContext

CVE-2020-1896: Facebook Hermes - Remote Code Execution

  • Cve: CVE-2020-1896
  • Name: Facebook Hermes - Remote Code Execution
  • Description: A stack overflow vulnerability in Facebook Hermes 'builtin apply' prior to commit 86543ac47e59c522976b5632b8bf9a2a4583c7d2 (https://github.com/facebook/hermes/commit/86543ac47e59c522976b5632b8bf9a2a4583c7d2) 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.
  • Impact: Attackers can potentially execute arbitrary code on the host system if untrusted JavaScript is evaluated, leading to full system compromise.
  • Remediation: Update to the latest version of Hermes that includes the fix for commit 86543ac47e59c522976b5632b8bf9a2a4583c7d2.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Application must evaluate untrusted JavaScript
  • 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.02523
  • Epss percentile: 0.85263
  • Assignee: [email protected]
  • Published at: 2021-02-02T07:15:13Z
  • Age in days: 2121
  • Modified at: 2026-06-17T03:02:34Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-1896
  • 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-121Stack-based Buffer Overflow
CWE-787Out-of-bounds Write

References

UrlSourceTags
https://github.com/facebook/hermes/commit/86543ac47e59c522976b5632b8bf9a2a4583c7d2nvdPatch, Third Party Advisory
https://www.facebook.com/security/advisories/cve-2020-1896nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
facebook:hermes< 0.5.0nonvd/v1/products/facebook/hermes

Projects

RepositoryLink kindsIndexedUrl
facebook/hermescommit, 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