{"id":"CVE-2022-32114","published":"2022-07-13T00:00:00Z","modified":"2025-02-13T16:32:42Z","title":"An unrestricted file upload vulnerability in the Add New Assets function of Strapi 4.1.12 allows attackers to conduct…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01974,"percentile":0.80402,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/bypazs/strapi","tags":[]},{"url":"https://grimthereaperteam.medium.com/strapi-v4-1-12-unrestricted-file-upload-b993bfd07e4e","tags":[]},{"url":"https://docs.strapi.io/dev-docs/configurations/public-assets","tags":[]},{"url":"https://docs.strapi.io/user-docs/users-roles-permissions/configuring-administrator-roles","tags":[]},{"url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/upload/admin/src/components/MediaLibraryInput/index.js#L33","tags":[]},{"url":"https://github.com/strapi/strapi/blob/d9277d616b4478a3839e79e47330a4aaf167a2f1/packages/core/content-type-builder/admin/src/components/AllowedTypesSelect/index.js#L14","tags":[]}],"priority":{"score":21.1,"factors":[{"name":"EPSS percentile","points":16.08},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-05-29","earliestUrl":"https://github.com/bypazs/CVE-2022-32114","repos":[{"name":"bypazs/CVE-2022-32114","url":"https://github.com/bypazs/CVE-2022-32114","stars":1,"created":"2022-05-29"}]},"first":{"date":"2022-05-29","source":"PoC-in-GitHub","url":"https://github.com/bypazs/CVE-2022-32114"},"provenance":"source"},"affected":[{"ecosystem":"npm","package":"@strapi/strapi","vulnerableRanges":["<=4.1.12"],"patched":[],"from":["GHSA-4vm8-j95f-j6v5"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-6232","exploited":false,"provenance":"source"}}