SecurityContext

CVE-2022-42002: SonicJS - Arbitrary File Write

  • Cve: CVE-2022-42002
  • Name: SonicJS - Arbitrary File Write
  • Description: SonicJS through 0.6.0 allows file overwrite. It has the following mutations that are used for updating files: fileCreate and fileUpdate. Both of these mutations can be called without any authentication to overwrite any files on a SonicJS application, leading to Arbitrary File Write and Delete.
  • Impact: Attackers can overwrite or delete arbitrary files, potentially leading to remote code execution or system compromise.
  • Remediation: Update to the latest version of SonicJS or apply security patches that restrict access to fileCreate and fileUpdate mutations.
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.01303
  • Epss percentile: 0.71249
  • Assignee: [email protected]
  • Published at: 2022-10-01T00:15:10Z
  • Age in days: 1515
  • Modified at: 2026-06-17T05:04:13Z
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-42002
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-787Out-of-bounds Write

Public exploits

UrlSourceAdded date
https://snyk.io/blog/graphql-security-static-analysis-snyk-code/nvd2022-10-01

References

UrlSourceTags
https://snyk.io/blog/graphql-security-static-analysis-snyk-code/nvdExploit, Third Party Advisory
https://github.com/lane711/sonicjs/tagsnvdRelease Notes, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
sonicjs:sonicjs<= 0.6.0nonvd/v1/products/sonicjs/sonicjs

Index

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

Exploitation

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