Arbitrary file upload in Strapi

CVE-2022-32114

An unrestricted file upload vulnerability in the Add New Assets function of Strapi 4.1.12 allows attackers to conduct XSS attacks via a crafted PDF file. NOTE: the project documentation suggests that a user with the Media Library "Create (upload)" permission is supposed to be able to upload PDF files containing JavaScript, and that all files in a public assets folder are accessible to the outside world (unless the filename begins with a dot character). The administrator can choose to allow only image, video, and audio files (i.e., not PDF) if desired.

Vulnerability class: Unrestricted File Upload

EPSS: 0.019 (77.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Strapi — versions 4.1.12
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-32114?
CVE-2022-32114 is a high-severity vulnerability in Strapi, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 8.8/10. Published 2022-07-13.
How severe is CVE-2022-32114?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2022-32114 known to be exploited?
14 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.