Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Strapi | Strapi | 4.1.12 |
Related Weaknesses (CWE)
References
- https://docs.strapi.io/dev-docs/configurations/public-assets
- https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrat
- https://github.com/bypazs/strapiProduct
- https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/p
- https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/p
- https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b99ExploitThird Party Advisory
- https://docs.strapi.io/dev-docs/configurations/public-assets
- https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrat
- https://github.com/bypazs/strapiProduct
- https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/p
- https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/p
- https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b99ExploitThird Party Advisory
FAQ
What is CVE-2022-32114?
CVE-2022-32114 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 ...
How severe is CVE-2022-32114?
CVE-2022-32114 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-32114?
Check the references section above for vendor advisories and patch information. Affected products include: Strapi Strapi.