{"id":"CVE-2020-5256","published":"2020-03-09T15:50:22Z","modified":"2024-08-04T08:22:09Z","title":"Remote Code Execution Through Image Uploads in BookStack","vendor":"BookStackApp","product":"BookStack","tier":"tail","description":{"text":"BookStack before version 0.25.5 has a vulnerability where a user could upload PHP files through image upload functions, which would allow them to execute code on the host system remotely. They would then have the permissions of the PHP process. This most impacts scenarios where non-trusted users are given permission to upload images in any area of the application. The issue was addressed in a series of patches in versions 0.25.3, 0.25.4 and 0.25.5. Users should upgrade to at least v0.25.5 to avoid this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.9,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01969,"percentile":0.80925,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/BookStackApp/BookStack/security/advisories/GHSA-g9rq-x4fj-f5hx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.25.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.25.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/BookStackApp/BookStack/releases/tag/v0.25.5","tags":["x_refsource_MISC"]}],"priority":{"score":21.7,"factors":[{"name":"EPSS percentile","points":16.19},{"name":"CVSS severity","points":5.53}]},"vendorSlug":"bookstackapp","affectedVersions":[{"vendor":"BookStackApp","product":"BookStack","versions":["< 0.25.5"]}],"affected":[{"ecosystem":"Packagist","package":"ssddanbrown/bookstack","vulnerableRanges":["<0.25.5"],"patched":["0.25.5"],"from":["GHSA-g9rq-x4fj-f5hx"],"provenance":"source"}],"summary":{"text":"A flaw in BookStack's image upload functionality, present in versions before 0.25.5, allows PHP files to be uploaded and executed on the host system. The attack requires an authenticated user with permission to upload images, with user interaction needed to complete it, and the attacker then gains the permissions of the PHP process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:42Z"},"euvd":{"id":"EUVD-2020-0345","exploited":false,"provenance":"source"}}