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
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.020 (79.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 80th percentile — 79.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.020 · newest: 0.020 · change: +0.000
Affected products
- Strapi — versions 4.1.12
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/bypazs/strapi (Product)
- grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e… (Exploit, Third Party Advisory)
- docs.strapi.io/dev-docs/configurations/public-assets
- docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles
- github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages…
- github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages…
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.