Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. payload
  4. ›
  5. CVE-2022-27952

CVE-2022-27952: Unrestricted Upload of File with Dangerous Type

April 13, 2022 (updated April 22, 2022)

An arbitrary file upload vulnerability in the file upload module of PayloadCMS v0.15.0 allows attackers to execute arbitrary code via a crafted SVG file.

References

  • github.com/advisories/GHSA-w8xh-93qh-35vw
  • github.com/payloadcms/payload
  • nvd.nist.gov/vuln/detail/CVE-2022-27952
  • www.youtube.com/watch?v=6CfhAxA3xdQ

Code Behaviors & Features

Detect and mitigate CVE-2022-27952 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.15.0

Fixed versions

  • 0.15.1

Solution

Upgrade to version 0.15.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/payload/CVE-2022-27952.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.